app-office/scribus-1.3.3.12-r1 doesn't build with USE="-cups" Reproducible: Always Steps to Reproduce: emerge scribus Actual Results: ... -- checking for one of the modules 'libcairo>=1.2.0;cairo>=1.2.0' -- found cairo, version 1.8.8 CAIRO Library Found OK CUPS Library Found OK -- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig LIBXML2 Library Found OK -- Found LittleCMS: /usr/lib64/liblcms.so LittleCMS Library Found OK -- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig FontConfig Found OK -- Looking for dlfcn.h -- Looking for dlfcn.h - found -- Looking for unistd.h -- Looking for unistd.h - found -- Looking for sys/stat.h -- Looking for sys/stat.h - found -- Looking for include files HAVE_ENDIAN_H -- Looking for include files HAVE_ENDIAN_H - found -- Looking for include files HAVE_FCNTL_H -- Looking for include files HAVE_FCNTL_H - found RPATH: ; -- <<< Gentoo configuration >>> Build type: Gentoo Install path: /usr CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: CUPS_INCLUDE_DIR used as include directory in directory /var/tmp/portage/app-office/scribus-1.3.3.12-r1/work/scribus-1.3.3.12 ... Expected Results: successful installation probably related to bug 235603
Can't reproduce this, please post the output of "emerge --info" and "emerge -pv scribus".
# emerge --info Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r5 x86_64) ================================================================= System uname: Linux-2.6.29-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-glibc2.2.5 Timestamp of tree: Mon, 27 Jul 2009 19:00:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p39 dev-java/java-config: 2.1.8-r1 dev-lang/python: 2.5.4-r3 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.4 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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 /etc/udev/rules.d" CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_US.utf8" LDFLAGS="-Wl,-O1" 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="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac aalib acl acpi aiglx alsa amd64 aspell audacious avi berkdb beryl bluetooth branding bzip2 cairo caps cli cracklib crypt dbus dlloader dri dts dvd dvdr dvdread eds emboss encode faac faad fam fbcon ffmpeg firefox flac fortran gd gdbm gif glitz gpm gtk gtk2 hal iconv imap isdnlog java jpeg latex ldap libnotify live mad matroska midi mmx mmxext motif mp2 mp3 mp4 mpeg mpeg2 mudflap multilib ncurses nls nocardbus nptl nptlonly nvidia ogg oggvorbis openal opengl openmp pam pcre pdf pdflib pic plotutils png pppd python qt qt3 qt3support qt4 quicktime readline reflection sdl session smp spell spl sse sse2 sse3 ssl startup-notification svg sysfs tcpd tetex tex theora threads tiff tk truetype unicode utf8 v4l v4l2 vorbis x264 xinerama xml xml2 xorg xscreensaver xulrunner xv xvid xvmc zlib" 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" 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 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" ELIBC="glibc" INPUT_DEVICES="evdev mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS # emerge -pv scribus These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild U ] app-office/scribus-1.3.3.12-r1 [1.3.3.11] USE="cairo -cups%" 0 kB Total: 1 package (1 upgrade), Size of downloads: 0 kB
I'm getting the same problem with 1.3.3.13, 1.3.4-r1 works fine though.
Created attachment 201000 [details, diff] make CUPS really optional in scribus 1.3.3.13 (In reply to comment #0) > app-office/scribus-1.3.3.12-r1 doesn't build with USE="-cups" I personnaly use a modified ebuild for scribus-1.3.3.13 with this patch that *really* makes cups optionnal. It just makes a few modifications in the CMakeLists.txt file, and works fine here T.
Created attachment 201053 [details] modified ebuild for scribus-1.3.3.13 (In reply to comment #4) > I personnaly use a modified ebuild for scribus-1.3.3.13 And here's the corresponding ebuild ! T.
(In reply to comment #5) > Created an attachment (id=201053) [details] > modified ebuild for scribus-1.3.3.13 Thanks for patch and ebuild. I ran into the same problem and now scribus builds as expected. thanks
Converting this a request to make net-print/cups optional for 1.3.5.1
(In reply to comment #7) > Converting this a request to make net-print/cups optional for 1.3.5.1 OK. I didn't test the 1.3.5 version, so I don't know if 1.3.5.1 is also affected (because you can't go back 1.3.5.x -> 1.3.3.x). The developers have just announced in the Scribus user mailing list that there will be a 1.3.3.14 version soon : http://lists.scribus.info/pipermail/scribus/2010-January/036661.html So I think I'll preferably check the 1.3.3.14 version, because scribus team still seems to consider that it should be the "official version" : "The Scribus Team still recommends that all distributions package only Scribus 1.3.3.13 or 1.3.3.14svn. We recommend the additional packaging of 1.3.5 only if it is marked as a development version and can be installed alongside an existing Scribus 1.3.3.x" (from the offical web site : http://www.scribus.net/?q=node/193 ). I think we should have only two versions of scribus in portage : * 1.3.3.13 (or 1.3.3.14 in a few weeks) marked stable * 1.3.5.1 (unstable) T.
(In reply to comment #8) > I think we should have only two versions of scribus in portage : > * 1.3.3.13 (or 1.3.3.14 in a few weeks) marked stable > * 1.3.5.1 (unstable) No. We will only have >=1.3.5.1, which should be marked stable within the next 5 weeks. The 1.3.3.* versions depend on Qt3, which will be masked on Feb. 21st and removed from portage on March 21st. If you want to keep using the Qt3 version, you need to start using the kde-sunset overlay, which is a community-maintained overlay hosting all KDE3 and Qt3 related ebuilds.
(In reply to comment #9) > The 1.3.3.* versions depend on Qt3, which will be masked on Feb. 21st > and removed from portage on March 21st. Sorry, I forgot the QT3 removal planification.1.3.3.14 has been released and should be the the final version in the 1.3.3.x series. Anyways, Scribus 1.3.5.1 doesn't compile without CUPS (even if http://docs.scribus.net/index.php?lang=en&page=install2 says CUPS is optional ): [ 93%] Building CXX object scribus/CMakeFiles/scribus.dir/main.o /dev/shm/portage/app-office/scribus-1.3.5.1/work/scribus-1.3.5.1/scribus/util_printer.cpp: In static member function ‘static QStringList PrinterUtil::getPrinterNames()’: /dev/shm/portage/app-office/scribus-1.3.5.1/work/scribus-1.3.5.1/scribus/util_printer.cpp:60: erreur: no matching function for call to ‘QDataStream::QDataStream(QString*, QIODevice::OpenModeFlag)’ /usr/include/qt4/QtCore/qdatastream.h:186: note: candidats sont: QDataStream::QDataStream(const QDataStream&) /usr/include/qt4/QtCore/qdatastream.h:116: note: QDataStream::QDataStream(const QByteArray&) /usr/include/qt4/QtCore/qdatastream.h:115: note: QDataStream::QDataStream(QByteArray*, QFlags<QIODevice::OpenModeFlag>) /usr/include/qt4/QtCore/qdatastream.h:111: note: QDataStream::QDataStream(QIODevice*) /usr/include/qt4/QtCore/qdatastream.h:110: note: QDataStream::QDataStream() make[2]: *** [scribus/CMakeFiles/scribus.dir/util_printer.o] Erreur 1 make[1]: *** [scribus/CMakeFiles/scribus.dir/all] Erreur 2 My last attempt to convince scribus developers that CUPS should be only optional was unsuccessfull :-( But I think Scribus itself should work without CUPS (in facts, works here with an awful & unpublishable hack in util_printer.cpp, and moreover CUPS isn't required under Windows). T.
Closing then. Please continue getting cups optional (by build-time configure flag in cmake) with upstream first, then here.