Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93960 - net-print/cups cleanup and Gentoo/FreeBSD compatibility
Summary: net-print/cups cleanup and Gentoo/FreeBSD compatibility
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-25 09:45 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2006-04-12 10:50 UTC (History)
3 users (show)

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


Attachments
cups-gentooalt.patch (cups-gentooalt.patch,966 bytes, patch)
2005-05-28 03:53 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff
cups-lppasswd-setXid.patch (cups-lppasswd-setXid.patch,417 bytes, patch)
2005-05-28 03:54 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff
Ebuild patch (cups-1.1.23-r3.patch,2.49 KB, patch)
2005-05-28 03:54 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2005-05-25 09:45:34 UTC
Currently cups uses lp user/group which doesn't exists on FreeBSD systems.
Adding the user in pkg_setup should do the trick of having it working right, I think.

Thanks,
Diego
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-05-28 03:52:41 UTC
I'm going to attach a patch to the ebuild and one for cups sources to make     
cups work on Gentoo/FreeBSD (and the patch is also needed for Gentoo/Darwin). 
 
The first one cleanups generally the ebuild using econf (passing the right    
params to be able to have the same layout as now) and emake, adding gnutls    
useflag (on fbsd is the default) and using use_enable to enable/disable    
optional stuff. 
 
There's also a patch to fix the QA Notice about lppasswd being suid and with  
lazy bindings. 
 
Thanks. 
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-05-28 03:53:45 UTC
Created attachment 60004 [details, diff]
cups-gentooalt.patch
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-05-28 03:54:19 UTC
Created attachment 60005 [details, diff]
cups-lppasswd-setXid.patch
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-05-28 03:54:37 UTC
Created attachment 60006 [details, diff]
Ebuild patch
Comment 5 Heinrich Wendel (RETIRED) gentoo-dev 2005-06-06 10:33:03 UTC
gnutls is not available on s390, so i can't commit this one. 
 
s390: please mark net-libs/gnutls 
Comment 6 Danny van Dyk (RETIRED) gentoo-dev 2005-06-06 12:06:55 UTC
done... :-)
Comment 7 Heinrich Wendel (RETIRED) gentoo-dev 2005-06-06 14:05:47 UTC
commited as cups-1.1.23-r4 
Comment 8 Paul Varner (RETIRED) gentoo-dev 2006-01-13 12:22:32 UTC
It looks like the lazy bindings patch got broken in net-print/cups-1.1.23-r7

See the following:

emerge -v1 cups
<snip>
/usr/portage/net-print/cups/cups-1.1.23-r7.ebuild: line 68: bindnow_flags: command not found
<snip>
QA Notice: the following files are setXid, dyn linked, and using lazy bindings
 This combination is generally discouraged.  Try re-emerging the package:
 LDFLAGS='-Wl,-z,now' emerge cups
LAZY usr/bin/lppasswd
Comment 9 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-01-13 12:37:39 UTC
The function name was wrong, committing right now with right name.