Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 534542 - =net-proxy/torsocks-2.0.0 with FEATURES=network-sandbox fails test test_dns
Summary: =net-proxy/torsocks-2.0.0 with FEATURES=network-sandbox fails test test_dns
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-03 23:01 UTC by eroen
Modified: 2015-10-11 17:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
net-proxy:torsocks-2.0.0:20150103-230024.log (net-proxy:torsocks-2.0.0:20150103-230024.log,45.29 KB, application/octet-stream)
2015-01-03 23:01 UTC, eroen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description eroen 2015-01-03 23:01:53 UTC
Created attachment 393112 [details]
net-proxy:torsocks-2.0.0:20150103-230024.log

make[2]: Entering directory '/tmp/portage/net-proxy/torsocks-2.0.0/work/torsocks-2.0.0/tests'
./run.sh test_list
./test_connect ........... ok   
./test_dns ............... Failed 3/4 subtests 
./test_socket ............ ok     
./unit/test_onion ........ ok     
./unit/test_connection ... ok     
./unit/test_utils ........ ok     
./unit/test_config-file .. ok     
./unit/test_socks5 ....... ok     
./unit/test_compat ....... ok   

Test Summary Report
-------------------
./test_dns             (Wstat: 0 Tests: 4 Failed: 3)
  Failed tests:  1-3
Files=9, Tests=145,  0 wallclock secs ( 0.04 usr  0.01 sys +  0.02 cusr  0.02 csys =  0.09 CPU)
Result: FAIL
Makefile:730: recipe for target 'check-am' failed
make[2]: *** [check-am] Error 1
make[2]: Leaving directory '/tmp/portage/net-proxy/torsocks-2.0.0/work/torsocks-2.0.0/tests'
Makefile:458: recipe for target 'check-recursive' failed
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory '/tmp/portage/net-proxy/torsocks-2.0.0/work/torsocks-2.0.0/tests'
Makefile:404: recipe for target 'check-recursive' failed
make: *** [check-recursive] Error 1
 * ERROR: net-proxy/torsocks-2.0.0::gentoo failed (test phase):
 *   Make check failed. See above for details.
 * 
 * Call stack:
 *            ebuild.sh, line   93:  Called src_test
 *          environment, line 2773:  Called default
 *   phase-functions.sh, line  770:  Called default_src_test
 *   phase-functions.sh, line  799:  Called __eapi0_src_test
 *     phase-helpers.sh, line  672:  Called die
 * The specific snippet of code:
 *   		$emake_cmd ${internal_opts} check || \
 *   			die "Make check failed. See above for details."
