Bug 674619 - SpliX package - hard coded cups_serverbin
Summary: SpliX package - hard coded cups_serverbin
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: cups
Version: 14
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-02 16:39 UTC by Raphael Groner
Modified: 2011-11-18 17:58 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-02-02 17:24:23 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Raphael Groner 2011-02-02 16:39:23 UTC
Description of problem:
Snippet of cups.spec:
%define cups_serverbin %{_exec_prefix}/lib/cups
{...}
install -c -m 755 %{SOURCE9} $RPM_BUILD_ROOT%{cups_serverbin}/filter/textonly

Should it be "lib64" instead of "lib" in case of x86_64 architecture?!
I am creating a spec file for SpliX that provides some cups drivers for printers using SPL (Samsung Printer Language) from Samsung itself and several other companies. So, I would have to use an hard coded path as well there, cause %{_libdir} value is ".../usr/lib64".

Version-Release number of selected component (if applicable):
cups-1.4.6-1.fc14.x86_64

How reproducible:
always

Steps to Reproduce:
1. 
2.
3.
  
Actual results:
Filters and PPD files must be installed always in /usr/lib, not in /usr/lib64 for x86_64.

Expected results:
Individual path depending on architecture. Similiarities to the architecture depending value of %{_libdir} .

Additional info:
rpmlint does not like this in splix.spec:
%files
%{_prefix}/lib/cups/filter/pstoqpdl
%{_prefix}/lib/cups/filter/rastertoqpdl

Comment 1 Raphael Groner 2011-02-02 16:41:50 UTC
(In reply to comment #0)
$ cups-config --serverbin
/usr/lib/cups

Comment 2 Tim Waugh 2011-02-02 17:24:23 UTC
/usr/lib/cups is correct, even on x86_64.  It is not used for putting shared objects in but for executables, and multilibbing works correctly in that situation.

It's more of a libexec-style usage, but we use lib for compatibility with 3rd party drivers (at upstream request).

Comment 3 Jiri Popelka 2011-02-03 08:41:31 UTC
I could possibly put a comment in cups.spec why we use hard-coded %{_exec_prefix}/lib and not %{_libdir} or %{_libexecdir} (also bug #225670, comment #2).

Comment 4 Jiri Popelka 2011-02-03 08:42:30 UTC
I was also thinking about packaging Splix, because I have QPDL (SPL2) printer.
But RPMs from http://www.openprinting.org/driver/splix/ work without any problems in all Fedora releases so I abandoned that idea.

But if you need someone to review your package, count on me.

Comment 5 Raphael Groner 2011-02-03 10:48:08 UTC
That's a really good idea with openprinting, but which package should the normal user choose from the different LSB version, how should he/she know? 

And yes, please add a comment in the cups.spec file. It's just confusing for packagers of new drivers, without any given reason.

Comment 6 Raphael Groner 2011-02-03 12:02:45 UTC
(In reply to comment #5)
Okay, the linuxprinting.org package works for me. There is a yum repository available.

http://www.linuxfoundation.org/collaborate/workgroups/openprinting/database/driverpackages#Installation_with_the_package_tool_of_your_distribution_and_automatic_updates
(scroll down to see the content of the desired repo file)

Comment 7 Raphael Groner 2011-02-04 20:20:06 UTC
(In reply to comment #6)
Hi Jiri, 
I encountered that the linuxprinting.org package installs everything under /opt. That is no good way in trying to be conform with LSB. I am currently working on an official splix.spec file for an official Fedora package. Though, the big image compression library is somehow proprietary, but optional, and available only via rpmfusion. So probably we need two packages, but I do not know if that library is needed at all - my printer works without it, anyways. Further, I would need some help to compile those .tex files (propably to PDF) in doc/ for the doc sub-package.

Comment 8 Jiri Popelka 2011-02-07 10:37:54 UTC
(In reply to comment #7)
> Though, the big image compression library is somehow proprietary, but optional, and
> available only via rpmfusion. So probably we need two packages, but I do not
> know if that library is needed at all - my printer works without it, anyways.
Xerox Phaser 3117 was also working without JBIG library so I think we can start without it.

> Further, I would need some help to compile those .tex files (propably to PDF)
> in doc/ for the doc sub-package.
I can't find any .tex files in splix-2.0.0.tar.bz2.

Comment 9 Raphael Groner 2011-02-07 16:12:23 UTC
(In reply to comment #8)
.tex files are in the svn's doc/ branch…

https://splix.svn.sourceforge.net/svnroot/splix/doc/specs/
https://splix.svn.sourceforge.net/svnroot/splix/doc/specs-en/

Comment 11 Jiri Popelka 2011-11-16 14:11:06 UTC
Due to bug #753641, comment #12 I've been again thinking about shipping SpliX in Fedora.
I've been checking the JBIG problem again and this is what I've discovered:

There's a jbigkit package in rpmfusion-free. Even it's possible to build SpliX without JBIG support most likely some printers (no idea how many of them) won't work then.

http://www.cl.cam.ac.uk/~mgk25/jbigkit/
says, that:
Patents: Annex E of the JBIG1 standard lists a number of patents that might have been applicable to implementations. These have now expired worldwide, with the exception of one single patent that remains in force only in the United States until 4 April 2012. JBIG-KIT comes without any patent licence.

So it seems that in April 2012 we'll be able to ship jbigkit with Fedora and therefore also SpliX with JBIG support. Hurah ! :-)

It also seems that SpliX upstream is quite active (though last version 2.0.0 was released in February 2009). Till Kamppeter is actively commiting fixes and support for new printers so we can expect new version sometimes.

Comment 12 Raphael Groner 2011-11-16 18:54:02 UTC
(In reply to comment #11)
Thank you for the summary. An official package in Fedora would be appreciated! :)

Nevertheless, I can also go with the package from OpenPrinting.

Comment 13 Jiri Popelka 2011-11-18 13:07:21 UTC
Raphael, could you attach the spec file you spoke about in the description of this bug ? I can either take it over from you, continue where you ended and submit it for Package Review or make an informal review of it before you submit it for Package Review yourself. What sounds better to you ?
If you don't have it anymore, I'll start from scratch.

Comment 14 Jiri Popelka 2011-11-18 17:58:14 UTC
I actually went on and created the spec file from scratch.
Hope you don't mind.
I'll be glad if you could try the SRPM mentioned in Package Review (bug #755069).


Note You need to log in before you can comment on or make changes to this bug.