[SRU] photoprint needs rebuild against changed libphotoprint2

Bug #260849 reported by Sergey Rudchenko
150
This bug affects 26 people
Affects Status Importance Assigned to Milestone
Gutenprint
Invalid
Undecided
Unassigned
Photo Print
Invalid
Undecided
Unassigned
photoprint (Ubuntu)
Fix Released
High
Unassigned
Precise
Fix Released
High
Unassigned

Bug Description

[SRU Request for Precise Pangolin]

[IMPACT]

When I try to run the photoprint program I get this:
$ photoprint
photoprint: error while loading shared libraries: libgutenprint.so.2: cannot open shared object file: No such file or directory

Though libgutenprint2 package is installed:
$ dpkg --get-selections | grep gutenprint
libgutenprint2 install

This is due to an error in the gutenprint buildsystem that introduced a new soname, but the Ubuntu package maintainer forgot to update the packaging and request a rebuild of all it's rdepends. This has since been corrected (see http://packages.qa.debian.org/g/gutenprint/news/20120709T224733Z.html) and the fixed upstream version is in Quantal and later - as it turns out, the soname was wrongfully bumped.

For Precise, the easiest solution would be a rebuild of photoprint to pick up the new soname.

[TEST CASE]

1. Install photoprint in Ubuntu Precise
2. Start photoprint
3. Observe error message: error while loading shared libraries: libgutenprint.so.2

4. Rebuild and install the rebuilt photoprint
5. Observe photoprint starting as normal

[REGRESSION POTENTIAL]

Slim to none, photoprint has no reverse dependencies.

Revision history for this message
Sergey Rudchenko (sergey.rudchenko) wrote :

Doh... sorry
Kubuntu Intrepid amd64

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

I can confirm this.

Changed in photoprint:
status: New → Confirmed
Revision history for this message
Fabián Rodríguez (magicfab) wrote :

Can't reproduce this in Hardy (8.04.1).

Revision history for this message
wizard10000 (wizard10000) wrote :

Confirmed in 32-bit Intrepid as well. libgutenprint.so.2 is missing from the archive and the version from Hardy causes a segfault in Intrepid's photoprint.

Revision history for this message
Klaus Doblmann (moviemaniac) wrote :

Confirmed in Intrepid too.

Revision history for this message
Daniel Nylander (yeager) wrote :

Confirmed on Ubuntu 8.10 AMD64 too

Revision history for this message
mrufino1 (157audio) wrote :

Same here, ubunto 8.10 32 bit on IBM t41.

Revision history for this message
Klaus Doblmann (moviemaniac) wrote :

Okay, so I just compiled the new upstream version (0.3.9) of photoprint - worked like a charm and the program now runs. I'm currently working on figuring out how to build a deb-package (all that's left for me to do is to figure out the dependencies for the control-file...) once I get that to work I'll upload it.

Revision history for this message
Klaus Doblmann (moviemaniac) wrote :

Okay, so I finally built the .deb-file of the 0.3.9 upstream-version (i386 only, sorry) and so far everything seems to work on my machine. If you don't want to build it yourself (quite a lot of dependencies here) you can try my attached file (no warranty, no support). Please report back whether it works or not :).

Revision history for this message
Thomas Perl (thp) wrote :

Please provide a source .dsc file if you want us to try it out. Thanks!

Revision history for this message
Klaus Doblmann (moviemaniac) wrote :

Attached the .dsc-file as requested :)

Revision history for this message
mrufino1 (157audio) wrote :

The deb package installed and the program starts now. Thanks!!

Revision history for this message
DemonCcC (demonccc) wrote :

Hello Ubunteros.
Other thing what you can do is:

#apt-get install libgutenprint2

#ln -s /usr/lib/libgutenprint.so.1 /usr/lib/libgutenprint.so.2

And vuala, now photoprint should working.

Revision history for this message
Daniel J Blueman (danielblueman) wrote :

This bug-report should be of importance 'major/critical', since photoprint plain won't work after the users installs it. Worse, the average user can't do anything about this and installs Microsoft Vista to print their photos 'easily'...

Can someone tweak the bug importance please?

OK - this is the easiest bug on Launchpad to fix...a simple rebuild fixes it:

$ sudo apt-get build-dep photoprint
$ apt-get source photoprint
$ (cd photoprint-0.3.8b && debuild -us -uc)
$ dpg -i photoprint_0.3.8b-2_amd64.deb
$ photoprint
<voila!>

Can someone authorised do this please?

Revision history for this message
Raval Seojattan (underpressure) wrote :

This command insantly fixed the problem for me in 8.10: #ln -s /usr/lib/libgutenprint.so.1 /usr/lib/libgutenprint.so.2

Revision history for this message
eitch (eitch) wrote :

Setting the soft link only works to start the application, but when trying to print the application immediately crashes.

Recompiling from the source solved the problem

Revision history for this message
Daniel T Chen (crimsun) wrote :

awaiting resolution of bug 304857

Changed in photoprint:
importance: Undecided → Low
status: Confirmed → Triaged
Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

This bug should be fixed and an updated package should be available in intrepid-proposed !

Changed in photoprint:
importance: Low → High
Revision history for this message
Vanostaajen (tvodeslimme) wrote :

I can confirm bug in uibuntu 8.10.

And please, someone fix this, because I don't want to be seen on a vista pc printing photos because I can't on my ubuntu.

Revision history for this message
Andreas Moog (ampelbein) wrote :

This is fixed in jaunty and karmic, please follow https://wiki.ubuntu.com/StableReleaseUpdates#Procedure to request an update in Intrepid.

Changed in photoprint (Ubuntu):
status: Triaged → Fix Released
Changed in photoprint (Ubuntu Intrepid):
importance: Undecided → High
Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Intrepid Ibex reached end-of-life on 30 April 2010 so I am closing the report. The bug has been fixed in newer releases of Ubuntu.

Changed in photoprint (Ubuntu Intrepid):
status: New → Invalid
Revision history for this message
Miguelángel León (migueleonm) wrote :

This bug is still present in precise pangolin 12.04

Changed in photoprint (Ubuntu Intrepid):
status: Invalid → Confirmed
Revision history for this message
Unkraut (unkraut2) wrote :

I can confirm: This bug is still present in precise pangolin 12.04

Revision history for this message
JC Hulce (soaringsky) wrote :

Ubuntu Intrepid is End-of-life and no longer supported. I am closing the bug task for Intrepid (it is still open for other versions of Ubuntu).

Changed in photoprint (Ubuntu Intrepid):
status: Confirmed → Invalid
Revision history for this message
LanceHaverkamp (lance-thehaverkamps) wrote :

This says "Fix Released." That's great, but where is that fix? It's not coming down the 12.04 pipe as an upgrade, or it would be launching without error. Please explain.

Thanks!
Lance

Revision history for this message
LanceHaverkamp (lance-thehaverkamps) wrote :

OK Here's a fix:
Search for the directory on your system containing libgutenprint.so.3
Open a terminal there, then enter the command:
sudo ln -s libgutenprint.so.3 libgutenprint.so.2

What I don't understand is why a corrected photoprint.deb hasn't been pushed-out as an update for all currently "supported" versions.

Revision history for this message
doclist (dclist) wrote :

This bug needs to be re-opened since, I assume. it currently isn't flagged as an open bug against precise anywhere and therefore is unlikely to get fixed.

Revision history for this message
marcus905 (marcus90) wrote :

It's still affecting me on 12.04

