#35285 closed defect (fixed)
gimp-help-en won't upgrade - can't find libxml2
Reported by: | watsodw | Owned by: | dbevans (David B. Evans) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.1 |
Keywords: | haspatch | Cc: | dcecchin@…, fondacio@…, MaddTheSane (C.W. Betts), erikmouw (Erik Mouw), mario.gleirscher@…, skymoo (Adam Mercer), someuser12, maverickwoo (Maverick Woo), tomi@…, MartinBuchmann (Martin Buchmann), jackysp@…, lawrence.ong@…, macuserguru, dgonyier (Dwaine Gonyier), ryandesign (Ryan Carsten Schmidt), numaryu |
Port: | gimp-help-en |
Description
Running upgrade for gimp-help-en fails because it can't find module libxml2
Attachments (4)
Change History (33)
Changed 12 years ago by watsodw
comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | devans@… removed |
---|---|
Owner: | changed from macports-tickets@… to devans@… |
Changed 12 years ago by watsodw
Attachment: | main.2.log added |
---|
comment:5 follow-up: 6 Changed 12 years ago by vikingjs@…
Had the same problem; tried reinstalling libxml2 and got the following result:
sudo port install libxml2 ---> Computing dependencies for libxml2 ---> Cleaning libxml2 ---> Updating database of binaries: 100.0% ---> Scanning binaries for linking errors: 100.0% ---> Found 9 broken file(s), matching files to ports ---> Found 3 broken port(s), determining rebuild order ---> Rebuilding in order gimp2 @2.6.12 +help_browser+python27 inkscape @0.48.3.1 +python26 texlive-bin @2011 +motif+x11
So the problem may not be with gimp-help per se. Not sure it matters, but I had run "port uninstall inactive" recently.
comment:6 follow-up: 7 Changed 12 years ago by vikingjs@…
Replying to vikingjs@…:
Posted that response a little prematurely. After the ports identified as being broken were reinstalled, the original problem persisted.
Had the same problem; tried reinstalling libxml2 and got the following result:
sudo port install libxml2 ---> Computing dependencies for libxml2 ---> Cleaning libxml2 ---> Updating database of binaries: 100.0% ---> Scanning binaries for linking errors: 100.0% ---> Found 9 broken file(s), matching files to ports ---> Found 3 broken port(s), determining rebuild order ---> Rebuilding in order gimp2 @2.6.12 +help_browser+python27 inkscape @0.48.3.1 +python26 texlive-bin @2011 +motif+x11
So the problem may not be with gimp-help per se. Not sure it matters, but I had run "port uninstall inactive" recently.
comment:7 follow-up: 8 Changed 12 years ago by tinoucas@…
- Configure script needs argument '--without-gimp' if gimp is not yet installed.
- Embedded tools/xml2po runs with python, which defaults to /usr/bin/python ; should be python2 (/opt/local/bin/python2.7).
comment:8 follow-up: 23 Changed 12 years ago by kurt@…
Replying to tinoucas@…:
Embedded tools/xml2po runs with python, which defaults to /usr/bin/python ; should be python2 (/opt/local/bin/python2.7).
I had the same problem, and this edit of tools/xml2po.py fixed it for me. (Gimp was already installed)
comment:13 follow-ups: 15 26 Changed 12 years ago by someuser12
I attached a proposal of patch to the portfile (tested under Mac OS 10.6, with Python 2.7 as default), inspired by the portfile of "gtk-doc".
comment:15 follow-up: 19 Changed 12 years ago by skymoo (Adam Mercer)
Replying to macosx12345@…:
I attached a proposal of patch to the portfile (tested under Mac OS 10.6, with Python 2.7 as default), inspired by the portfile of "gtk-doc".
Shouldn't the full path to MacPorts python be used? i.e. /opt/local/bin/python2.7
instead of /usr/bin/env python2.7
?
comment:18 Changed 12 years ago by joshmatthews@…
Proposed portfile patch worked for me on Mac OS 10.7.1.
comment:19 Changed 12 years ago by someuser12
Replying to ram@…:
Shouldn't the full path to MacPorts python be used? i.e.
/opt/local/bin/python2.7
instead of/usr/bin/env python2.7
?
Maybe. Indeed, the present patch works only as long as the first pythonx.y in the PATH
has the same version number as the requested variant of gimp-help-en
and has an associated libxml2
, which should be the most frequent case. Since /usr/bin/env
may have some advantadges that I don't know, I left it and I leave it to some Python expert to give a better answer.
On the other hand I made a mistake, depends_run.append should be depends_build.append since py-libxml2 is needed only during build — now corrected.
Changed 12 years ago by someuser12
Attachment: | Portfile.diff added |
---|
Proposal of a patch to the Portfile
comment:20 Changed 12 years ago by MartinBuchmann (Martin Buchmann)
Cc: | Martin.Buchmann@… added |
---|
Cc Me!
comment:23 Changed 12 years ago by krissen (Kristian Niemi)
Replying to kurt@…:
Replying to tinoucas@…:
Embedded tools/xml2po runs with python, which defaults to /usr/bin/python ; should be python2 (/opt/local/bin/python2.7).
I had the same problem, and this edit of tools/xml2po.py fixed it for me. (Gimp was already installed)
+1.
comment:26 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|---|
Keywords: | haspatch added |
Resolution: | → fixed |
Status: | new → closed |
Replying to macosx12345@…:
I attached a proposal of patch to the portfile (tested under Mac OS 10.6, with Python 2.7 as default), inspired by the portfile of "gtk-doc".
Thanks. I committed a simplified version of this in r96105.
comment:27 follow-up: 28 Changed 12 years ago by numaryu
I had the same problem, and even after patching r96105, I get the attached error (main3.log). It seems the port depends on docbook-xsl as well. Just FYI.
Changed 12 years ago by numaryu
comment:28 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryusuke.numata@… added |
---|
Replying to ryusuke.numata@…:
I had the same problem, and even after patching r96105, I get the attached error (main3.log). It seems the port depends on docbook-xsl as well. Just FYI.
That's a different problem, filed as #35303.
This log is incomplete. Please "sudo port clean gimp-help-en", then try again, then attach the new main.log.