LinuxQuestions.org
Help answer threads with 0 replies.
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 08-15-2012, 02:27 PM   #1
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,715

Rep: Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827
CUPS vs. LibreOffice vs. landscape printing: to upgrade or not to upgrade?


Hi,

Just spent a few days installing, configuring and troubleshooting. The TODO.txt file gets smaller and smaller, and right now, there's only one major bug left, but it's not only unnerving, it's a showstopper.

I'm running Slackware64 13.37 on the server, with a Brother HL-2030 laser printer attached to it. CUPS is configured OK and works well, but... landscape printing won't work with LibreOffice. (3.5.5 AlienBob packages).

Now I've read the ChangeLog.txt for current, and it seems like this problem has been solved by CUPS 1.4.8. I took a peek in patches/, but there's no trace of an update. So I'm seriously thinking about doing this small upgrade myself.

I've never built CUPS from source before, and I don't know if it's a big deal or not. But in any case, I'd better ask. As I figure out things, it would be a matter of taking the original SlackBuild, do a version bump and rebuild the thing. Or... are there any major pitfalls to expect, some things (like Samba for example) that suddenly will stop working mysteriously?

In case an upgrade is no big deal, which version would you recommened? I'd thought about CUPS 1.4.8 in replacement for 1.4.6, but maybe you have another suggestion?

I've already posted a message about this problem about a year ago, and we sort of found a tedious workaround. At the time, I thought LibreOffice was the culprit, and I only learned later the problem was related to CUPS. I'd be really glad to solve this problem. At the local school where I installed a complete Slackware network, we regularly hear folks swearing when they go to the printer and take a look at what they produced.

Last edited by kikinovak; 08-15-2012 at 02:28 PM.
 
Old 08-15-2012, 03:44 PM   #2
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,378

Rep: Reputation: 180Reputation: 180
I generally do what you are contemplating. I've done it to upgrade, as well as downgrade software. I have an HP AIO L7590 that won't work with the new HPLIP for scanning. The one with 13.37 works just fine. So I run -current with a rebuilt HPLIP from 13.37.
 
1 members found this post helpful.
Old 08-15-2012, 03:48 PM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,299

Rep: Reputation: Disabled
Slackware-current upgraded to CUPS 1.4.8 on 8-feb-2012 using the exact same unmodified cups.SlackBuild script you find in Slackware 13.37. The version bump was pretty minor so you should not find any issues upgrading to 1.4.8.
The only other package depending on cups, which was rebuilt (actually, upgraded) that same day was hplip. Perhaps you could rebuild the hplip package after you upgraded cups, but only if you experience printing issues.

Eric
 
1 members found this post helpful.
Old 08-15-2012, 03:59 PM   #4
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,378

Rep: Reputation: 180Reputation: 180
I never had printing issues with either version. Printing has always been excellent. Its just that scanning with the hplip upgrade was broken. Downgrading for whatever reason fixed that. Google was no help, at least it seems I was the only one having a problem. I just gave up trying to figure out what went south. The really goofy part is that I don't do that much scanning.
 
Old 08-16-2012, 03:38 AM   #5
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,715

Original Poster
Rep: Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827
Quote:
Originally Posted by Alien Bob View Post
Slackware-current upgraded to CUPS 1.4.8 on 8-feb-2012 using the exact same unmodified cups.SlackBuild script you find in Slackware 13.37. The version bump was pretty minor so you should not find any issues upgrading to 1.4.8.
The only other package depending on cups, which was rebuilt (actually, upgraded) that same day was hplip. Perhaps you could rebuild the hplip package after you upgraded cups, but only if you experience printing issues.

Eric
Thanks for the info!

I tried out what you suggested. CUPS 1.4.8 built without any hiccup. I had a hard time finding the "corresponding" version from HPLIP, since older versions have to be hunted down somewhere. I gave the latest (3.12.6) version a spin with the SlackBuild from 13.37, and it also built OK.