Please patch it (or tell me how to submit a patch and I'll do it)

Changed in photoprint (Ubuntu Intrepid):
status: Invalid → New
status: New → Confirmed
Unkraut (unkraut2)
tags: added: precise
Revision history for this message
markusj (markusj) wrote :

Workaround: sudo ln -s /usr/lib/x86_64-linux-gnu/libgutenprint.so.3 /usr/lib/x86_64-linux-gnu/libgutenprint.so.2
(Yes, it is an ugly hack, but it works)

Revision history for this message
Norman Perry (perry-n1) wrote :

Thank you Markusj for what, to me, is a beautifully simple (and effective) solution.

Revision history for this message
NoOp (glgxg) wrote :

This bug is a regression. photoprint works fine in 11.04, but does not work in 12.04. It needs to be reopened:

$ apt-cache policy photoprint
photoprint:
  Installed: 0.4.2~pre2-2
  Candidate: 0.4.2~pre2-2
  Version table:
 *** 0.4.2~pre2-2 0
        500 http://archive.ubuntu.com/ubuntu/ precise/universe i386 Packages
        100 /var/lib/dpkg/status

$ photoprint
photoprint: error while loading shared libraries: libgutenprint.so.2: cannot open shared object file: No such file or directory

Suggested workaround of #29 does not work as I've no libgutenprint.so.2 on my system, so there is noplace to ln to.

There is however:
$ locate libgutenprint.so.
/usr/lib/i386-linux-gnu/libgutenprint.so.3
/usr/lib/i386-linux-gnu/libgutenprint.so.3.0.0

Revision history for this message
NoOp (glgxg) wrote :

Workaround suggested here works:
<http://ubuntuforums.org/showthread.php?t=2028997>

sudo ln -s /usr/lib/i386-linux-gnu/libgutenprint.so.3 /usr/lib/i386-linux-gnu/libgutenprint.so.2

However I wonder if doing so will have any affect on any other applications requiring /usr/lib/i386-linux-gnu/libgutenprint.so.3 proper?

Revision history for this message
shankao (shankao) wrote :

Setting intrepid as invalid as it's already EOL.

As this bug is marked as fix released, the better is that somebody that still experiences it in a supported Ubuntu version creates a new bug for it. Then, he/she can link there to this bug report for extra completeness. Thanks.

Revision history for this message
shankao (shankao) wrote :

Intrepid reached EOL on April 30, 2010

Changed in photoprint (Ubuntu Intrepid):
status: Confirmed → Invalid
Changed in photoprint (Ubuntu Intrepid):
status: Invalid → New
status: New → Invalid
affects: photoprint (Ubuntu) → coreutils (Ubuntu)
no longer affects: photoprint (Ubuntu Intrepid)
no longer affects: photoprint (Ubuntu)
affects: coreutils (Ubuntu) → photoprint (Ubuntu)
Revision history for this message
Andrew King (aking1012-com) wrote :

I can confirm that this bug still evidences when installed from binary packages.

I can also confirm that when built from source the bug does not evidence.

As a stop-gap until the build system issue is resolved, I would recommend triggering a build either manually or with a junk commit.

Reference: http://chat.stackexchange.com/transcript/message/8047931#8047931

Revision history for this message
Jorge Castro (jorge) wrote :

I'm flipping this back to Confirmed, if in the future you find that many people are having a problem with a bug and no one has permissions to flip it back to confirmed please feel free to contact the bug squad directly:

https://wiki.ubuntu.com/BugSquad/Contacts

Changed in photoprint (Ubuntu):
status: Fix Released → Confirmed
tags: added: packaging regression-release
Revision history for this message
Mechanical snail (replicator-snail) wrote :

Reported the build system issue as bug #1120870.

Revision history for this message
William Grant (wgrant) wrote :

The only bug here is that libgutenprint2 5.2.8 in precise provides libgutenprint.so.3 rather than libgutenprint.so.2. This is a bug in gutenprint 5.2.8. From the upstream 5.2.9 changelog:

"""
* Changes from 5.2.8

  1) This release fixes an inappropriate change to the internal
     library version number (.soname or equivalent) made in 5.2.8.
     All distributors should immediately apply this update to their
     distributions to avoid other software linking against
     libgutenprint breaking.
"""

There is no build system issue.

Revision history for this message
Mechanical snail (replicator-snail) wrote :
Andreas Moog (ampelbein)
no longer affects: photoprint (Ubuntu Intrepid)
Changed in photoprint (Ubuntu):
status: Confirmed → Triaged
Changed in photoprint (Ubuntu Precise):
status: New → Triaged
importance: Undecided → High
Changed in photoprint (Ubuntu):
status: Triaged → Fix Released
Changed in photoprint:
status: New → Invalid
Changed in gutenprint:
status: New → Invalid
Revision history for this message
Andreas Moog (ampelbein) wrote :

There are 2 possibilities to fix this in Precise (quantal and later are not affected, they ship with a corrected gutenprint package):

1. Rebuild photoprint to pick up the "wrong" soname .3
2. Pull http://anonscm.debian.org/gitweb/?p=collab-maint/gutenprint.git;a=blob_plain;f=debian/patches/0001-debian-Correct-library-versioning-and-linking.patch;h=0c7e39701a57556f612dd31b4844b897dcc6d675;hb=da0ca33e70d298c4baf2842416635bbff8d3a1df from Debian's gutenprint package and rebuild that to provide libgutenprint2.so and rebuild photoprint against the corrected version.

1) Is the easiest solution and should work without breaking things.

Andreas Moog (ampelbein)
description: updated
Andreas Moog (ampelbein)
Changed in photoprint (Ubuntu Precise):
status: Triaged → In Progress
summary: - photoprint is missing libgutenprint.so.2
+ [SRU] photoprint needs rebuild against changed libphotoprint2
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Sergey, or anyone else affected,

Accepted photoprint into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/photoprint/0.4.2~pre2-2ubuntu0.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in photoprint (Ubuntu Precise):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Andreas Moog (ampelbein) wrote :

andreas@incubator:~$ photoprint --version
photoprint: error while loading shared libraries: libgutenprint.so.2: cannot open shared object file: No such file or directory
andreas@incubator:~$ sudo apt-get install -t precise-proposed photoprint
[...]
Setting up photoprint (0.4.2~pre2-2ubuntu0.1) ...
andreas@incubator:~$ photoprint --version
photoprint 0.4.2-pre2

Photoprint now works as expected on Ubuntu Precise.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Scott Kitterman (kitterman) wrote : Update Released

The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package photoprint - 0.4.2~pre2-2ubuntu0.1

---------------
photoprint (0.4.2~pre2-2ubuntu0.1) precise-proposed; urgency=low

  * No-change rebuild to pick up changed soname from libgutenprint
    (LP: #260849)
 -- Andreas Moog <email address hidden> Fri, 09 Aug 2013 00:25:05 +0200

Changed in photoprint (Ubuntu Precise):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.