Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 542330 - >app-admin/rsyslog-8.6 with USE="doc": missing DEPEND to dev-python/sphinx
Summary: >app-admin/rsyslog-8.6 with USE="doc": missing DEPEND to dev-python/sphinx
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:
Depends on:
Blocks:
 
Reported: 2015-03-06 07:01 UTC by Martin Dummer
Modified: 2015-03-23 11:45 UTC (History)
2 users (show)

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


Attachments
rsyslog build log (app-admin:rsyslog-8.7.0:20150305-230324.log.gz,23.48 KB, application/gzip)
2015-03-06 07:03 UTC, Martin Dummer
Details
Fixing sphinx build dependency; version check; Slots; Keywording issue (rsyslog_bug542330.patch,2.98 KB, patch)
2015-03-09 13:21 UTC, Thomas Deutschmann (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Dummer 2015-03-06 07:01:00 UTC
Several recent rsyslog ebuilds were not emerges successfully on my ~arch systems.
The inspection of the build logs showed the same reason:

 *           sphinx-build -b html source build || die "Building documentation failed!";

"sphinx-build" belongs to "dev-python/sphinx" - after emerging it manually the rsyslog ebuilds succeed.

So I assume there is a missing

DEPEND=" ... dev-python/sphinx .."

in the ebuilds of rsyslog-8.6 an later. 
My previus installed rsyslog version was 8.4.2, and dev-python/sphinx was never emerged before on my systems.
Comment 1 Martin Dummer 2015-03-06 07:03:35 UTC
Created attachment 398208 [details]
rsyslog build log
Comment 2 Andrew Savchenko gentoo-dev 2015-03-08 08:39:28 UTC
Please post emerge --info output.
Comment 3 Martin Dummer 2015-03-08 09:41:29 UTC
bln9716n ~ # emerge --info
Portage 2.2.18 (python 3.3.5-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.8.4, glibc-2.20-r2, 3.18.7-gentoo-nouveau3 x86_64)
=================================================================
System uname: Linux-3.18.7-gentoo-nouveau3-x86_64-Intel-R-_Core-TM-_i5_CPU_M_560_@_2.67GHz-with-gentoo-2.2
KiB Mem:     3899296 total,    137144 free
KiB Swap:    8388604 total,   7984840 free
Timestamp of repository gentoo: Thu, 05 Mar 2015 20:30:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.25 p1.0) 2.25
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.3_p33-r2::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r2::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.1.0::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.13.11::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25::gentoo
sys-devel/gcc:            4.8.4::gentoo, 4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

md-private
    location: /usr/local/portage
    masters: gentoo
    priority: 0

bitcoin
    location: /var/lib/layman/bitcoin
    masters: gentoo
    priority: 25

vdr-devel
    location: /var/lib/layman/vdr-devel
    masters: gentoo
    priority: 50

vmware
    location: /var/lib/layman/vmware
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 AdobeFlash-11.x googleearth Oracle-BCLA-JavaSE TeamViewer NVIDIA-CUDA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind /var/lib/hsqldb"
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"
CXXFLAGS="-O2 -march=core2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --ask-enter-invalid --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg clean-logs compress-build-logs compressdebug config-protect-if-modified distlocks ebuild-locks fail-clean fakeroot fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/var/tmp"
USE="X a52 aac aalib accessibility acl acpi akonadi alsa amd64 ao apache2 apng audiofile bash-completion berkdb bluetooth branding bzip2 cairo captury cardbus cdda cdr cisco cli clucene consolekit cracklib cron crypt css cups curl cxx dbus declarative device-mapper dhcpcd disk-partition dri dts dvb dvd dvdr ebook embedded emboss emerald enca encode exif extras fam ffmpeg firefox flac fontconfig fortran g3dvl gd gdbm geolocation gif gimp git glade glamor glitz gnutls gphoto2 gpm gstreamer gtk httpd hybrid-auth iconv icu id3tag ieee1394 ipod ipv6 java jpeg kde kerberos kipi kvm lame laptop lcms ldap lensfun libass libcaca libkms libnotify libproxy live lm_sensors logrotate lzo macvtap mad mikmod minizip mjpeg mmap mmx mmxext mng mod modules mp3 mp4 mpeg mtp multilib musicbrainz mysql ncurses networkmanager nfsv3 nfsv4 nls nptl nptlonly nsplugin ntlm ntp nvidia ogg old-daemons opencl openconnect openexr opengl openipmi openmp pam pango pcre pdf phonon plasma pm-utils png policykit ppds python qemu qt3support qt4 rdesktop rdp readline real resolvconf rss samba sasl sdl semantic-desktop session smi smp sndfile snmp spell sql sqlite sse sse2 sse3 ssl ssse3 startup-notification stl svg symlink tcpd test-programs threads threadsafe thumbnail tiff truetype udev udisks unicode upcall upower usb usbredir utils v4l v4l2 vaapi vcd vdpau vim-syntax vnc vorbis webkit wifi wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="canon ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes 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" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de de_DE" LIRC_DEVICES="userspace" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby20 ruby21 ruby22" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="vesa nvidia nouveau" 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:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2015-03-08 14:18:20 UTC
No, app-admin/rsyslog doesn't depend on dev-python/sphinx: The release version is shipping pre-generated documentation.

But you are seeing this error due to a bug in the ebuild: I should have used square brackets in checking for live ebuild... sorry for that. Please apply the following patch:


diff --git a/app-admin/rsyslog/rsyslog-8.7.0.ebuild b/app-admin/rsyslog/rsyslog-8.7.0.ebuild
index fb0b21b..59903a1 100644
--- a/app-admin/rsyslog/rsyslog-8.7.0.ebuild
+++ b/app-admin/rsyslog/rsyslog-8.7.0.ebuild
@@ -200,7 +200,7 @@ src_configure() {
 src_compile() {
        autotools-utils_src_compile

-       if use doc -a ${PV} == "9999"; then
+       if use doc && [[ "${PV}" == "9999" ]]; then
                einfo "Building documentation ..."
                local doc_dir="${S}/docs"
                cd "${doc_dir}" || die "Cannot chdir into \"${doc_dir}\"!"



Thx for the report!
Comment 5 Martin Dummer 2015-03-09 07:04:11 UTC
Hi,

thanks for the explanation. I see you have corrected the ebuild. Now let me give a last remark:

the conditional dependency 
RDEPEND+=" doc? ( >=dev-python/sphinx-1.1.3-r7 )"
should be a 
DEPEND+=" doc? ( >=dev-python/sphinx-1.1.3-r7 )"
because sphinx is needed at build time (only).
Comment 6 Thomas Deutschmann (RETIRED) gentoo-dev 2015-03-09 13:21:53 UTC
Created attachment 398522 [details, diff]
Fixing sphinx build dependency; version check; Slots; Keywording issue

Thanks, good catch!


@UltraBug: Please apply the patch. Regarding the keywording issue, thought that this was already fixed with bug 536784 ...
Comment 7 Ultrabug gentoo-dev 2015-03-23 11:45:09 UTC
fixed, thanks mates !

+*rsyslog-8.7.0-r1 (23 Mar 2015)
+
+  23 Mar 2015; Ultrabug <ultrabug@gentoo.org> -rsyslog-8.7.0.ebuild,
+  +rsyslog-8.7.0-r1.ebuild:
+  fix some deps and doc building thx to Martin Dummer and Thomas D. fix #542330
+