Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 581722 - app-admin/rsyslog-8.18.0[doc]: unpack: rsyslog-doc-8.18.0.tar.gz does not exist
Summary: app-admin/rsyslog-8.18.0[doc]: unpack: rsyslog-doc-8.18.0.tar.gz does not exist
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ultrabug
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2016-05-01 10:06 UTC by Karl-Johan Karlsson
Modified: 2016-05-03 13:25 UTC (History)
2 users (show)

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


Attachments
Fix USE=doc (bugfix_581722.patch,1.17 KB, patch)
2016-05-03 13:04 UTC, Thomas Deutschmann (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Karl-Johan Karlsson 2016-05-01 10:06:19 UTC
When building app-admin/rsyslog-8.18.0 with USE="doc", it fails during the unpack stage due to not finding the docs tarball:



~ # emerge -av1 rsyslog                

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] app-admin/rsyslog-8.18.0::gentoo  USE="-dbi -debug doc* -elasticsearch gcrypt -grok -jemalloc -kafka -kerberos -libressl -mongodb -mysql -normalize -omhttpfs -omudpspoof -postgres -rabbitmq -redis -relp -rfc3195 -rfc5424hmac -snmp ssl -systemd {-test} -usertools -zeromq" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] y

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) app-admin/rsyslog-8.18.0::gentoo
 * rsyslog-8.18.0.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                  [ ok ]
 * rsyslog-docs-8.18.0.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                             [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     4.5.2-hardened-r1
 * Checking for suitable kernel configuration options...                                                                       [ ok ]
>>> Unpacking source...
>>> Unpacking rsyslog-8.18.0.tar.gz to /var/tmp/portage/app-admin/rsyslog-8.18.0/work
>>> Unpacking rsyslog-doc-8.18.0.tar.gz to /var/tmp/portage/app-admin/rsyslog-8.18.0/work/rsyslog-8.18.0/docs
 * ERROR: app-admin/rsyslog-8.18.0::gentoo failed (unpack phase):
 *   unpack: rsyslog-doc-8.18.0.tar.gz does not exist
 * 
 * Call stack:
 *               ebuild.sh, line  133:  Called src_unpack
 *             environment, line 3706:  Called unpack 'rsyslog-doc-8.18.0.tar.gz'
 *        phase-helpers.sh, line  304:  Called __helpers_die 'unpack: rsyslog-doc-8.18.0.tar.gz does not exist'
 *   isolated-functions.sh, line  117:  Called die
 * The specific snippet of code:
 *              die "$@"
 * 
 * If you need support, post the output of `emerge --info '=app-admin/rsyslog-8.18.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-admin/rsyslog-8.18.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-admin/rsyslog-8.18.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-admin/rsyslog-8.18.0/temp/environment'.
 * Working directory: '/var/tmp/portage/app-admin/rsyslog-8.18.0/work/rsyslog-8.18.0/docs'
 * S: '/var/tmp/portage/app-admin/rsyslog-8.18.0/work/rsyslog-8.18.0'

>>> Failed to emerge app-admin/rsyslog-8.18.0, Log file:

>>>  '/var/tmp/portage/app-admin/rsyslog-8.18.0/temp/build.log'



Note that it checks the hashes for "rsyslog-docs-8.18.0.tar.gz" but then fails to unpack "rsyslog-doc-8.18.0.tar.gz".

Looking at the ebuild, it does (massively snipped):

   Determine the name of the docs tarball:

      MY_FILENAME_DOCS="${PN}-docs-${PV}.tar.gz"

   Download and rename it:

      SRC_URI="doc? ( http://www.rsyslog.com/files/download/${PN}/${MY_URL_PREFIX}${PN}-doc-${MY_PV}.tar.gz -> ${MY_FILENAME_DOCS} )"

   Then, in src_unpack(), it independently determines *another* name for the docs tarball:

      local doc_tarball="${PN}-doc-${PV}.tar.gz"

   and tries to unpack it:

      unpack ${doc_tarball}

MY_FILENAME{,_DOCS} were introduced in 8.18.0, and the doc unpacking code is identical to 8.16.0-r1, so I assume the unpacking code should be changed to use MY_FILENAME_DOCS. But I'm not sure why it's there, so I'm going to let someone who knows what's going on propose a patch.



~ # emerge --info rsyslog
Portage 2.2.28 (python 3.4.3-final-0, hardened/linux/amd64, gcc-5.3.0, glibc-2.23-r2, 4.5.2-hardened-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.5.2-hardened-r1-x86_64-Intel-R-_Core-TM-_i7-6700K_CPU_@_4.00GHz-with-gentoo-2.2
KiB Mem:    63982380 total,  53489836 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 01 May 2016 05:30:01 +0000
sh bash 4.3_p42-r2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r2::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo
dev-util/cmake:           3.5.2::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.20.5::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.69-r2::gentoo
sys-devel/automake:       1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.5::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: --timeout=10 --ipv6

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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=native -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --keep-going --quiet-build=n --backtrack=30 --verbose-conflicts"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.mdfnet.se/gentoo"
LANG="sv_SE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=10 --ipv6"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl amd64 berkdb bzip2 cli cracklib crypt cxx doc dri emacs gdbm hardened iconv idn ipv6 justify latex mmx mmxext modules multilib ncurses nls nptl openmp pam pax_kernel pcre pie readline seccomp session sse sse2 ssl ssp tcpd unicode urandom xattr xtpax zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US en_GB en_UK sv sv_SE" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="x86_64" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel" 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"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

app-admin/rsyslog-8.18.0::gentoo was built with the following:
USE="-dbi -debug -doc -elasticsearch gcrypt -grok -jemalloc -kafka -kerberos -libressl -mongodb -mysql -normalize -omhttpfs -omudpspoof -postgres -rabbitmq -redis -relp -rfc3195 -rfc5424hmac -snmp ssl -systemd -test -usertools -zeromq" ABI_X86="64"
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2016-05-02 20:13:27 UTC
You are right, thanks for the report!
I am preparing the fix right now...
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2016-05-03 13:04:55 UTC
Created attachment 433080 [details, diff]
Fix USE=doc
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2016-05-03 13:25:08 UTC
commit 2423a73cbce067fd46c17b7a1286fa1f9a8befb0
Author: Thomas Deutschmann <whissi@whissi.de>
Date:   Tue May 3 14:57:33 2016

    app-admin/rsyslog: Fix USE=doc
    
    Bug: https://bugs.gentoo.org/581722
    
    Package-Manager: portage-2.2.28