media-plugins/kipi-plugins-1.5.0 fails to merge with "wrong doc dir specified" error Reproducible: Always Steps to Reproduce: 1.emerge -uDN world 2. 3. Actual Results: >>> Emerging (15 of 16) media-plugins/kipi-plugins-1.5.0 * kipi-plugins-1.5.0.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * Package: media-plugins/kipi-plugins-1.5.0 * Repository: gentoo * Maintainer: dilfridge@gentoo.org kde@gentoo.org * USE: amd64 cdr crypt elibc_glibc imagemagick kernel_linux multilib opengl scanner userland_GNU >>> Unpacking source... >>> Unpacking kipi-plugins-1.5.0.tar.bz2 to /var/tmp/portage/media-plugins/kipi-plugins-1.5.0/work >>> Source unpacked in /var/tmp/portage/media-plugins/kipi-plugins-1.5.0/work >>> Preparing source in /var/tmp/portage/media-plugins/kipi-plugins-1.5.0/work/kipi-plugins-1.5.0 ... * ERROR: media-plugins/kipi-plugins-1.5.0 failed: * wrong doc dir specified * * Call stack: * ebuild.sh, line 56: Called src_prepare * environment, line 3869: Called kde4-base_src_prepare * environment, line 3004: Called enable_selected_doc_linguas * environment, line 1586: Called die * The specific snippet of code: * [[ -d "${handbookdir}" ]] || die 'wrong doc dir specified'; * See attachments.
Created attachment 250863 [details] Emerge info
Created attachment 250865 [details] Emerge -pqv
Created attachment 250867 [details] Emerge environment
Created attachment 250869 [details] Build log
Same here. emerge --info Portage 2.1.9.19 (default/linux/amd64/10.0/desktop, gcc-4.4.4, glibc-2.11.2-r0, 2.6.35-gentoo-r10 x86_64) ================================================================= System uname: Linux-2.6.35-gentoo-r10-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.0.1 Timestamp of tree: Sat, 16 Oct 2010 15:00:23 +0000 app-shells/bash: 4.1_p7 dev-java/java-config: 2.1.11 dev-lang/python: 2.6.5-r3, 3.1.2-r4 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.3 sys-apps/sandbox: 2.3-r1 sys-devel/autoconf: 2.13, 2.65-r1 sys-devel/automake: 1.6.3-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.4-r2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81-r2 virtual/os-headers: 2.6.30-r1 (sys-kernel/linux-headers) ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm skype-eula AdobeFlash-10.1" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe -msse4.1" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/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=core2 -O2 -pipe -msse4.1" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.leaseweb.com/gentoo/ http://mirror.jamit.de/gentoo/ http://gentoo.mneisen.org/ http://ftp.ntua.gr/pub/linux/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirror.cambrium.nl/pub/os/linux/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://de-mirror.org/distro/gentoo/" LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed" LINGUAS="en en_GB en_US el" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/kde /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi additions alsa amd64 apache2 asf bash-completion bcmath berkdb branding bzip2 bzlib cairo calendar caps cdr charconv chm cli consolekit contrast cracklib crypt css ctype cups cupsddk curl custom-optimization cxx dba dbus dcc_video dmi dri dts dvd dvdr dvdread ebook effects emboss encode exif expat extras faac faad fam fat fbcon ffmpeg fftw filter firefox firefox3 flac flatfile fontconfig foomaticdb ftp gcj gd gdbm gif gimp gimpprint glib glx gmp gnomedb gnutls gocr gphoto2 gpm gtk hddtemp hotpixels howl iconv icu id3tag imagemagick imap imlib innodb inotify jabber java java6 javascript jpeg jpeg2k json kde kdehiddenvisibility kipi lame lcdfilter lcms lensfun libsamplerate libwww lm_sensors mad madwifi maildir mailwrapper maps melt mhash mikmod mime mmx mmxext modules motif mozbranding mozdevelop mozilla mozsvg mp3 mp4 mpeg mplayer mpm-worker mudflap multilib multiuser mysql mysqli ncurses newspr nls no-old-linux nodrm nomalloccheck nptl nptlonly ntfs objc offensive ofx ogg opengl openmp optimization pam pango pcmcia pcntl pcre pdf pdo pear perl php plasma pmu png policykit posix postgres ppds pppd python qt3support qt4 quicktime rar raw rdesktop readline redeyes reflection reiserfs reports ruby sasl scanner sdl semantic-desktop server session sha512 sharedext simplexml slang smp sndfile soap sockets speex spell spreadsheet sqlite sqlite3 srt sse sse2 sse3 ssl ssse3 startup-notification subtitles subversion svg symlink sysfs syslog tcltk tcpd templates tetex theora threads tidy tiff tokenizer tordns truetype udev unicode usb userlocales vda vdpau vnc vncviewer vorbis wmf wv wxgtk1 x264 xcomposite xfs xine xml xmlreader xmlrpc xmlwriter xorg xpdf-headers xpm xprint xscreensaver xsl xulrunner xv xvid xvnc zip zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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 version" APACHE2_MPMS="prefork" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap 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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB en_US el" NETBEANS_MODULES="cnd php ide nb webcommon xml gsf harness websvccommon" PHP_TARGETS="php-5.2" RUBY_TARGETS="ruby18" SANE_BACKENDS="snapscan" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
can confirm this. Not I wonder if this has anything to do with "en_GB" as sometimes I have build/package complaining about this "en_GB" but they never fail like this.
Created attachment 250899 [details] emerge info kipi-plugins
Created attachment 250901 [details] log
Created attachment 250903 [details] environment
ebuild will build fine with USE="handbook" I think it's an upstream problem excerpt from environment 1582:enable_selected_doc_linguas () 1583-{ 1584- debug-print-function ${FUNCNAME} "$@"; 1585- if ! $(env | grep -q "^LINGUAS="); then 1586- return 0; 1587- fi; 1588: KDE_DOC_DIRS=${KDE_DOC_DIRS:='doc/%lingua'}; 1589- local linguas; 1590: for pattern in ${KDE_DOC_DIRS}; 1591- do 1592- local handbookdir=`dirname ${pattern}`; 1593- local translationdir=`basename ${pattern}`; 1594- [[ "${handbookdir}" = '.' ]] && handbookdir=${translationdir} && translationdir=; 1595: [[ -d "${handbookdir}" ]] || die 'wrong doc dir specified'; 1596- if ! use handbook; then 1597- sed -e "/add_subdirectory[[:space:]]*([[:space:]]*${handbookdir}[[:space:]]*)/s/^/#DONOTCOMPILE /" -e "/ADD_SUBDIRECTORY[[:space:]]*([[:space:]]*${handbookdir}[[:space:]]*)/s/^/#DONOTCOMPILE /" -i CMakeLists.txt || die 'failed to comment out all handbooks'; 1598- else 1599- comment_all_add_subdirectory "${handbookdir}"; 1600- local lingua;
adding -handbook to /etc/portage/package.use did not resolve this for me and I really thought it would. I did a diff of 1.4 and based on that commented out all of the handbook? and related if-else statements from the ebuild and created a new digest. It is building now.
(In reply to comment #11) > adding -handbook to /etc/portage/package.use did not resolve this for me and I > really thought it would. I did a diff of 1.4 and based on that commented out > all of the handbook? and related if-else statements from the ebuild and created > a new digest. It is building now. > adding "handbook" not removing "-handbook" or just try like this in cli USE="handbook" emerge -vuND kipi-plugins should work or at least it did it for me
well I opened a bug upstream at kde bug ->254434 https://bugs.kde.org/show_bug.cgi?id=254434 but I start to think that this is a gentoo bug. in the ebuild(this part was not present in previous ebuild): ------------------------------- src_prepare() { if use handbook; then echo "add_subdirectory( doc )" >> CMakeLists.txt else mkdir doc || die echo >> doc/CMakeLists.txt || die fi kde4-base_src_prepare } ----------------------- I don't get the "echo >> doc/CMakeLists.txt || die" rem:william if you could assign this bug to the kde then maybe we could have someone with a bit more experience looking at this bug. Component->KDE
(In reply to comment #11) > adding -handbook to /etc/portage/package.use did not resolve this for me and I > really thought it would. I did a diff of 1.4 and based on that commented out > all of the handbook? and related if-else statements from the ebuild and created > a new digest. It is building now. > I should have read better your comment. I still don't understand why adding use="handbook" didn't work for you. my understanding of the problem is the following build changed because adding new use variable handbook in ebuild lines else mkdir doc || die echo >> doc/CMakeLists.txt || die fi my understanding of the problem is the following. make the ebuild fail when using -handbook because $handbookdir need to be set(note that I don't understand the [[ -d "${handbookdir}" ]] what does this mean?) to be set and to do so it need to have CMakeLists.txt filled with the doc directory list even if we won't use it if we set -handbook they will then be commented as to not be compiled 1596- if ! use handbook; then 1597- sed -e "/add_subdirectory[[:space:]]*([[:space:]]*${handbookdir}[[:space:]]*)/s/^/#DONOTCOMPILE /" -e "/ADD_SUBDIRECTORY[[:space:]]*([[:space:]]*${handbookdir}[[:space:]]*)/s/^/#DONOTCOMPILE /" -i CMakeLists.txt || die 'failed to comment out all handbooks'; Is this correct? is it not? Should I go to rehab?
well after hAving a new look to the changelog of this package and sync and re-emerging it I can say that this bug has been fixed by the package maintainer the same day as it was released. package build fine to me with or without "handbook". whoever had this problem can sync again ,emerge this again and comfirm. Anyway I suggest to close this bug. I can't do it myself as only the bug owner or a dev can do it.
I had the same experience, re-synced and kipi-plugins emerges with or without handbook use flag.
Works for me.