Bug#898284: Reprotest Pemission Denied Error on Unshare

Omar Navarro Leija omarsa at seas.upenn.edu
Wed May 9 19:47:51 BST 2018


Package: reprotest
Version: 0.7.7
Severity: serious

I have the simple sl package I'm trying to build:

>  apt source sl
> reprotest sl_3.03-17build1.dsc
...
=======================
Reproduction successful
=======================
...

Works.

I'm trying to run this using a Debian Stretch Image I fetched from
deboostrap through schroot.

> sudo reprotest sl_3.03-17build1.dsc -- schroot stretch
(Sudo is needed to let build dependencies installed and since I get a
sem_open: Permission denied otherwise)

It runs the first build, but when doing the 2nd build with variations I end
up with the error:
fuse: unknown option `-q'
fusermount: failed to unmount /tmp/reprotest.smM4SM/build-experiment-1:
Invalid argument
cleanup failed with exit code 1

(Full output attached as run1.txt)

I wasn't planning on using disoderfs so I turn off that variation:
> sudo reprotest sl_3.03-17build1.dsc --variations +all,-fileordering --
schroot stretch

I end up with the error:
unshare: unshare failed: Operation non permise
(Full output attached as run2.txt)

Which I tracked down with strace to:

[pid 15694] unshare(CLONE_NEWUTS|CLONE_NEWUSER)
= -1 EPERM (Operation not permitted)

Following a warning I made sure that
>  more /proc/sys/kernel/unprivileged_userns_clone
1

On both the host OS and chroot image.

It seems turning off the variations -kernel,-domain_host fixes this as
unshare is not called. My understanding was that creating new user spaces
is not allowed in chroots? See
https://github.com/torvalds/linux/commit/3151527ee007b73a0ebd296010f1c0454a919c7d

I am using Ubuntu 17.10 with kernel version 4.13.0-39-generic.

Thank you for your attention.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/reproducible-builds/attachments/20180509/8e491c1a/attachment.html>
-------------- next part --------------
>  sudo reprotest sl_3.03-17build1.dsc -- schroot stretch
WARNING:reprotest:The control build runs on 1 CPU by default, give --min-cpus to increase this.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
disorderfs is already the newest version (0.5.1-1+b1).
fakeroot is already the newest version (1.21-3.1).
faketime is already the newest version (0.9.6-7+b1).
locales-all is already the newest version (2.24-11+deb9u3).
sudo is already the newest version (1.8.19p1-2.1).
util-linux is already the newest version (2.29.2-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Note, using file './sl_3.03-17build1.dsc' to get the build dependencies
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
gpgv: unknown type of key resource 'trustedkeys.kbx'
gpgv: keyblock resource '/tmp/reprotest.smM4SM/const_build_path//.gnupg/trustedkeys.kbx': General error
gpgv: Signature made Sat Feb  6 21:58:14 2016 GMT
gpgv:                using RSA key BD7EAA60778FA6F5
gpgv: Can't check signature: No public key
dpkg-source: warning: failed to verify signature on ./sl_3.03-17build1.dsc
dpkg-source: info: extracting sl in const_build_path
dpkg-source: info: unpacking sl_3.03.orig.tar.gz
tar: sl-3.03.orig/sl.c: time stamp 1998-07-22 02:01:01 is 901116059.694857902 s in the future
tar: sl-3.03.orig/sl.h: time stamp 1994-01-18 05:23:24 is 758913802.694770325 s in the future
tar: sl-3.03.orig/Makefile: time stamp 1998-07-22 02:00:41 is 901116039.694726953 s in the future
tar: sl-3.03.orig/sl.1: time stamp 1994-01-18 05:23:25 is 758913803.694687836 s in the future
tar: sl-3.03.orig/sl.txt: time stamp 1994-01-18 05:23:25 is 758913803.694652328 s in the future
tar: sl-3.03.orig/README: time stamp 1998-07-22 02:00:03 is 901116001.694617619 s in the future
tar: sl-3.03.orig: time stamp 1998-07-22 02:01:16 is 901116074.694596817 s in the future
dpkg-source: info: unpacking sl_3.03-17build1.debian.tar.xz
tar: debian/rules: time stamp 2012-03-27 04:04:45 is 1332864283.686924004 s in the future
tar: debian/docs: time stamp 2012-03-27 03:55:05 is 1332863703.686861116 s in the future
tar: debian/source/format: time stamp 2012-03-27 03:58:45 is 1332863923.686784455 s in the future
tar: debian/source: time stamp 2012-03-27 03:58:50 is 1332863928.686762151 s in the future
tar: debian/dirs: time stamp 2012-03-27 03:55:05 is 1332863703.686726346 s in the future
tar: debian/README.jp: time stamp 2012-03-27 03:55:05 is 1332863703.686692419 s in the future
tar: debian/copyright: time stamp 2012-03-27 04:49:34 is 1332866972.686659196 s in the future
tar: debian/patches/set_curs.patch: time stamp 2012-03-27 05:12:52 is 1332868370.686603203 s in the future
tar: debian/patches/modify_Makefile.patch: time stamp 2012-03-27 05:08:36 is 1332868114.686332778 s in the future
tar: debian/patches/series: time stamp 2012-03-27 03:35:58 is 1332862556.686293959 s in the future
tar: debian/patches/add_-e_option.patch: time stamp 2012-03-27 05:09:07 is 1332868145.686260614 s in the future
tar: debian/patches/apply_sl-h.patch: time stamp 2012-03-27 05:10:50 is 1332868248.685106533 s in the future
tar: debian/patches/remove_SIGINT.patch: time stamp 2012-03-27 05:12:10 is 1332868328.68506043 s in the future
tar: debian/patches: time stamp 2012-03-27 05:13:29 is 1332868407.685039074 s in the future
tar: debian/compat: time stamp 2012-03-27 03:56:10 is 1332863768.68500858 s in the future
tar: debian/control: time stamp 2012-03-28 02:26:05 is 1332944763.684972483 s in the future
tar: debian/README.sl-h.jp: time stamp 2012-03-27 03:55:05 is 1332863703.684940098 s in the future
tar: debian/README.source: time stamp 2012-03-27 04:53:58 is 1332867236.684907114 s in the future
tar: debian/README.Debian: time stamp 2012-03-27 03:55:05 is 1332863703.684874878 s in the future
tar: debian/sl.install: time stamp 2012-03-27 03:55:05 is 1332863703.684840965 s in the future
tar: debian/changelog: time stamp 2016-02-06 21:45:52 is 1454838350.684786226 s in the future
tar: debian/README: time stamp 2012-03-27 03:55:05 is 1332863703.684750956 s in the future
tar: debian/man/man6/sl.6: time stamp 2012-03-27 03:55:05 is 1332863703.684675421 s in the future
tar: debian/man/man6/LS.6: time stamp 2012-03-27 03:55:05 is 1332863703.684640365 s in the future
tar: debian/man/man6/sl-h.6: time stamp 2012-03-27 03:55:05 is 1332863703.684600631 s in the future
tar: debian/man/man6: time stamp 2012-03-27 03:55:05 is 1332863703.68458157 s in the future
tar: debian/man/ja.UTF-8/sl.6: time stamp 2012-03-27 03:55:05 is 1332863703.68452908 s in the future
tar: debian/man/ja.UTF-8/LS.6: time stamp 2012-03-27 03:55:05 is 1332863703.684493294 s in the future
tar: debian/man/ja.UTF-8/sl-h.6: time stamp 2012-03-27 03:55:05 is 1332863703.684460788 s in the future
tar: debian/man/ja.UTF-8: time stamp 2012-03-27 03:55:05 is 1332863703.684442659 s in the future
tar: debian/man/ja/sl.6: time stamp 2012-03-27 03:55:05 is 1332863703.684385913 s in the future
tar: debian/man/ja/LS.6: time stamp 2012-03-27 03:55:05 is 1332863703.684335805 s in the future
tar: debian/man/ja/sl-h.6: time stamp 2012-03-27 03:55:05 is 1332863703.684299666 s in the future
tar: debian/man/ja: time stamp 2012-03-27 03:55:05 is 1332863703.684281665 s in the future
tar: debian/man/de/sl.6: time stamp 2012-03-27 03:55:05 is 1332863703.684229583 s in the future
tar: debian/man/de/LS.6: time stamp 2012-03-27 03:55:05 is 1332863703.684195816 s in the future
tar: debian/man/de/sl-h.6: time stamp 2012-03-27 03:55:05 is 1332863703.684163814 s in the future
tar: debian/man/de: time stamp 2012-03-27 03:55:05 is 1332863703.684146408 s in the future
tar: debian/man/de.UTF-8/sl.6: time stamp 2012-03-27 03:55:05 is 1332863703.683930272 s in the future
tar: debian/man/de.UTF-8/LS.6: time stamp 2012-03-27 03:55:05 is 1332863703.683884789 s in the future
tar: debian/man/de.UTF-8/sl-h.6: time stamp 2012-03-27 03:55:05 is 1332863703.683850686 s in the future
tar: debian/man/de.UTF-8: time stamp 2012-03-27 03:55:05 is 1332863703.683829224 s in the future
tar: debian/man: time stamp 2012-03-27 03:55:05 is 1332863703.683817205 s in the future
tar: debian: time stamp 2016-02-06 21:45:52 is 1454838350.683806133 s in the future
dpkg-source: info: applying modify_Makefile.patch
dpkg-source: info: applying remove_SIGINT.patch
dpkg-source: info: applying add_-e_option.patch
dpkg-source: info: applying apply_sl-h.patch
dpkg-source: info: applying set_curs.patch
dpkg-buildpackage: info: source package sl
dpkg-buildpackage: info: source version 3.03-17build1
dpkg-buildpackage: info: source distribution xenial
dpkg-buildpackage: info: source changed by Matthias Klose <doko at ubuntu.com>
dpkg-buildpackage: info: host architecture amd64
 dpkg-source --before-build const_build_path
 debian/rules clean
make: Warning: File '/usr/share/cdbs/1/class/langcore.mk' has modification time 1479094623 s in the future
test -x debian/rules
rm -f debian/stamp-makefile-build debian/stamp-makefile-install
/usr/bin/make -C . CFLAGS="-Wall -O2 " CXXFLAGS="-g -O2 -fdebug-prefix-map=/tmp/reprotest.smM4SM/const_build_path/const_build_path=. -fstack-protector-strong -Wformat -Werror=format-security" CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2" LDFLAGS="-lcurses " -k clean
make[1]: Entering directory '/tmp/reprotest.smM4SM/const_build_path/const_build_path'
make[1]: Warning: File 'Makefile' has modification time 1525890032 s in the future
rm -f sl sl-h
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: Leaving directory '/tmp/reprotest.smM4SM/const_build_path/const_build_path'
dh_clean 
make: warning:  Clock skew detected.  Your build may be incomplete.
 debian/rules build
make: Warning: File '/usr/share/cdbs/1/class/langcore.mk' has modification time 1479094623 s in the future
test -x debian/rules
mkdir -p "."
/usr/bin/make -C . CFLAGS="-Wall -O2 " CXXFLAGS="-g -O2 -fdebug-prefix-map=/tmp/reprotest.smM4SM/const_build_path/const_build_path=. -fstack-protector-strong -Wformat -Werror=format-security" CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2" LDFLAGS="-lcurses " 
make[1]: Entering directory '/tmp/reprotest.smM4SM/const_build_path/const_build_path'
make[1]: Warning: File 'Makefile' has modification time 1525890032 s in the future
cc -Wall -O2  -o sl sl.c -lcurses 
cc -Wall -O2  -o sl-h sl-h.c -lcurses 
sl-h.c: In function ‘main’:
sl-h.c:168:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
       pp[i] = (char)NULL;
               ^
sl-h.c: In function ‘add_D51_coach’:
sl-h.c:564:15: warning: variable ‘dy’ set but not used [-Wunused-but-set-variable]
     int y, i, dy = 0;
               ^~
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: Leaving directory '/tmp/reprotest.smM4SM/const_build_path/const_build_path'
touch debian/stamp-makefile-build
CDBS WARNING:  DEB_MAKE_CHECK_TARGET unset, not running checks
make: warning:  Clock skew detected.  Your build may be incomplete.
 debian/rules binary
make: Warning: File '/usr/share/cdbs/1/class/langcore.mk' has modification time 1479094623 s in the future
test -x debian/rules
dh_testroot
dh_prep 
dh_installdirs -A 
mkdir -p "."
CDBS WARNING:  DEB_MAKE_CHECK_TARGET unset, not running checks
CDBS WARNING:  DEB_MAKE_INSTALL_TARGET unset, skipping default makefile.mk common-install target
Adding cdbs dependencies to debian/sl.substvars
dh_installdirs -psl \
	
dh_installdocs -psl 
dh_installexamples -psl 
dh_installman -psl 
dh_installinfo -psl 
dh_installmenu -psl 
dh_installcron -psl 
dh_systemd_enable -psl 
dh_installinit -psl 
dh_installdebconf -psl 
dh_installemacsen -psl 
dh_installcatalogs -psl 
dh_installpam -psl 
dh_installlogrotate -psl 
dh_installlogcheck -psl 
dh_installchangelogs -psl 
dh_installudev -psl 
dh_lintian -psl 
dh_bugfiles -psl 
dh_install -psl 
dh_systemd_start -psl 
dh_link -psl usr/games/sl usr/games/LS
dh_installmime -psl 
dh_installgsettings -psl 
dh_strip -psl  
dh_strip_nondeterminism -psl 
dh_compress -psl 
dh_fixperms -psl 
dh_makeshlibs -psl  
dh_installdeb -psl 
dh_perl -psl 
dh_shlibdeps -psl 
dh_gencontrol -psl  
dh_md5sums -psl 
dh_builddeb -psl 
dpkg-deb: building package 'sl-dbgsym' in '../sl-dbgsym_3.03-17build1_amd64.deb'.
dpkg-deb: building package 'sl' in '../sl_3.03-17build1_amd64.deb'.
make: warning:  Clock skew detected.  Your build may be incomplete.
 dpkg-genbuildinfo --build=binary
 dpkg-genchanges --build=binary >../sl_3.03-17build1_amd64.changes
dpkg-genchanges: info: binary-only upload (no source code included)
 dpkg-source --after-build const_build_path
dpkg-buildpackage: info: binary-only upload (no source included)
WARNING:reprotest.build:IGNORING user_group variation; supply more usergroups with --variations=user_group.available+=USER1:GROUP1;USER2:GROUP2 or alternatively, suppress this warning with --variations=-user_group
WARNING:reprotest.build:Not using sudo for domain_host; your build may fail. See man page for other options.
WARNING:reprotest.build:Be sure to `echo 1 > /proc/sys/kernel/unprivileged_userns_clone` if on a Debian system.
Note, using file './sl_3.03-17build1.dsc' to get the build dependencies
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
disorderfs: shuffling dirents
disorderfs: reversing dirents
fuse: unknown option `-q'
fusermount: failed to unmount /tmp/reprotest.smM4SM/build-experiment-1: Invalid argument
cleanup failed with exit code 1
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/reprotest-0.7.7-py3.6.egg/reprotest/__init__.py", line 831, in run
    return 0 if check_func(*check_args) else 1
  File "/usr/local/lib/python3.6/dist-packages/reprotest-0.7.7-py3.6.egg/reprotest/__init__.py", line 363, in check
    local_dists = [proc.send(nv) for nv in zip(bnames, build_variations)]
  File "/usr/local/lib/python3.6/dist-packages/reprotest-0.7.7-py3.6.egg/reprotest/__init__.py", line 363, in <listcomp>
    local_dists = [proc.send(nv) for nv in zip(bnames, build_variations)]
  File "/usr/local/lib/python3.6/dist-packages/reprotest-0.7.7-py3.6.egg/reprotest/__init__.py", line 329, in corun_builds
    bctx.run_build(testbed, build, os.environ, artifact_pattern, testbed_build_pre, no_clean_on_error)
  File "/usr/local/lib/python3.6/dist-packages/reprotest-0.7.7-py3.6.egg/reprotest/__init__.py", line 220, in run_build
    kind='build')
  File "/usr/local/lib/python3.6/dist-packages/reprotest-0.7.7-py3.6.egg/reprotest/__init__.py", line 64, in check_exec2
    adtlog.AutopkgtestError)
  File "/usr/local/lib/python3.6/dist-packages/reprotest-0.7.7-py3.6.egg/reprotest/__init__.py", line 70, in bomb
    raise _type(m)
reprotest.lib.adtlog.AutopkgtestError: "su -p -s /bin/sh root -c set -e; export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/i_capture_the_path; run_build() {
    mkdir -p /tmp/reprotest.smM4SM/build-experiment-1-aux && \
    SETARCH_ARCH=$(setarch --list | grep -vF "$(uname -m)" | shuf | head -n1) && \
    KERNEL_VERSION=$(uname -r) && \
    if [ ${KERNEL_VERSION#2.6} = $KERNEL_VERSION ]; then SETARCH_OPTS=--uname-2.6; fi && \
    CPU_MAX=$(nproc) && \
    CPU_MIN=$({ echo $CPU_MAX; echo 1; } | sort -n | head -n1) && \
    CPU_NUM=$(if [ $CPU_MIN = $CPU_MAX ];             then echo $CPU_MIN; echo >&2 "only 1 CPU is available; num_cpus is ineffective";             else shuf -i$((CPU_MIN + 1))-$CPU_MAX -n1; fi) && \
    mv /tmp/reprotest.smM4SM/build-experiment-1/ /tmp/reprotest.smM4SM/build-experiment-1-before-disorderfs/ && \
    mkdir -p /tmp/reprotest.smM4SM/build-experiment-1/ && \
    disorderfs -q --shuffle-dirents=yes /tmp/reprotest.smM4SM/build-experiment-1-before-disorderfs/ /tmp/reprotest.smM4SM/build-experiment-1/ && \
    umask 0002 && \
    export REPROTEST_BUILD_PATH=/tmp/reprotest.smM4SM/build-experiment-1/ && \
    export REPROTEST_UMASK=$(umask) && \
    unshare -r --uts sh -ec '
            hostname reprotest-capture-hostname
            domainname "reprotest-capture-domainname"
            "$@"' - \
    taskset -a -c $(echo $(shuf -i0-$((CPU_MAX - 1)) -n$CPU_NUM) | tr ' ' ,) \
    setarch $SETARCH_ARCH $SETARCH_OPTS \
    sh -ec 'cd "$REPROTEST_BUILD_PATH"; unset REPROTEST_BUILD_PATH; umask "$REPROTEST_UMASK"; unset REPROTEST_UMASK; dpkg-source -x "sl_3.03-17build1.dsc" "$(basename "$PWD")" && cd "$(basename "$PWD")" && dpkg-buildpackage --no-sign -b'
}

cleanup() {
    __c=0; \
    export PATH="/tmp/reprotest.smM4SM/bin:$PATH" || __c=$?; \
    fusermount -u /tmp/reprotest.smM4SM/build-experiment-1/ || __c=$?; \
    rmdir /tmp/reprotest.smM4SM/build-experiment-1/ || __c=$?; \
    mv /tmp/reprotest.smM4SM/build-experiment-1-before-disorderfs/ /tmp/reprotest.smM4SM/build-experiment-1/ || __c=$?; \
    rm -rf /tmp/reprotest.smM4SM/build-experiment-1-aux || __c=$?; \
    exit $__c
}

trap '( cleanup )' HUP INT QUIT ABRT TERM PIPE # FIXME doesn't quite work reliably yet

if ( run_build ); then ( cleanup ); else
    __x=$?; # save the exit code of run_build
    if ( ! false ); then
        if ( cleanup ); then :; else echo >&2 "cleanup failed with exit code $?"; fi;
    fi
    exit $__x
fi" failed with status 1
-------------- next part --------------
>  sudo reprotest sl_3.03-17build1.dsc --variations +all,-fileordering -- schroot stretch
WARNING:reprotest:The control build runs on 1 CPU by default, give --min-cpus to increase this.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
disorderfs is already the newest version (0.5.1-1+b1).
fakeroot is already the newest version (1.21-3.1).
faketime is already the newest version (0.9.6-7+b1).
locales-all is already the newest version (2.24-11+deb9u3).
sudo is already the newest version (1.8.19p1-2.1).
util-linux is already the newest version (2.29.2-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Note, using file './sl_3.03-17build1.dsc' to get the build dependencies
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
gpgv: unknown type of key resource 'trustedkeys.kbx'
gpgv: keyblock resource '/tmp/reprotest.86viaq/const_build_path//.gnupg/trustedkeys.kbx': General error
gpgv: Signature made Sat Feb  6 21:58:14 2016 GMT
gpgv:                using RSA key BD7EAA60778FA6F5
gpgv: Can't check signature: No public key
dpkg-source: warning: failed to verify signature on ./sl_3.03-17build1.dsc
dpkg-source: info: extracting sl in const_build_path
dpkg-source: info: unpacking sl_3.03.orig.tar.gz
tar: sl-3.03.orig/sl.c: time stamp 1998-07-22 02:01:01 is 901116058.992542289 s in the future
tar: sl-3.03.orig/sl.h: time stamp 1994-01-18 05:23:24 is 758913801.992424265 s in the future
tar: sl-3.03.orig/Makefile: time stamp 1998-07-22 02:00:41 is 901116038.992351394 s in the future
tar: sl-3.03.orig/sl.1: time stamp 1994-01-18 05:23:25 is 758913802.992296241 s in the future
tar: sl-3.03.orig/sl.txt: time stamp 1994-01-18 05:23:25 is 758913802.992241678 s in the future
tar: sl-3.03.orig/README: time stamp 1998-07-22 02:00:03 is 901116000.992190302 s in the future
tar: sl-3.03.orig: time stamp 1998-07-22 02:01:16 is 901116073.992155801 s in the future
dpkg-source: info: unpacking sl_3.03-17build1.debian.tar.xz
tar: debian/rules: time stamp 2012-03-27 04:04:45 is 1332864282.984254361 s in the future
tar: debian/docs: time stamp 2012-03-27 03:55:05 is 1332863702.984189586 s in the future
tar: debian/source/format: time stamp 2012-03-27 03:58:45 is 1332863922.984128754 s in the future
tar: debian/source: time stamp 2012-03-27 03:58:50 is 1332863927.984106368 s in the future
tar: debian/dirs: time stamp 2012-03-27 03:55:05 is 1332863702.984073581 s in the future
tar: debian/README.jp: time stamp 2012-03-27 03:55:05 is 1332863702.984039932 s in the future
tar: debian/copyright: time stamp 2012-03-27 04:49:34 is 1332866971.984007968 s in the future
tar: debian/patches/set_curs.patch: time stamp 2012-03-27 05:12:52 is 1332868369.983951796 s in the future
tar: debian/patches/modify_Makefile.patch: time stamp 2012-03-27 05:08:36 is 1332868113.983698091 s in the future
tar: debian/patches/series: time stamp 2012-03-27 03:35:58 is 1332862555.983659044 s in the future
tar: debian/patches/add_-e_option.patch: time stamp 2012-03-27 05:09:07 is 1332868144.983625119 s in the future
tar: debian/patches/apply_sl-h.patch: time stamp 2012-03-27 05:10:50 is 1332868247.982467401 s in the future
tar: debian/patches/remove_SIGINT.patch: time stamp 2012-03-27 05:12:10 is 1332868327.982410505 s in the future
tar: debian/patches: time stamp 2012-03-27 05:13:29 is 1332868406.98237993 s in the future
tar: debian/compat: time stamp 2012-03-27 03:56:10 is 1332863767.982345317 s in the future
tar: debian/control: time stamp 2012-03-28 02:26:05 is 1332944762.982307483 s in the future
tar: debian/README.sl-h.jp: time stamp 2012-03-27 03:55:05 is 1332863702.982273385 s in the future
tar: debian/README.source: time stamp 2012-03-27 04:53:58 is 1332867235.982238695 s in the future
tar: debian/README.Debian: time stamp 2012-03-27 03:55:05 is 1332863702.982205459 s in the future
tar: debian/sl.install: time stamp 2012-03-27 03:55:05 is 1332863702.982164326 s in the future
tar: debian/changelog: time stamp 2016-02-06 21:45:52 is 1454838349.9821082 s in the future
tar: debian/README: time stamp 2012-03-27 03:55:05 is 1332863702.982072387 s in the future
tar: debian/man/man6/sl.6: time stamp 2012-03-27 03:55:05 is 1332863702.981994876 s in the future
tar: debian/man/man6/LS.6: time stamp 2012-03-27 03:55:05 is 1332863702.981959845 s in the future
tar: debian/man/man6/sl-h.6: time stamp 2012-03-27 03:55:05 is 1332863702.981920063 s in the future
tar: debian/man/man6: time stamp 2012-03-27 03:55:05 is 1332863702.981901089 s in the future
tar: debian/man/ja.UTF-8/sl.6: time stamp 2012-03-27 03:55:05 is 1332863702.981849077 s in the future
tar: debian/man/ja.UTF-8/LS.6: time stamp 2012-03-27 03:55:05 is 1332863702.981813607 s in the future
tar: debian/man/ja.UTF-8/sl-h.6: time stamp 2012-03-27 03:55:05 is 1332863702.981780668 s in the future
tar: debian/man/ja.UTF-8: time stamp 2012-03-27 03:55:05 is 1332863702.981762922 s in the future
tar: debian/man/ja/sl.6: time stamp 2012-03-27 03:55:05 is 1332863702.981711826 s in the future
tar: debian/man/ja/LS.6: time stamp 2012-03-27 03:55:05 is 1332863702.981660588 s in the future
tar: debian/man/ja/sl-h.6: time stamp 2012-03-27 03:55:05 is 1332863702.981623616 s in the future
tar: debian/man/ja: time stamp 2012-03-27 03:55:05 is 1332863702.981605531 s in the future
tar: debian/man/de/sl.6: time stamp 2012-03-27 03:55:05 is 1332863702.981552555 s in the future
tar: debian/man/de/LS.6: time stamp 2012-03-27 03:55:05 is 1332863702.981512964 s in the future
tar: debian/man/de/sl-h.6: time stamp 2012-03-27 03:55:05 is 1332863702.98147923 s in the future
tar: debian/man/de: time stamp 2012-03-27 03:55:05 is 1332863702.981461136 s in the future
tar: debian/man/de.UTF-8/sl.6: time stamp 2012-03-27 03:55:05 is 1332863702.981241417 s in the future
tar: debian/man/de.UTF-8/LS.6: time stamp 2012-03-27 03:55:05 is 1332863702.981195626 s in the future
tar: debian/man/de.UTF-8/sl-h.6: time stamp 2012-03-27 03:55:05 is 1332863702.981162212 s in the future
tar: debian/man/de.UTF-8: time stamp 2012-03-27 03:55:05 is 1332863702.981140584 s in the future
tar: debian/man: time stamp 2012-03-27 03:55:05 is 1332863702.981129733 s in the future
tar: debian: time stamp 2016-02-06 21:45:52 is 1454838349.981118647 s in the future
dpkg-source: info: applying modify_Makefile.patch
dpkg-source: info: applying remove_SIGINT.patch
dpkg-source: info: applying add_-e_option.patch
dpkg-source: info: applying apply_sl-h.patch
dpkg-source: info: applying set_curs.patch
dpkg-buildpackage: info: source package sl
dpkg-buildpackage: info: source version 3.03-17build1
dpkg-buildpackage: info: source distribution xenial
dpkg-buildpackage: info: source changed by Matthias Klose <doko at ubuntu.com>
dpkg-buildpackage: info: host architecture amd64
 dpkg-source --before-build const_build_path
 debian/rules clean
make: Warning: File '/usr/share/cdbs/1/class/langcore.mk' has modification time 1479094623 s in the future
test -x debian/rules
rm -f debian/stamp-makefile-build debian/stamp-makefile-install
/usr/bin/make -C . CFLAGS="-Wall -O2 " CXXFLAGS="-g -O2 -fdebug-prefix-map=/tmp/reprotest.86viaq/const_build_path/const_build_path=. -fstack-protector-strong -Wformat -Werror=format-security" CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2" LDFLAGS="-lcurses " -k clean
make[1]: Entering directory '/tmp/reprotest.86viaq/const_build_path/const_build_path'
make[1]: Warning: File 'Makefile' has modification time 1525890315 s in the future
rm -f sl sl-h
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: Leaving directory '/tmp/reprotest.86viaq/const_build_path/const_build_path'
dh_clean 
make: warning:  Clock skew detected.  Your build may be incomplete.
 debian/rules build
make: Warning: File '/usr/share/cdbs/1/class/langcore.mk' has modification time 1479094622 s in the future
test -x debian/rules
mkdir -p "."
/usr/bin/make -C . CFLAGS="-Wall -O2 " CXXFLAGS="-g -O2 -fdebug-prefix-map=/tmp/reprotest.86viaq/const_build_path/const_build_path=. -fstack-protector-strong -Wformat -Werror=format-security" CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2" LDFLAGS="-lcurses " 
make[1]: Entering directory '/tmp/reprotest.86viaq/const_build_path/const_build_path'
make[1]: Warning: File 'Makefile' has modification time 1525890314 s in the future
cc -Wall -O2  -o sl sl.c -lcurses 
cc -Wall -O2  -o sl-h sl-h.c -lcurses 
sl-h.c: In function ‘main’:
sl-h.c:168:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
       pp[i] = (char)NULL;
               ^
sl-h.c: In function ‘add_D51_coach’:
sl-h.c:564:15: warning: variable ‘dy’ set but not used [-Wunused-but-set-variable]
     int y, i, dy = 0;
               ^~
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: Leaving directory '/tmp/reprotest.86viaq/const_build_path/const_build_path'
touch debian/stamp-makefile-build
CDBS WARNING:  DEB_MAKE_CHECK_TARGET unset, not running checks
make: warning:  Clock skew detected.  Your build may be incomplete.
 debian/rules binary
make: Warning: File '/usr/share/cdbs/1/class/langcore.mk' has modification time 1479094622 s in the future
test -x debian/rules
dh_testroot
dh_prep 
dh_installdirs -A 
mkdir -p "."
CDBS WARNING:  DEB_MAKE_CHECK_TARGET unset, not running checks
CDBS WARNING:  DEB_MAKE_INSTALL_TARGET unset, skipping default makefile.mk common-install target
Adding cdbs dependencies to debian/sl.substvars
dh_installdirs -psl \
	
dh_installdocs -psl 
dh_installexamples -psl 
dh_installman -psl 
dh_installinfo -psl 
dh_installmenu -psl 
dh_installcron -psl 
dh_systemd_enable -psl 
dh_installinit -psl 
dh_installdebconf -psl 
dh_installemacsen -psl 
dh_installcatalogs -psl 
dh_installpam -psl 
dh_installlogrotate -psl 
dh_installlogcheck -psl 
dh_installchangelogs -psl 
dh_installudev -psl 
dh_lintian -psl 
dh_bugfiles -psl 
dh_install -psl 
dh_systemd_start -psl 
dh_link -psl usr/games/sl usr/games/LS
dh_installmime -psl 
dh_installgsettings -psl 
dh_strip -psl  
dh_strip_nondeterminism -psl 
dh_compress -psl 
dh_fixperms -psl 
dh_makeshlibs -psl  
dh_installdeb -psl 
dh_perl -psl 
dh_shlibdeps -psl 
dh_gencontrol -psl  
dh_md5sums -psl 
dh_builddeb -psl 
dpkg-deb: building package 'sl-dbgsym' in '../sl-dbgsym_3.03-17build1_amd64.deb'.
dpkg-deb: building package 'sl' in '../sl_3.03-17build1_amd64.deb'.
make: warning:  Clock skew detected.  Your build may be incomplete.
 dpkg-genbuildinfo --build=binary
 dpkg-genchanges --build=binary >../sl_3.03-17build1_amd64.changes
dpkg-genchanges: info: binary-only upload (no source code included)
 dpkg-source --after-build const_build_path
dpkg-buildpackage: info: binary-only upload (no source included)
WARNING:reprotest.build:IGNORING user_group variation; supply more usergroups with --variations=user_group.available+=USER1:GROUP1;USER2:GROUP2 or alternatively, suppress this warning with --variations=-user_group
WARNING:reprotest.build:Not using sudo for domain_host; your build may fail. See man page for other options.
WARNING:reprotest.build:Be sure to `echo 1 > /proc/sys/kernel/unprivileged_userns_clone` if on a Debian system.
Note, using file './sl_3.03-17build1.dsc' to get the build dependencies
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
unshare: unshare failed: Operation non permise
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/reprotest-0.7.7-py3.6.egg/reprotest/__init__.py", line 831, in run
    return 0 if check_func(*check_args) else 1
  File "/usr/local/lib/python3.6/dist-packages/reprotest-0.7.7-py3.6.egg/reprotest/__init__.py", line 363, in check
    local_dists = [proc.send(nv) for nv in zip(bnames, build_variations)]
  File "/usr/local/lib/python3.6/dist-packages/reprotest-0.7.7-py3.6.egg/reprotest/__init__.py", line 363, in <listcomp>
    local_dists = [proc.send(nv) for nv in zip(bnames, build_variations)]
  File "/usr/local/lib/python3.6/dist-packages/reprotest-0.7.7-py3.6.egg/reprotest/__init__.py", line 329, in corun_builds
    bctx.run_build(testbed, build, os.environ, artifact_pattern, testbed_build_pre, no_clean_on_error)
  File "/usr/local/lib/python3.6/dist-packages/reprotest-0.7.7-py3.6.egg/reprotest/__init__.py", line 220, in run_build
    kind='build')
  File "/usr/local/lib/python3.6/dist-packages/reprotest-0.7.7-py3.6.egg/reprotest/__init__.py", line 64, in check_exec2
    adtlog.AutopkgtestError)
  File "/usr/local/lib/python3.6/dist-packages/reprotest-0.7.7-py3.6.egg/reprotest/__init__.py", line 70, in bomb
    raise _type(m)
