LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-16-2012, 07:59 AM   #1
zasavage
Member
 
Registered: Sep 2010
Location: Bloemfontein , South Africa
Distribution: Slackware 13.37 and Slackware 14
Posts: 201

Rep: Reputation: 6
cups 1.5.0 slackbuild


Is there a slackbuild for cups 1.5.0 out there ? For slackware 13.37 64

Ok I am lazy today ...
 
Old 01-16-2012, 08:27 AM   #2
gmartin
Member
 
Registered: Mar 2003
Location: PA
Distribution: Slackware 13.37 Linux Reg # 341245
Posts: 285

Rep: Reputation: 40
Since cups ships with the core Slackware OS, there likely won't be a 3rd party SlackBuild. You could modify the one in the 13.37 source tree and see if that works for you. Understand the latter isn't very lazy, but maybe motivation will come later in the day :-)
 
Old 01-16-2012, 08:27 AM   #3
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Oops, nevermind.... Saw something completely different. My fault!


(Edit - deleted.)
 
Old 01-16-2012, 07:01 PM   #4
bassplayer69
Member
 
Registered: Jul 2007
Location: In a van down by the river...
Distribution: MX Linux 21
Posts: 237

Rep: Reputation: 56
I just modified the cups.SlackBuild that's on the SlackWare64 DVD under a/source and changed the version to 1.5.0 from 1.4.6. I put the source bz2 file, the new slackbuild script and the slack-desc file in a subdirectory and ran cups.SlackBuild. I then uninstalled the 1.4.6 package and install the new 1.5.0 package. I just printed out a LibreOffice spreadsheet without issue.
 
Old 01-16-2012, 08:43 PM   #5
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,670

Rep: Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786
I got this while building cups 1.5.0 on Slackware-Current (32 bit):
Code:
Patching file backend/usb-libusb.c using Plan A...
Hunk #1 succeeded at 13.
Hunk #2 succeeded at 66 (offset 1 line).
Hunk #3 FAILED at 105.
Hunk #4 succeeded at 189.
Hunk #5 succeeded at 359.
Hunk #6 succeeded at 595 with fuzz 1 (offset 12 lines).
Hunk #7 succeeded at 631 (offset 12 lines).
Hunk #8 FAILED at 741.
2 out of 8 hunks FAILED -- saving rejects to file backend/usb-libusb.c.rej
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -urNad cups-1.4.3~/backend/usb-unix.c cups-1.4.3/backend/usb-unix.c
|--- cups-1.4.3~/backend/usb-unix.c     2009-12-08 03:13:42.000000000 +0100
|+++ cups-1.4.3/backend/usb-unix.c      2010-04-09 15:56:30.799666933 +0200
--------------------------
Patching file backend/usb-unix.c using Plan A...
Hunk #1 succeeded at 18.
Hunk #2 succeeded at 35.
Hunk #3 succeeded at 102 with fuzz 1.
Hunk #4 succeeded at 132 with fuzz 1.
Hunk #5 succeeded at 149 with fuzz 1 (offset -2 lines).
Hunk #6 succeeded at 193 (offset -2 lines).
Hunk #7 succeeded at 211 (offset -8 lines).
Hunk #8 succeeded at 317 (offset -8 lines).
Hunk #9 succeeded at 354 (offset -8 lines).
Hunk #10 succeeded at 407 (offset -8 lines).
Hunk #11 FAILED at 489.
Hunk #12 succeeded at 605 (offset -8 lines).
1 out of 12 hunks FAILED -- saving rejects to file backend/usb-unix.c.rej
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -urNad cups-1.4.3~/backend/usb.c cups-1.4.3/backend/usb.c
|--- cups-1.4.3~/backend/usb.c  2008-06-24 03:28:36.000000000 +0200
|+++ cups-1.4.3/backend/usb.c   2010-04-09 15:56:04.345707078 +0200
--------------------------
Patching file backend/usb.c using Plan A...
Hunk #1 succeeded at 56.
done
the build stopped and no package are created...
 
Old 01-16-2012, 09:19 PM   #6
bassplayer69
Member
 
Registered: Jul 2007
Location: In a van down by the river...
Distribution: MX Linux 21
Posts: 237

Rep: Reputation: 56
I see I forgot to add the patch files. I'll try to rebuild again.

update:

I'm not 100% sure, but it looks like the patches are just for the versions < 1.5.0

from the cups page for usb-backend-both-usblp-and-libusb.dpatch.gz: http://www.cups.org/str.php?L3357:

mike
12:03 Jan 12, 2012 Sorry, we have decided this issue will not be addressed in a CUPS release.

and the last update was for 1.4.3


For the usb-backend-both-usblp-and-libusb.dpatch.gz:
https://bugzilla.redhat.com/show_bug...d=553834<br />

it looks like it was fixed as well.


I use a network printer and it seems to work fine without the patches. Your millage may differ. :-)

Last edited by bassplayer69; 01-16-2012 at 10:16 PM.
 
Old 01-17-2012, 01:08 AM   #7
dolphin77
Member
 
Registered: May 2009
Location: Odesa, Ukraine
Distribution: Slackware
Posts: 206

Rep: Reputation: 60
+1, I just took original slackbuild script, changed version to 1.5.0 and removed this lines:
Code:
# Fix the USB backend to use either usblp or libusb:
zcat $CWD/usb-backend-both-usblp-and-libusb.dpatch.gz | patch -p1 --verbose || exit 1

# Fix locking to avoid crashes with OpenSSL:
zcat $CWD/cups.fix_broken_locking.diff.gz | patch -p1 --verbose || exit 1
which are applying patches, which I believe already incorporated in 1.5.0
 
Old 01-17-2012, 02:35 AM   #8
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,670

Rep: Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786
Thanks, it build perfectly now
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CUPS ERROR: [Job ???] Request file type is text/plain. (CUPS on ARM architectu abhinit Linux - Software 3 04-22-2011 03:19 AM
[SOLVED] CUPS unable to print. CUPS runs gs and libgs8 shows segfault in /var/log/messages ianthe Linux - Software 6 07-16-2010 07:11 AM
CUPS, and CUPS-PDF error when restarting, or starting process Predatorian Linux - Desktop 0 10-28-2009 09:21 AM
win ps to samba to cups to ipp cups, no ps filtering to inkjet rhoffman Linux - Server 4 09-23-2007 08:16 AM
remote cups printing to a smb/cups print server? justanothergeek Linux - Networking 2 09-15-2004 08:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration