Bug 93960 - net-print/cups cleanup and Gentoo/FreeBSD compatibility
Bug#: 93960 Product:  Gentoo/Alt Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: printing@gentoo.org Reported By: flameeyes@gentoo.org
Component: Other
URL: 
Summary: net-print/cups cleanup and Gentoo/FreeBSD compatibility
Keywords:  
Status Whiteboard: 
Opened: 2005-05-25 09:45 0000
Description:   Opened: 2005-05-25 09:45 0000
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 From Diego E. 'Flameeyes' Pettenò 2005-05-28 03:52:41 0000 -------
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 From Diego E. 'Flameeyes' Pettenò 2005-05-28 03:53:45 0000 -------
Created an attachment (id=60004) [details]
cups-gentooalt.patch

------- Comment #3 From Diego E. 'Flameeyes' Pettenò 2005-05-28 03:54:19 0000 -------
Created an attachment (id=60005) [details]
cups-lppasswd-setXid.patch

------- Comment #4 From Diego E. 'Flameeyes' Pettenò 2005-05-28 03:54:37 0000 -------
Created an attachment (id=60006) [details]
Ebuild patch

------- Comment #5 From Heinrich Wendel (RETIRED) 2005-06-06 10:33:03 0000 -------
gnutls is not available on s390, so i can't commit this one. 
 
s390: please mark net-libs/gnutls 

------- Comment #6 From Danny van Dyk (RETIRED) 2005-06-06 12:06:55 0000 -------
done... :-)

------- Comment #7 From Heinrich Wendel (RETIRED) 2005-06-06 14:05:47 0000 -------
commited as cups-1.1.23-r4 

------- Comment #8 From Paul Varner 2006-01-13 12:22:32 0000 -------
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 From Diego E. 'Flameeyes' Pettenò 2006-01-13 12:37:39 0000 -------
The function name was wrong, committing right now with right name.