reprotest.lib.adtlog.AutopkgtestError: "su -p -s /bin/sh root -c set -e; export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/i_capture_the_path; run_build() {
    mkdir -p /tmp/reprotest.86viaq/build-experiment-1-aux && \
    SETARCH_ARCH=$(setarch --list | grep -vF "$(uname -m)" | shuf | head -n1) && \
    KERNEL_VERSION=$(uname -r) && \
    if [ ${KERNEL_VERSION#2.6} = $KERNEL_VERSION ]; then SETARCH_OPTS=--uname-2.6; fi && \
    CPU_MAX=$(nproc) && \
    CPU_MIN=$({ echo $CPU_MAX; echo 1; } | sort -n | head -n1) && \
    CPU_NUM=$(if [ $CPU_MIN = $CPU_MAX ];             then echo $CPU_MIN; echo >&2 "only 1 CPU is available; num_cpus is ineffective";             else shuf -i$((CPU_MIN + 1))-$CPU_MAX -n1; fi) && \
    umask 0002 && \
    export REPROTEST_BUILD_PATH=/tmp/reprotest.86viaq/build-experiment-1/ && \
    export REPROTEST_UMASK=$(umask) && \
    unshare -r --uts sh -ec '
            hostname reprotest-capture-hostname
            domainname "reprotest-capture-domainname"
            "$@"' - \
    faketime +509days+22hours+37minutes \
    taskset -a -c $(echo $(shuf -i0-$((CPU_MAX - 1)) -n$CPU_NUM) | tr ' ' ,) \
    setarch $SETARCH_ARCH $SETARCH_OPTS \
    sh -ec 'cd "$REPROTEST_BUILD_PATH"; unset REPROTEST_BUILD_PATH; umask "$REPROTEST_UMASK"; unset REPROTEST_UMASK; dpkg-source -x "sl_3.03-17build1.dsc" "$(basename "$PWD")" && cd "$(basename "$PWD")" && dpkg-buildpackage --no-sign -b'
}

cleanup() {
    __c=0; \
    rm -rf /tmp/reprotest.86viaq/build-experiment-1-aux || __c=$?; \
    exit $__c
}

trap '( cleanup )' HUP INT QUIT ABRT TERM PIPE # FIXME doesn't quite work reliably yet

if ( run_build ); then ( cleanup ); else
    __x=$?; # save the exit code of run_build
    if ( ! false ); then
        if ( cleanup ); then :; else echo >&2 "cleanup failed with exit code $?"; fi;
    fi
    exit $__x
fi" failed with status 1


More information about the Reproducible-builds mailing list