I upgraded both packages on the server and on another machine that's "hosting" a HP multifunction printer. I deleted both printers and added them again, to be on the safe side.

Good news: printing works well, mostly, as before.

Bad news: the LibreOffice landscape bug is still there.

So right now I'm busy writing SlackBuild scripts for openoffice.org and openoffice.org-langpack, which don't seem to be affected by this bug (and some other ones).
 
Old 08-16-2012, 04:27 AM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,299

Rep: Reputation: Disabled
Looking at https://bugs.freedesktop.org/show_bug.cgi?id=43932 it appears that this landscape printing bug was fixed in LibreOffice finally? I checked the source for LO 3.5.5.3 (which is the version which I packaged) and indeed the patch http://cgit.freedesktop.org/libreoff...68e3ebbaca8c47 seems to have been applied there.
However, you still seem to have this landscape bug even with my LibreOffice 3.5.5 package?

I also found an old thread with a workaround, where you stated at that time that the workaround worked: http://www.linuxquestions.org/questi...6/#post4464414 but still you switched your customer to Debian. Are they back on Slack?

Perhaps I need to package 3.5.6 (which was released last week) or perhaps even 3.6.1 which was released today.

Eric
 
Old 08-16-2012, 04:59 AM   #7
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,715

Original Poster
Rep: Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827
Yes, I have your 3.5.5 packages, Eric, with french and german localizations installed. BTW, I left a comment on your site because there seems to be some odd packaging detail. It's under the LibreOffice 3.5.5 article, probably you have overlooked it. The package mysteriously installs a whole libreoffice/ directory tree under /root/, which seems an odd place.

Back to the initial subject: yes, I still have the bug.

I think the best solution for me will be to make some packages for OpenOffice.org and translations. About a year ago, I decided to make a test, and I installed LibreOffice to some clients, and OpenOffice.org to some others. Quite some complaints from the LibreOffice users (besides the landscape bug, display oddities, paste special not working, various weirdnesses in the Impress module, ...), and no complaints whatsoever from the OpenOffice.org faction. It seems to me that - technically speaking - LibreOffice/OpenOffice are comparable to the Firefox/Seamonkey pair. The latter has a more conservative development cycle and seems to focus more on bugfixing.

Yeah, the past year was also under the sign of a big hesitation between Slackware and Debian. I was unable to decide, so I alternated between both and saw where it got me. I was seduced by many things with Debian (apt-cacher, packages galore, ...) but eventually I came to discover several downsides. Now I can say - for having used them both in production environments, on servers and desktops - that I know them quite well, I can live with both, but I much prefer Slackware (one hell of a factor being the great Slackware community). There's more work initially with Slackware, but it's well worth it. My Slackware installation in the local school was a lot (!) of work, but it's been heavily used for a year now, without any major dysfunction.
 
Old 08-16-2012, 05:39 AM   #8
sorinm
Member
 
Registered: Jul 2012
Location: RO
Distribution: Slackware64-14.0
Posts: 65

Rep: Reputation: Disabled
I packaged LibreOffice 3.6.0.4 with the slackbuild for 3.5.5. It`s working fine. Try to upgrade and see if the problem is still there.

Last edited by sorinm; 08-16-2012 at 05:46 AM.
 
Old 08-16-2012, 06:52 AM   #9
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,299

Rep: Reputation: Disabled
Quote:
Originally Posted by sorinm View Post
I packaged LibreOffice 3.6.0.4 with the slackbuild for 3.5.5. It`s working fine. Try to upgrade and see if the problem is still there.
Did you build it from source using my script or re-packaged the official binaries using the slackbuilds.org script/

Eric
 
Old 08-16-2012, 06:55 AM   #10
sorinm
Member
 
Registered: Jul 2012
Location: RO
Distribution: Slackware64-14.0
Posts: 65

Rep: Reputation: Disabled
I repackaged the RPMs with the SBo`s script.
 
Old 08-16-2012, 08:59 AM   #11
gauchao
Member
 
Registered: Dec 2009
Distribution: SLACKWARE 14.1 64bit
Posts: 162

Rep: Reputation: 24
Quote:
landscape printing won't work with LibreOffice
Same problem here, using Slack 13.37 64bit, Alien's Libreoffice 3.5.5.3 and CUPS 1.4.6. I have a laser printer HP LJ P1005. Note: I use a linux printer driver foo2zjs.
 
Old 08-16-2012, 01:47 PM   #12
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,715

Original Poster
Rep: Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827
OK, I just spent the best part of a sunny afternoon writing two SlackBuilds for Apache Open Office and the relevant language packs. It's a bit of a packaging nightmare, but I eventually got it right. I decided to go for the last available version, which is 3.4.0.

First try... huge disappointment. The landscape printing problem subsisted. I fiddled around a bit, and eventually got it right. Only thing one has to do is open the printer admin dialog and changing "PDF" to "Postscript level 1". Then everything works.

As far as I can see, one major difference between LibreOffice and OpenOffice is that these printer settings are 1) global for OpenOffice, meaning they're set once, and that's it, but 2) on a per-document basis in LibreOffice, which makes the thing a PITA to work with.

While googling for this particular problem, I found many (!) people in a similar situation. One can't help the feeling that the printing system in Linux is in a similarly chaotic state as, say, the sound system.

But once this problem is resolved, Apache Open Office is quite snappy, crisp and clean. I've hunted down some known bugs from LibreOffice, and everything works fine here.
 
1 members found this post helpful.
Old 08-18-2012, 01:59 AM   #13
MadMaverick9
Member
 
Registered: Aug 2010
Location: Here
Distribution: Slackware 14.0
Posts: 144

Rep: Reputation: Disabled
When I tried to print landscape from Libreoffice (3.5.6 on 13.37), it didn't work same as for you, but I also got the following two error messages:
Quote:
"/usr/lib/cups/filter/pstoraster failed"
Quote:
[11834.420636] gs[23126]: segfault at b6b9d000 ip b738cbee sp bfdbfa5c error 6 in libc-2.13.so[b7312000+15c000]
Did you get these two error messages too?

The "gs[23126]" seemed to indicate a segfault in ghostscript. So I decided to upgrade cups and ghostscript and ... voilá ... it works now. I can print landscape from Libreoffice 3.5.6 (Alien Bob's packages) on 13.37 now using the default settings.

I upgraded cups to 1.4.8 (not sure if this is needed, but I felt like doing it). And I upgraded ghostscript to 9.06 using the build script from current.

Hope this fixes the problem for you too.

Last edited by MadMaverick9; 08-18-2012 at 03:48 AM.
 
Old 08-18-2012, 05:23 AM   #14
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,715

Original Poster
Rep: Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827
Quote:
Originally Posted by MadMaverick9 View Post
I upgraded cups to 1.4.8 (not sure if this is needed, but I felt like doing it). And I upgraded ghostscript to 9.06 using the build script from current.

Hope this fixes the problem for you too.
I tried what you suggested, but unfortunately the problem still subsists. At least, the workaround is now less painful for the users.
 
  


Reply

Tags
cups, landscape, libreoffice, printing


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Libreoffice refuses to print landscape zasavage Slackware 9 01-31-2012 06:46 AM
[SOLVED] LibreOffice upgrade problem question (pinning) feeblebrain Debian 4 12-04-2011 11:38 AM
No CUPS Printer After Upgrade anw Linux - Software 2 04-11-2009 06:21 PM
LXer: Canonical Preparing Landscape Upgrade for Ubuntu Management LXer Syndicated Linux News 0 02-19-2009 09:42 PM
Upgrade CUPS from 1.1.20 to 1.1.22 jpostma Linux - Newbie 1 12-16-2006 02:50 PM


All times are GMT -5. The time now is 08:53 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration