Ricardo Wurmus <rek...@elephly.net> writes: > ng0 <n...@we.make.ritual.n0.is> writes: > >> Leo Famulari <l...@famulari.name> writes: >> >>> On Fri, Aug 12, 2016 at 05:50:15PM +0000, ng0 wrote: >>>> * gnu/packages/networking.scm (proxychains-ng): New variable. >>> >>>> + (arguments >>>> + `(#:tests? #f >>>> + #:make-flags (list "CC=gcc") >>>> + #:phases >>>> + (modify-phases %standard-phases >>>> + ;; Needs to be configured through the configure script. >>>> + (replace 'configure >>>> + (lambda* (#:key outputs #:allow-other-keys) >>>> + (let ((out (assoc-ref outputs "out"))) >>>> + (zero? (system* "./configure" >>>> + (string-append "--prefix=" out))))))))) >>> >>> Does #:configure-flags not work in this case? >> >> The previous message was too much. I just wanted to point out that >> configure-flags does not seem to work in this case, but in case I made a >> mistake I appended the patch with #:configure-flags in the previous >> message. For me, the version with system ./configure works, the one with >> #:configure-flags produces a failed build. > > Could you show us the error message in case of using > “#:configure-flags”? This really should work, so if it fails I’d like > to fix this instead of working around it, if possible. > > ~~ Ricardo >
ng0@shadowwalker ~/src/guix/guix-proxychains$ make; ./pre-inst-env guix build proxychains-ng make all-recursive make[1]: Entering directory '/home/ng0/src/guix/guix-proxychains' Making all in po/guix make[2]: Entering directory '/home/ng0/src/guix/guix-proxychains/po/guix' make[2]: Leaving directory '/home/ng0/src/guix/guix-proxychains/po/guix' Making all in po/packages make[2]: Entering directory '/home/ng0/src/guix/guix-proxychains/po/packages' make[2]: Leaving directory '/home/ng0/src/guix/guix-proxychains/po/packages' make[2]: Entering directory '/home/ng0/src/guix/guix-proxychains' Compiling Scheme modules... make[2]: Leaving directory '/home/ng0/src/guix/guix-proxychains' make[1]: Leaving directory '/home/ng0/src/guix/guix-proxychains' The following derivation will be built: /gnu/store/jkklnfwxg63q2jdcikqc8a9xzavzbbrj-proxychains-ng-4.11.drv process 1929 acquired build slot '/var/guix/offload/192.168.1.198/0' Cannot open display "default display" load on machine '192.168.1.198' is 0.0 (normalized: 0.0) @ build-started /gnu/store/jkklnfwxg63q2jdcikqc8a9xzavzbbrj-proxychains-ng-4.11.drv - x86_64-linux /var/log/guix/drvs/jk//klnfwxg63q2jdcikqc8a9xzavzbbrj-proxychains-ng-4.11.drv.bz2 Cannot open display "default display" Cannot open display "default display" sending 0 store files to '192.168.1.198'... Cannot open display "default display" offloading '/gnu/store/jkklnfwxg63q2jdcikqc8a9xzavzbbrj-proxychains-ng-4.11.drv' to '192.168.1.198'... @ build-remote /gnu/store/jkklnfwxg63q2jdcikqc8a9xzavzbbrj-proxychains-ng-4.11.drv 192.168.1.198 Cannot open display "default display" The following derivation will be built: /gnu/store/jkklnfwxg63q2jdcikqc8a9xzavzbbrj-proxychains-ng-4.11.drv @ build-started /gnu/store/jkklnfwxg63q2jdcikqc8a9xzavzbbrj-proxychains-ng-4.11.drv - x86_64-linux /var/log/guix/drvs/jk//klnfwxg63q2jdcikqc8a9xzavzbbrj-proxychains-ng-4.11.drv.bz2 starting phase `set-SOURCE-DATE-EPOCH' phase `set-SOURCE-DATE-EPOCH' succeeded after 0.0 seconds starting phase `set-paths' environment variable `PATH' set to `/gnu/store/2pdb9h9mdq7qnjj1b9b6k2a2md46idyj-tar-1.29/bin:/gnu/store/54ilw1jcicj7n259cpra59y6gik2mig2-gzip-1.8/bin:/gnu/store/pzk986yikywnql4x393pbhzbiz7vl72n-bzip2-1.0.6/bin:/gnu/store/p9c6hk9rdln5rz752fkwd6zxj2xs3sa9-xz-5.2.2/bin:/gnu/store/3nhg61n6p870vj1q654rbxrgsq5zsgsp-file-5.25/bin:/gnu/store/lr2vwc88wck5ra3p969rgk8nnqh111aj-diffutils-3.3/bin:/gnu/store/ni491r4ffm03v0cr70df12lwiq826das-patch-2.7.5/bin:/gnu/store/bzv2l4hx3j74jm49fb7g20900yqjdn22-sed-4.2.2/bin:/gnu/store/53p06lrr734a1xxa770xz9ddan4a2zjq-findutils-4.6.0/bin:/gnu/store/bd4m0d7h247iwwgl7wi3b28prv554gjn-gawk-4.1.3/bin:/gnu/store/dk9hvkwr5s4n22z9pjgcmxrppd08k286-grep-2.25/bin:/gnu/store/lpvkjic9dhj55plc29jhq8l39irvqm4f-coreutils-8.25/bin:/gnu/store/1iiqn2124niw1pvqfwr7wb3lxi28r67q-make-4.2/bin:/gnu/store/ykzwykkvr2c80rw4l1qh3mvfdkl7jibi-bash-4.3.42/bin:/gnu/store/5k8z2aj8ca16nmvwvdsl0mdc3slm14k2-ld-wrapper-0/bin:/gnu/store/z53lxlrp7061vggbnhpxcsmad6lx96p8-binutils-2.25.1/bin:/gnu/store/frrj3bfbmg5vrd0flh9cf8j64h7cr2v4-gcc-4.9.3/bin:/gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/bin:/gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/sbin' environment variable `C_INCLUDE_PATH' set to `/gnu/store/pzk986yikywnql4x393pbhzbiz7vl72n-bzip2-1.0.6/include:/gnu/store/p9c6hk9rdln5rz752fkwd6zxj2xs3sa9-xz-5.2.2/include:/gnu/store/3nhg61n6p870vj1q654rbxrgsq5zsgsp-file-5.25/include:/gnu/store/bd4m0d7h247iwwgl7wi3b28prv554gjn-gawk-4.1.3/include:/gnu/store/1iiqn2124niw1pvqfwr7wb3lxi28r67q-make-4.2/include:/gnu/store/z53lxlrp7061vggbnhpxcsmad6lx96p8-binutils-2.25.1/include:/gnu/store/frrj3bfbmg5vrd0flh9cf8j64h7cr2v4-gcc-4.9.3/include:/gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/include:/gnu/store/k3nwrfrgkg1bafhqi9w8inh2rr8njb1b-linux-libre-headers-4.1.18/include' environment variable `CPLUS_INCLUDE_PATH' set to `/gnu/store/pzk986yikywnql4x393pbhzbiz7vl72n-bzip2-1.0.6/include:/gnu/store/p9c6hk9rdln5rz752fkwd6zxj2xs3sa9-xz-5.2.2/include:/gnu/store/3nhg61n6p870vj1q654rbxrgsq5zsgsp-file-5.25/include:/gnu/store/bd4m0d7h247iwwgl7wi3b28prv554gjn-gawk-4.1.3/include:/gnu/store/1iiqn2124niw1pvqfwr7wb3lxi28r67q-make-4.2/include:/gnu/store/z53lxlrp7061vggbnhpxcsmad6lx96p8-binutils-2.25.1/include:/gnu/store/frrj3bfbmg5vrd0flh9cf8j64h7cr2v4-gcc-4.9.3/include:/gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/include:/gnu/store/k3nwrfrgkg1bafhqi9w8inh2rr8njb1b-linux-libre-headers-4.1.18/include' environment variable `LIBRARY_PATH' set to `/gnu/store/pzk986yikywnql4x393pbhzbiz7vl72n-bzip2-1.0.6/lib:/gnu/store/p9c6hk9rdln5rz752fkwd6zxj2xs3sa9-xz-5.2.2/lib:/gnu/store/3nhg61n6p870vj1q654rbxrgsq5zsgsp-file-5.25/lib:/gnu/store/bd4m0d7h247iwwgl7wi3b28prv554gjn-gawk-4.1.3/lib:/gnu/store/z53lxlrp7061vggbnhpxcsmad6lx96p8-binutils-2.25.1/lib:/gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib:/gnu/store/w74j2phxh04phnspxmjg9hpzpk90054x-glibc-utf8-locales-2.23/lib' environment variable `GUIX_LOCPATH' set to `/gnu/store/w74j2phxh04phnspxmjg9hpzpk90054x-glibc-utf8-locales-2.23/lib/locale' phase `set-paths' succeeded after 0.0 seconds starting phase `install-locale' using 'en_US.utf8' locale for category "LC_ALL" phase `install-locale' succeeded after 0.0 seconds starting phase `unpack' proxychains-ng-4.11/ proxychains-ng-4.11/Makefile proxychains-ng-4.11/TODO proxychains-ng-4.11/tests/ proxychains-ng-4.11/tests/test_shm.c proxychains-ng-4.11/tests/test_gethostent.c proxychains-ng-4.11/tests/test_getaddrinfo.c proxychains-ng-4.11/tests/test_sendto.c proxychains-ng-4.11/tests/test_gethostent_r.c proxychains-ng-4.11/tests/test_proxy_gethostbyname.c proxychains-ng-4.11/tests/test_getnameinfo.c proxychains-ng-4.11/tests/test_v4_in_v6.c proxychains-ng-4.11/README proxychains-ng-4.11/src/ proxychains-ng-4.11/src/ip_type.h proxychains-ng-4.11/src/core.h proxychains-ng-4.11/src/hash.c proxychains-ng-4.11/src/hash.h proxychains-ng-4.11/src/proxychains.conf proxychains-ng-4.11/src/debug.h proxychains-ng-4.11/src/proxyresolv proxychains-ng-4.11/src/libproxychains.c proxychains-ng-4.11/src/common.h proxychains-ng-4.11/src/common.c proxychains-ng-4.11/src/mutex.h proxychains-ng-4.11/src/debug.c proxychains-ng-4.11/src/version.c proxychains-ng-4.11/src/core.c proxychains-ng-4.11/src/ip_type.c proxychains-ng-4.11/src/main.c proxychains-ng-4.11/src/hostsreader.c proxychains-ng-4.11/src/nameinfo.c proxychains-ng-4.11/src/allocator_thread.h proxychains-ng-4.11/src/allocator_thread.c proxychains-ng-4.11/AUTHORS proxychains-ng-4.11/COPYING proxychains-ng-4.11/configure proxychains-ng-4.11/tools/ proxychains-ng-4.11/tools/install.sh proxychains-ng-4.11/tools/version.sh proxychains-ng-4.11/VERSION phase `unpack' succeeded after 0.0 seconds starting phase `patch-usr-bin-file' phase `patch-usr-bin-file' succeeded after 0.0 seconds starting phase `patch-source-shebangs' patch-shebang: ./configure: changing `/bin/sh' to `/gnu/store/ykzwykkvr2c80rw4l1qh3mvfdkl7jibi-bash-4.3.42/bin/sh' patch-shebang: ./src/proxyresolv: changing `/bin/sh' to `/gnu/store/ykzwykkvr2c80rw4l1qh3mvfdkl7jibi-bash-4.3.42/bin/sh' patch-shebang: ./tools/install.sh: changing `/bin/sh' to `/gnu/store/ykzwykkvr2c80rw4l1qh3mvfdkl7jibi-bash-4.3.42/bin/sh' patch-shebang: ./tools/version.sh: changing `/bin/sh' to `/gnu/store/ykzwykkvr2c80rw4l1qh3mvfdkl7jibi-bash-4.3.42/bin/sh' phase `patch-source-shebangs' succeeded after 0.0 seconds starting phase `configure' source directory: "/tmp/guix-build-proxychains-ng-4.11.drv-0/proxychains-ng-4.11" (relative from build: ".") build directory: "/tmp/guix-build-proxychains-ng-4.11.drv-0/proxychains-ng-4.11" configure flags: ("CONFIG_SHELL=/gnu/store/ykzwykkvr2c80rw4l1qh3mvfdkl7jibi-bash-4.3.42/bin/bash" "SHELL=/gnu/store/ykzwykkvr2c80rw4l1qh3mvfdkl7jibi-bash-4.3.42/bin/bash" "--prefix=/gnu/store/pb1bhn1nqbdzh6hmdxbhyvc08zkj1vx8-proxychains-ng-4.11" "--enable-fast-install" "--build=x86_64-unknown-linux-gnu" "--prefix=/gnu/store/pb1bhn1nqbdzh6hmdxbhyvc08zkj1vx8-proxychains-ng-4.11") checking whether netinet/in.h defines s6_addr16 ... no checking whether netinet/in.h defines __u6_addr.__u6_addr16 ... no checking whether $CC defines __OpenBSD__ ... ./configure: line 38: cc: command not found no Done, now run make && make install phase `configure' succeeded after 0.0 seconds starting phase `patch-generated-file-shebangs' phase `patch-generated-file-shebangs' succeeded after 0.0 seconds starting phase `build' gcc -DSUPER_SECURE -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DLIB_DIR=\"/usr/local/lib\" -DSYSCONFDIR=\"/usr/local/etc\" -DDLL_NAME=\"libproxychains4.so\" -fPIC -c -o src/nameinfo.o src/nameinfo.c printf '#define VERSION "%s"\n' "$(sh tools/version.sh)" > src/version.h gcc -DSUPER_SECURE -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DLIB_DIR=\"/usr/local/lib\" -DSYSCONFDIR=\"/usr/local/etc\" -DDLL_NAME=\"libproxychains4.so\" -fPIC -c -o src/core.o src/core.c gcc -DSUPER_SECURE -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DLIB_DIR=\"/usr/local/lib\" -DSYSCONFDIR=\"/usr/local/etc\" -DDLL_NAME=\"libproxychains4.so\" -fPIC -c -o src/common.o src/common.c gcc -DSUPER_SECURE -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DLIB_DIR=\"/usr/local/lib\" -DSYSCONFDIR=\"/usr/local/etc\" -DDLL_NAME=\"libproxychains4.so\" -fPIC -c -o src/libproxychains.o src/libproxychains.c gcc -DSUPER_SECURE -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DLIB_DIR=\"/usr/local/lib\" -DSYSCONFDIR=\"/usr/local/etc\" -DDLL_NAME=\"libproxychains4.so\" -fPIC -c -o src/allocator_thread.o src/allocator_thread.c gcc -DSUPER_SECURE -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DLIB_DIR=\"/usr/local/lib\" -DSYSCONFDIR=\"/usr/local/etc\" -DDLL_NAME=\"libproxychains4.so\" -fPIC -c -o src/ip_type.o src/ip_type.c src/ip_type.c:4:1: warning: missing braces around initializer [-Wmissing-braces] const ip_type ip_type_localhost = { .addr.v4 = {127, 0, 0, 1} }; ^ src/ip_type.c:4:1: warning: (near initialization for ‘ip_type_localhost.addr.v4.octet’) [-Wmissing-braces] gcc -DSUPER_SECURE -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DLIB_DIR=\"/usr/local/lib\" -DSYSCONFDIR=\"/usr/local/etc\" -DDLL_NAME=\"libproxychains4.so\" -fPIC -c -o src/hostsreader.o src/hostsreader.c gcc -DSUPER_SECURE -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DLIB_DIR=\"/usr/local/lib\" -DSYSCONFDIR=\"/usr/local/etc\" -DDLL_NAME=\"libproxychains4.so\" -fPIC -c -o src/hash.o src/hash.c gcc -DSUPER_SECURE -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DLIB_DIR=\"/usr/local/lib\" -DSYSCONFDIR=\"/usr/local/etc\" -DDLL_NAME=\"libproxychains4.so\" -fPIC -c -o src/debug.o src/debug.c gcc -DSUPER_SECURE -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DLIB_DIR=\"/usr/local/lib\" -DSYSCONFDIR=\"/usr/local/etc\" -DDLL_NAME=\"libproxychains4.so\" -fPIC -c -o src/main.o src/main.c gcc -DSUPER_SECURE -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DLIB_DIR=\"/usr/local/lib\" -DSYSCONFDIR=\"/usr/local/etc\" -DDLL_NAME=\"libproxychains4.so\" -fPIC -c -o src/version.o src/version.c gcc -shared -fPIC -Wl,--no-as-needed -ldl -lpthread -Wl,-soname=libproxychains4.so \ -o libproxychains4.so src/nameinfo.o src/version.o src/core.o src/common.o src/libproxychains.o src/allocator_thread.o src/ip_type.o src/hostsreader.o src/hash.o src/debug.o gcc src/main.o src/common.o -o proxychains4 phase `build' succeeded after 0.2 seconds starting phase `check' test suite not run phase `check' succeeded after 0.0 seconds starting phase `install' ./tools/install.sh -D -m 644 libproxychains4.so /usr/local/lib/libproxychains4.so mkdir: cannot create directory ‘/usr’: Permission denied make: *** [Makefile:60: /usr/local/lib/libproxychains4.so] Error 1 phase `install' failed after 0.0 seconds builder for `/gnu/store/jkklnfwxg63q2jdcikqc8a9xzavzbbrj-proxychains-ng-4.11.drv' failed with exit code 1 @ build-failed /gnu/store/jkklnfwxg63q2jdcikqc8a9xzavzbbrj-proxychains-ng-4.11.drv - 1 builder for `/gnu/store/jkklnfwxg63q2jdcikqc8a9xzavzbbrj-proxychains-ng-4.11.drv' failed with exit code 1 guix build: error: build failed: build of `/gnu/store/jkklnfwxg63q2jdcikqc8a9xzavzbbrj-proxychains-ng-4.11.drv' failed Cannot open display "default display" derivation '/gnu/store/jkklnfwxg63q2jdcikqc8a9xzavzbbrj-proxychains-ng-4.11.drv' offloaded to '192.168.1.198' failed with exit code 1 @ build-failed /gnu/store/jkklnfwxg63q2jdcikqc8a9xzavzbbrj-proxychains-ng-4.11.drv - 1 builder for `/gnu/store/jkklnfwxg63q2jdcikqc8a9xzavzbbrj-proxychains-ng-4.11.drv' failed with exit code 100 guix build: error: build failed: build of `/gnu/store/jkklnfwxg63q2jdcikqc8a9xzavzbbrj-proxychains-ng-4.11.drv' failed -- ♥Ⓐ ng0 For non-prism friendly talk find me on http://www.psyced.org