Hi, i am trying to build pwsafe https://pwsafe.org/ for myself and ran into some errors.
No clue what went wrong.
I referenced:
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=passwordsafe
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=passwordsafe-git
https://packages.debian.org/buster/passwordsafe
because they did not specify dependencies in their README: https://github.com/pwsafe/pwsafe.
package.yml
name : pwsafe
version : 1.09.0
release : 1
source :
- https://github.com/pwsafe/pwsafe/archive/1.09.0.tar.gz : 07f406511f05185684e0de22f95e8b731521cabd8d33dd9c4967ecb5fa7254ef
license : Artistic-2.0
component : desktop
summary : PasswordSafe - popular secure and convenient password manager
description: |
PasswordSafe - popular secure and convenient password manager
builddeps :
- file-devel
- qrencode-devel
- wxwidgets-devel
- xerces-c-devel
- yubikey-personalization-devel
- cmake
- git
- libxt-devel
- libxtst-devel
- zip
setup : |
%cmake -DNO_GTEST=ON -DCMAKE_INSTALL_PREFIX=$installdir/usr -DCMAKE_BUILD_TYPE=Release
build : |
%make VERBOSE=1
install : |
%make_install
make log:
[ 16%] Building CXX object src/os/CMakeFiles/os.dir/unix/utf8conv.cpp.o
cd /home/build/YPKG/root/pwsafe/build/pwsafe-1.09.0/src/os && /usr/lib64/ccache/bin/x86_64-solus-linux-g++ -DUSE_XML_LIBRARY=XERCES -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -I/home/build/YPKG/root/pwsafe/build/pwsafe-1.09.0/src/os -I/home/build/YPKG/root/pwsafe/build/pwsafe-1.09.0/src/core -I/home/build/YPKG/root/pwsafe/build/pwsafe-1.09.0 -I/home/build/YPKG/root/pwsafe/build/pwsafe-1.09.0/src -I/home/build/YPKG/root/pwsafe/build/pwsafe-1.09.0/src/ui/wxWidgets -isystem /usr/lib64/wx/include/gtk2-unicode-3.0 -isystem /usr/include/wx-3.0 -mtune=generic -march=x86-64 -g2 -O2 -pipe -fPIC -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param ssp-buffer-size=32 -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wall -Wno-error -Wp,-D_REENTRANT -pthread -fPIC -Wall -std=gnu++11 -DUNICODE -DWCHAR_INCOMPATIBLE_XMLCH -I/usr/include/ykpers-1 -O2 -DNDEBUG -o CMakeFiles/os.dir/unix/utf8conv.cpp.o -c /home/build/YPKG/root/pwsafe/build/pwsafe-1.09.0/src/os/unix/utf8conv.cpp
/home/build/YPKG/root/pwsafe/build/pwsafe-1.09.0/src/os/unix/utf8conv.cpp: In constructor ‘Startup::Startup()’:
/home/build/YPKG/root/pwsafe/build/pwsafe-1.09.0/src/os/unix/utf8conv.cpp:36:12: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
36 | write(STDERR_FILENO, wrnmess, sizeof(wrnmess)/sizeof(*wrnmess)-1);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/build/YPKG/root/pwsafe/build/pwsafe-1.09.0/src/os/unix/utf8conv.cpp:42:12: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
42 | write(STDERR_FILENO, errmess, sizeof(errmess)/sizeof(*errmess)-1);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/build/YPKG/root/pwsafe/build/pwsafe-1.09.0/src/os/unix/utf8conv.cpp:47:12: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
47 | write(STDERR_FILENO, errmess, sizeof(errmess)/sizeof(*errmess)-1);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 17%] Building CXX object src/os/CMakeFiles/os.dir/unix/PWYubi.cpp.o
cd /home/build/YPKG/root/pwsafe/build/pwsafe-1.09.0/src/os && /usr/lib64/ccache/bin/x86_64-solus-linux-g++ -DUSE_XML_LIBRARY=XERCES -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -I/home/build/YPKG/root/pwsafe/build/pwsafe-1.09.0/src/os -I/home/build/YPKG/root/pwsafe/build/pwsafe-1.09.0/src/core -I/home/build/YPKG/root/pwsafe/build/pwsafe-1.09.0 -I/home/build/YPKG/root/pwsafe/build/pwsafe-1.09.0/src -I/home/build/YPKG/root/pwsafe/build/pwsafe-1.09.0/src/ui/wxWidgets -isystem /usr/lib64/wx/include/gtk2-unicode-3.0 -isystem /usr/include/wx-3.0 -mtune=generic -march=x86-64 -g2 -O2 -pipe -fPIC -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param ssp-buffer-size=32 -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wall -Wno-error -Wp,-D_REENTRANT -pthread -fPIC -Wall -std=gnu++11 -DUNICODE -DWCHAR_INCOMPATIBLE_XMLCH -I/usr/include/ykpers-1 -O2 -DNDEBUG -o CMakeFiles/os.dir/unix/PWYubi.cpp.o -c /home/build/YPKG/root/pwsafe/build/pwsafe-1.09.0/src/os/unix/PWYubi.cpp
[ 17%] Building CXX object src/os/CMakeFiles/os.dir/unix/xsendstring.cpp.o
cd /home/build/YPKG/root/pwsafe/build/pwsafe-1.09.0/src/os && /usr/lib64/ccache/bin/x86_64-solus-linux-g++ -DUSE_XML_LIBRARY=XERCES -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -I/home/build/YPKG/root/pwsafe/build/pwsafe-1.09.0/src/os -I/home/build/YPKG/root/pwsafe/build/pwsafe-1.09.0/src/core -I/home/build/YPKG/root/pwsafe/build/pwsafe-1.09.0 -I/home/build/YPKG/root/pwsafe/build/pwsafe-1.09.0/src -I/home/build/YPKG/root/pwsafe/build/pwsafe-1.09.0/src/ui/wxWidgets -isystem /usr/lib64/wx/include/gtk2-unicode-3.0 -isystem /usr/include/wx-3.0 -mtune=generic -march=x86-64 -g2 -O2 -pipe -fPIC -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param ssp-buffer-size=32 -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wall -Wno-error -Wp,-D_REENTRANT -pthread -fPIC -Wall -std=gnu++11 -DUNICODE -DWCHAR_INCOMPATIBLE_XMLCH -I/usr/include/ykpers-1 -O2 -DNDEBUG -o CMakeFiles/os.dir/unix/xsendstring.cpp.o -c /home/build/YPKG/root/pwsafe/build/pwsafe-1.09.0/src/os/unix/xsendstring.cpp
[ 18%] Linking CXX static library libos.a
cd /home/build/YPKG/root/pwsafe/build/pwsafe-1.09.0/src/os && /usr/bin/cmake -P CMakeFiles/os.dir/cmake_clean_target.cmake
cd /home/build/YPKG/root/pwsafe/build/pwsafe-1.09.0/src/os && /usr/bin/cmake -E cmake_link_script CMakeFiles/os.dir/link.txt --verbose=1
/usr/bin/ar qc libos.a CMakeFiles/os.dir/unix/KeySend.cpp.o CMakeFiles/os.dir/unix/UUID.cpp.o CMakeFiles/os.dir/unix/cleanup.cpp.o CMakeFiles/os.dir/unix/debug.cpp.o CMakeFiles/os.dir/unix/dir.cpp.o CMakeFiles/os.dir/unix/env.cpp.o CMakeFiles/os.dir/unix/file.cpp.o CMakeFiles/os.dir/unix/keyname.cpp.o CMakeFiles/os.dir/unix/logit.cpp.o CMakeFiles/os.dir/unix/media.cpp.o CMakeFiles/os.dir/unix/mem.cpp.o CMakeFiles/os.dir/unix/pws_str.cpp.o CMakeFiles/os.dir/unix/pws_time.cpp.o CMakeFiles/os.dir/unix/rand.cpp.o CMakeFiles/os.dir/unix/registry.cpp.o CMakeFiles/os.dir/unix/run.cpp.o CMakeFiles/os.dir/unix/sleep.cpp.o CMakeFiles/os.dir/unix/unicode2keysym.cpp.o CMakeFiles/os.dir/unix/utf8conv.cpp.o CMakeFiles/os.dir/unix/xsendstring.cpp.o CMakeFiles/os.dir/unix/PWYubi.cpp.o
/usr/bin/ranlib libos.a
make[2]: Leaving directory '/home/build/YPKG/root/pwsafe/build/pwsafe-1.09.0'
[ 18%] Built target os
make[1]: Leaving directory '/home/build/YPKG/root/pwsafe/build/pwsafe-1.09.0'
make: *** [Makefile:163: all] Error 2
Command '['/bin/bash', '--norc', '--noprofile', '/tmp/ypkg-buildSVLOlw']' returned non-zero exit status 2
[Build] build failed
ERRO[23:14:21] Failed to build package error="exit status 1"
ERRO[23:14:25] Failed to build packages
make[1]: Leaving directory '/home/julian/.pkgbuilds/solus-builds/pwsafe'
make abireport
make[1]: Entering directory '/home/julian/.pkgbuilds/solus-builds/pwsafe'
abireport -p abi_ -D `dirname package.yml` scan-packages `dirname package.yml`
error locating packages: No packages in directory .
make[1]: *** [../../common/Makefile.common:15: abireport] Error 1
make[1]: Leaving directory '/home/julian/.pkgbuilds/solus-builds/pwsafe'
make: *** [../../common/Makefile.common:12: complete] Error 2
Related post: https://dev.getsol.us/T1313
This is first of all for personal use, but there would be the option to include it later on.