Opened 19 years ago
Closed 19 years ago
#5355 closed defect (fixed)
BUG: libxml2 should not provide python-related files
Reported by: | vincent-opdarw@… | Owned by: | michaelm@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.0 |
Keywords: | Cc: | gnome-darwinports@…, markd@… | |
Port: |
Description
I try to install scrollkeeper, but I get the following error:
[...] Making all in libs /bin/sh ../libtool --mode=link gcc -no-cpp-precomp -flat_namespace -undefined suppress -lintl -L/opt/local/lib -o libscrollkeeper.la -rpath /opt/local/lib error.lo file.lo i18n.lo merge.lo extract.lo install.lo database.lo uninstall.lo update-url.lo -L/usr/lib -lxml2 -lz -lpthread -liconv -lm -L/opt/local/lib -lxslt -lxml2 -lz -lpthread -liconv -lm grep: /opt/local/lib/libxml2.la: No such file or directory sed: /opt/local/lib/libxml2.la: No such file or directory libtool: link: `/opt/local/lib/libxml2.la' is not a valid libtool archive make[2]: * [libscrollkeeper.la] Error 1 make[1]: * [all-recursive] Error 1 make: * [all] Error 2
Note that I had to deactivate libxml2 to be able to install py-libxml2 (required by some port).
Attachments (1)
Change History (10)
comment:1 Changed 19 years ago by rhwood@…
comment:2 Changed 19 years ago by vincent-opdarw@…
$ sudo port -v install py-libxml2 [...] ---> Activating py-libxml2 2.6.16_0 Error: Target com.apple.activate returned: Image error: /opt/local/lib/python2.4/site-packages/drv_libxml2.py is being used by the active libxml2 port. Please deactivate this port first, or use the -f flag to force the activation. Warning: the following items did not execute (for py-libxml2): com.apple.activate
Is it really a good idea to use the -f flag? Shouldn't ports install non-conflicting files?
If I use the -f flag and uninstall py-libxml2 for some reason, wouldn't the system become unstable because drv_libxml2.py from libxml2 (still active) would have been removed during the py-libxml2 uninstallation?
comment:3 Changed 19 years ago by mww@…
Summary: | scrollkeeper installation failure → BUG: scrollkeeper installation failure |
---|
comment:4 Changed 19 years ago by rhwood@…
Owner: | changed from darwinports-bugs@… to gnome-darwinports@… |
---|
comment:5 Changed 19 years ago by markd@…
Cc: | markd@… added |
---|
Is this duplicatable or was a resolution found?
comment:6 Changed 19 years ago by vincent-opdarw@…
Summary: | BUG: scrollkeeper installation failure → BUG: libxml2 should not provide python-related files |
---|
I haven't tried since I no longer need scrollkeeper (it had to be installed due to a buggy dependency in Liferea, but this is now fixed).
But anyway the problem is due to the fact that the libxml2 port provides python-related files. This should be the goal of some other port (py-libxml2?) and this would solve the conflict between libxml2 and py-libxml2.
Currently, with libxml2 @2.6.22_0:
prunille:~> port contents libxml2 | grep python
/opt/local/lib/python2.4/site-packages/drv_libxml2.py /opt/local/lib/python2.4/site-packages/libxml2.py /opt/local/lib/python2.4/site-packages/libxml2mod.la /opt/local/lib/python2.4/site-packages/libxml2mod.so /opt/local/share/doc/libxml2-python-2.6.22/examples/attribs.py /opt/local/share/doc/libxml2-python-2.6.22/examples/build.py
[...]
comment:7 Changed 19 years ago by markd@…
See http://bugzilla.opendarwin.org/show_bug.cgi?id=7316 for notes on fixing this bug.
comment:8 Changed 19 years ago by rhwood@…
Cc: | gnome-darwinports@… added |
---|---|
Owner: | changed from gnome-darwinports@… to michaelm@… |
Reassigning to port maintainer.
Michael: don't know why this bug was assigned to me, but I have created a patch that fixes it none-the-less.
comment:9 Changed 19 years ago by rhwood@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
Commited patched Portfile to CVS
py-libxml2 requires libxml2 to build, so you should not have had to deactivate it.
Please report the results of the following command: port uninstalll -f py-libxml2 ; port install libxml2 ; port install py-libxml2
Once you have those results to report, you may run the following command to install py-libxml2: port install -f py-libxml2