unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ng0 <ng0@we.make.ritual.n0.is>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: Add proxychains-ng.
Date: Sun, 14 Aug 2016 21:01:56 +0000	[thread overview]
Message-ID: <87inv3yshn.fsf@we.make.ritual.n0.is> (raw)
In-Reply-To: <87twen1db6.fsf@elephly.net>

Ricardo Wurmus <rekado@elephly.net> writes:

> ng0 <ng0@we.make.ritual.n0.is> writes:
>
>> Leo Famulari <leo@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/ykzwykkvr2c8
 0rw4l1qh3mvfdkl7jibi-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

  reply	other threads:[~2016-08-14 21:02 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-12 17:50 [PATCH] gnu: Add proxychains-ng ng0
2016-08-12 18:13 ` Leo Famulari
2016-08-12 19:21   ` ng0
2016-08-14 12:32   ` ng0
2016-08-14 17:16     ` Ricardo Wurmus
2016-08-14 21:01       ` ng0 [this message]
2016-08-15  7:12         ` Ricardo Wurmus
2016-08-15  8:47           ` ng0
2016-08-15  9:37             ` Ricardo Wurmus
2016-08-15  9:57               ` ng0
2016-08-15 10:17                 ` Ricardo Wurmus
2016-08-15  9:02           ` ng0

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87inv3yshn.fsf@we.make.ritual.n0.is \
    --to=ng0@we.make.ritual.n0.is \
    --cc=guix-devel@gnu.org \
    --cc=rekado@elephly.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).