#1133 Fedora 19 X86_64 rpmbuild error - can't find yp

v1.0_(example)
closed
Rony Shapiro
None
1
2014-04-14
2013-10-04
Al Dunsmuir
No

Using "rpmbuild -bb pwsafe.spec" to build pwsafe-0.92BETA-src.tgz on Fedora 19 X86_64 system, I get the following error:

++ -Wall -I../../core -I../.. /usr/bin/wx-config --debug=no --unicode=yes --inplace --cxxflags -I/usr/local/include/ykpers-1 -O -DUNICODE -DNDEBUG -c PWYubi.cpp -o ../../../obj/unicoderelease/os/PWYubi.o
PWYubi.cpp:17:20: fatal error: ykcore.h: No such file or directory
#include <ykcore.h>
^
compilation terminated.
make[3]: [../../../obj/unicoderelease/os/PWYubi.o] Error 1
make[3]: Leaving directory /home/al/rpmbuild/BUILD/pwsafe-0.92BETA/src/os/linux' make[2]: *** [unicoderelease] Error 2 make[2]: Leaving directory/home/al/rpmbuild/BUILD/pwsafe-0.92BETA/src/os/linux'
make[1]:
[unicoderelease] Error 2
make[1]: Leaving directory `/home/al/rpmbuild/BUILD/pwsafe-0.92BETA'
make: *** [release] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.0tooty (%build)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.0tooty (%build)

I believe the problem is that ykpers-devel-1.13.0-1.fc19.x86_64.rpm installs the header as /usr/include/ykpers-1/ykcore.h, so the source needs include <ykpers-1/ykcore.h"

Al

Discussion

  • Al Dunsmuir
    Al Dunsmuir
    2013-10-04

    Sigh... Sourceforge allows creation of title longer than it displays.

     
  • Rony Shapiro
    Rony Shapiro
    2013-10-05

    That's odd.

    If anything, the path in the src/os/linux/Makefile needs to be changed, not the source file.

    Please take a look at that Makefile, look for the setting of YBPERS_INC.

     
  • Johan Vromans
    Johan Vromans
    2013-10-23

    I've fixed it to use pkg-config, as it should :)

     
  • Rony Shapiro
    Rony Shapiro
    2013-10-23

    • status: open --> pending
    • assigned_to: Rony Shapiro
     
  • Rony Shapiro
    Rony Shapiro
    2013-10-23

    Thanks for the patch - I've modified it slightly, and this will be fixed in the next release.
    Commit db4474d in master

     
  • Johan Vromans
    Johan Vromans
    2013-10-24

    FWIW: I needed to add BuildRequires for gettext and zip to get the rpm built on some systems.

     
    • Rony Shapiro
      Rony Shapiro
      2013-10-26

      Could you send me the patch please (or attach it it this ticket)?

       
  • Rony Shapiro
    Rony Shapiro
    2013-10-27

    Got it - applied, committed & pushed. Thanks!

     
  • Rony Shapiro
    Rony Shapiro
    2014-03-07

    • Status: pending --> closed