-I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/atk-1.0 checking XFCE_MCS_MANAGER_LIBS... -lxfcegui4 -lxfce4mcs-manager -lxfce4mcs-client -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lxfce4util -lglib-2.0 checking where to install MCS plugins... ${exec_prefix}/lib/xfce4/mcs-plugins configure: error: You need to have at least CUPS or BSDLPR in order to use Xfprint !!! Please attach the following file when filing a report to bugs.gentoo.org: !!! /var/tmp/portage/xfprint-4.3.99.2/work/xfprint-4.3.99.2/config.log !!! ERROR: xfce-base/xfprint-4.3.99.2 failed. Reproducible: Always Steps to Reproduce: 1. USE="-lpr -cups" emerge -av xfprint
Created attachment 105799 [details, diff] xfprint-4.3.99.2.ebuild.patch And remove entry xfce-base/xfprint:lpr - Build LPr/LPd support instead of CUPS support. from use.local.desc Reason I left USE="cups" as alternative because it's a common flag, and also in use.desc.
I'd really prefer to have cups as default, not the other way round...
jakub, It can be done otherway around too. I don't mind. And this is a good reason to remove xfprint from xfce4 meta ebuild. You can't assume everyone using xfce4, actually has an printer.. That's just insane. :-)
Created attachment 105803 [details, diff] xfprint-4.3.99.2.ebuild.diff - cups as default Does this work for you?
(In reply to comment #4) > Created an attachment (id=105803) [edit] > xfprint-4.3.99.2.ebuild.diff - cups as default > > Does this work for you? > +IUSE="debug lpr" +XFCE_CONFIG="$(use_enable cups) $(use_enable !cups bsdlpr)" Looks incorrect.
Created attachment 105805 [details, diff] xfprint-4.3.99.2.ebuild.diff - a correct one Sigh...
(In reply to comment #3) > And this is a good reason to remove xfprint from xfce4 meta ebuild. You can't > assume everyone using xfce4, actually has an printer.. > > That's just insane. :-) Something like this, maybe? --- xfce4-4.3.99.2-r1.ebuild 2006-12-12 05:06:37.000000000 +0100 +++ xfce4-4.3.99.2-r1.ebuild 2007-01-07 14:38:30.000000000 +0100 > That's just insane. :-) Something like this, maybe? --- xfce4-4.3.99.2-r1.ebuild 2006-12-12 05:06:37.000000000 +0100 +++ xfce4-4.3.99.2-r1.ebuild 2007-01-07 14:38:30.000000000 +0100 @@ -7,7 +7,7 @@ LICENSE="GPL-2 BSD LGPL-2" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" SLOT="0" -IUSE="" +IUSE="print" RDEPEND="~x11-themes/gtk-engines-xfce-2.3.99.2 ~xfce-base/xfce-mcs-plugins-${PV} @@ -16,7 +16,6 @@ ~xfce-base/xfce-utils-${PV} ~xfce-base/xfdesktop-${PV} ~xfce-base/xfce4-session-${PV} - ~xfce-base/xfprint-${PV} ~xfce-base/orage-${PV} ~xfce-base/thunar-0.5.0_rc2 ~xfce-extra/xfwm4-themes-${PV} @@ -24,7 +23,8 @@ ~xfce-extra/xfce4-icon-theme-${PV} ~xfce-extra/terminal-0.2.5.8_rc2 ~xfce-extra/xfce4-mixer-${PV} - ~xfce-extra/mousepad-0.2.10" + ~xfce-extra/mousepad-0.2.10 + print? ( ~xfce-base/xfprint-${PV} ) src_install() { dodir /etc/X11/Sessions
(In reply to comment #6) > Created an attachment (id=105805) [edit] > xfprint-4.3.99.2.ebuild.diff - a correct one > > Sigh... > Works for me.
> Something like this, maybe? > + print? ( ~xfce-base/xfprint-${PV} ) Yes, something like that. I was thinking USE="cups lpr" also for meta ebuild which would pull xfprint as dep; just keep things consistent. Anyways, your solution is fine with me too.
*** This bug has been marked as a duplicate of bug 156957 ***
*** Bug 165747 has been marked as a duplicate of this bug. ***
Created attachment 109423 [details, diff] xfprint-4.4.0.ebuild.diff
The above patch requires either getting net-print/lprng keyworded on arm, ia64 and mips or use.masking lpr there.
@arm, ia64 - please either keyword net-print/lprng-3.8.28 or use.mask lpr there if not possible or if you prefer so. Thanks.
If we really need this, it needs to be done this way: RDEPEND="!cups? ( net-print/lprng )" DEPEND="${RDEPEND}" if use cups; then XFCE_CONFIG="${XFCE_CONFIG} --enable-bsdlpr --enable-cups" else XFCE_CONFIG="${XFCE_CONFIG} --enable-bsdlpr" fi There won't be USE="lpr". Using USE="cups" because it's commonly used use.desc flag allready. I'm against adding more use.local.desc entries for Xfce4 if not really needed. ~arm and ~ia64, please keyword lprng so I can close this bug once and for all.
Fixed finally. Thanks to everyone involved here.