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
Sigh... Sourceforge allows creation of title longer than it displays.
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.
I've fixed it to use pkg-config, as it should :)
Thanks for the patch - I've modified it slightly, and this will be fixed in the next release.
Commit db4474d in master
FWIW: I needed to add BuildRequires for gettext and zip to get the rpm built on some systems.
Could you send me the patch please (or attach it it this ticket)?
Sure.
Got it - applied, committed & pushed. Thanks!