Comment 1 eroen 2015-01-03 23:05:01 UTC
occam ~ # emerge --info '=net-proxy/torsocks-2.0.0::gentoo'
Portage 2.2.15 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop, gcc-4.8.4, glibc-2.20-r1, 3.16.3.e0-occam0+ x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.16.3.e0-occam0+-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-gentoo-2.2
KiB Mem:     7944376 total,   1650680 free
KiB Swap:   16777212 total,  15908868 free
Timestamp of tree: Fri, 02 Jan 2015 14:00:01 +0000
sh bash 4.3_p33
ld GNU ld (Gentoo 2.24 p1.4) 2.24
ccache version 3.2.1 [disabled]
app-shells/bash:          4.3_p33
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r4
dev-lang/python:          2.7.9-r1, 3.2.5-r6, 3.3.5-r1, 3.4.2
dev-util/ccache:          3.2.1-r1
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.6
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6-r1, 1.12.6, 1.13.4, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.6.4, 4.7.4, 4.8.4
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.4
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.18 (virtual/os-headers)
sys-libs/glibc:           2.20-r1
Repositories: gentoo enlightenment flora gamerlay glc gentoo-haskell hasufell java laurentb roslin science stuff toolchain v-fox eroen
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7-avx -O3 -pipe         -flto         -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=corei7-avx -O3 -pipe         -flto         -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity"
DISTDIR="/var/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=2 --autounmask --with-bdeps=y --quiet-build --nospinner --verbose-conflicts"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS=""
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j4 -l5"
PKGDIR="/var/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude ChangeLog* --exclude /metadata/cache/ --stats --delay-updates"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/enlightenment /var/lib/layman/flora /var/lib/layman/gamerlay /var/lib/layman/glc /var/lib/layman/haskell /var/lib/layman/hasufell /var/lib/layman/java /var/lib/layman/laurentb /var/lib/layman/roslin /var/lib/layman/science /var/lib/layman/stuff /var/lib/layman/toolchain /var/lib/layman/v-fox /usr/local/portage"
USE="X a52 aac acl acpi alsa amd64 apng audio audiofile avresample avx bash-completion bdf berkdb bluray bzip2 cairo caps cb cdda cdparanoia cdr cjk cli corefonts cracklib crypt cups curl cxx ddate declarative detex device-mapper dga dia djvu dmapi dri dts dvd dvdr dvi2tty dvipdfm ebook egl emboss encode exif fam ffmpeg fftw firefox fits flac fontconfig fortran g3dvl gallium gbm gcrypt gdbm gif gimp git glamor glib glibc-omitfp gmp gnuplot gnutls gold gpm graphics graphviz gs gstreamer gtk gtk3 highlight hscolour iconv icu id3tag idn imagemagick imlib inotify iproute2 ipv6 jbig jpeg jpeg2k jpg json kde kde4 kpathsea latex lcms libffi libssh2 libv4l luatex lvm lvm2 lzma lzo mad man metric mikmod mkv mms mmx mng modules mp3 mp4 mpeg mpg123 multilib multimedia musepack ncurses netlink nptl nut ocr odbc offensive ogg opengl openmp openvg optimization optimized-qmake opus pam pango pch pcre pdf pgf phonon png postscript ppds private-headers pstricks pth publishers python3 qt3support qt4 raw readline samba sbsms scanner science sdl session smp sna sndfile speex spell sqlite sse sse2 sse3 sse4 sse41 sse4_1 sse4_2 ssh ssl ssse3 svg t1lib tcpd tesseract theora threads tiff tls truetype udev unicode usb v4l v4l2 vaapi video vorbis vpx webp wmf wxwidgets x264 xanim xattr xcb xcomposite xetex xfs xft xinerama xml xmlpatterns xorg xosd xpm xrandr xv xvid xvmc xz zlib zsh-completion" ABI_X86="32 64" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="openssl" DRACUT_MODULES="btrfs caps cifs crypt crypt-gpg dash iscsi lvm nfs ssh-client syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="mouse keyboard evdev synaptics wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en gb us en_US en_GB eng jbo no nb nn no_NO nb_NO nn_NO nor" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4" QEMU_SOFTMMU_TARGETS="x86_64 i386" SANE_BACKENDS="plustek" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.3 3.4"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, SYNC

occam ~ # emerge -pqv '=net-proxy/torsocks-2.0.0::gentoo'
[ebuild     U ] net-proxy/torsocks-2.0.0 [2.0.0_rc3] USE="-static-libs"
Comment 2 Michael Orlitzky gentoo-dev 2015-01-03 23:51:48 UTC
This should fix it, by disabling only the DNS tests. The list of tests to execute is stored in a file, tests/test_list, so we sed out the troublemaker.

@@ -25,6 +25,11 @@ RDEPEND="${DEPEND}"

 src_prepare() {
        sed -i -e "/dist_doc_DATA/s/^/#/" Makefile.am doc/Makefile.am || die
+
+       # Disable tests requiring network access.
+       sed -i -e '/^\.\/test_dns$/d' tests/test_list ||
+         die "failed to disable network tests"
+
        eautoreconf
 }
Comment 3 Michael Orlitzky gentoo-dev 2015-01-03 23:55:23 UTC
I'm missing a backslash there at the end of the "sed" line, not sure how it worked at all, but there it is.
Comment 4 Anthony Basile gentoo-dev 2015-01-04 13:35:18 UTC
(In reply to Michael Orlitzky from comment #3)
> I'm missing a backslash there at the end of the "sed" line, not sure how it
> worked at all, but there it is.

Thanks its in without a rev bump.

Welcome to bash!  Try this ... type it line for line!

yellow torsocks # doit() {
> false ||
> echo "here"
> }
yellow torsocks # doit
here
yellow torsocks #

Even this works:

yellow torsocks # false ||
> echo "here"
here
yellow torsocks #

Of course this works:

yellow torsocks # false || \
> echo "here"
here
yellow torsocks # 

I put the \ in the ebuild because who knows what the future of bash will bring.

Execise for the student: What does POSIX2 say about this?