Opened 11 years ago
Closed 11 years ago
#39173 closed defect (fixed)
openjpeg15 conflicts with openjpeg 1.5.x on /opt/local/bin/image_to_j2k
Reported by: | neverpanic (Clemens Lang) | Owned by: | stromnov (Andrey Stromnov) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.3 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt), MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), mojca (Mojca Miklavec) | |
Port: | openjpeg15 |
Description
When upgrading, a dependency might pull in the openjpeg15 port before updating the openjpeg port to the new version of 2.0. This can lead to an activation failure:
:) clemens@cSchlepptop:~$ sudo port upgrade outdated ---> Computing dependencies for openjpeg15 ---> Fetching archive for openjpeg15 ---> Attempting to fetch openjpeg15-1.5.0_0.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/openjpeg15 ---> Attempting to fetch openjpeg15-1.5.0_0.darwin_12.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/openjpeg15 ---> Installing openjpeg15 @1.5.0_0 ---> Activating openjpeg15 @1.5.0_0 Error: org.macports.activate for port openjpeg15 returned: Image error: /opt/local/bin/image_to_j2k is being used by the active openjpeg port. Please deactivate this port first, or use 'port -f activate openjpeg15' to force the activation. Please see the log file for port openjpeg15 for details: /opt/local/var/macports/logs/_opt_dports_graphics_openjpeg15/openjpeg15/main.log Error: Problem while installing openjpeg15 To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets
The openjpeg15 port should include a deactivate hack for openjpeg < 2.0.0.
Change History (5)
comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
comment:3 Changed 11 years ago by ldl@…
OK: I just hit this exact one.
Mac OS X 10.6.8, FWIW.
Error message says: Please deactivate this port first, or use 'port -f activate openjpeg15' to force the activation.
Do I do that by hand and rerun port upgrade, or do I wait for the openjpeg15 upgrade script to be revised?
Is it safe to sit here while that happens with this upgrade not in place?
Here is the contents of the log file, if that will help:
version:1 :debug:main Attempting ln -sf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_openjpeg15/openjpeg15/work /opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/openjpeg15/work :debug:main changing euid/egid - current euid: 0 - current egid: 0 :debug:main egid changed to: 501 :debug:main euid changed to: 503 :debug:activate activate phase started at Tue May 21 09:40:59 MST 2013 :debug:activate Can't run activate on this port without elevated privileges. Escalating privileges back to root. :debug:activate euid changed to: 0. egid changed to: 0. :debug:activate Executing proc-pre-org.macports.activate-activate-0 :debug:activate Executing org.macports.activate (openjpeg15) :msg:activate ---> Activating openjpeg15 @1.5.0_0 :debug:activate Using /usr/bin/tar :debug:activate Using /usr/bin/bzip2 :info:activate x ./ :info:activate x ./+COMMENT :info:activate x ./+CONTENTS :info:activate x ./+DESC :info:activate x ./+PORTFILE :info:activate x ./+STATE :info:activate x ./opt/ :info:activate x ./opt/local/ :info:activate x ./opt/local/bin/ :info:activate x ./opt/local/include/ :info:activate x ./opt/local/lib/ :info:activate x ./opt/local/share/ :info:activate x ./opt/local/share/doc/ :info:activate x ./opt/local/share/man/ :info:activate x ./opt/local/share/man/man1/ :info:activate x ./opt/local/share/man/man3/ :info:activate x ./opt/local/share/man/man3/jpwl_libopenjpeg.3.gz :info:activate x ./opt/local/share/man/man3/libopenjpeg.3.gz :info:activate x ./opt/local/share/man/man1/image_to_j2k.1.gz :info:activate x ./opt/local/share/man/man1/j2k_dump.1.gz :info:activate x ./opt/local/share/man/man1/j2k_to_image.1.gz :info:activate x ./opt/local/share/man/man1/jpwl_image_to_j2k.1.gz :info:activate x ./opt/local/share/man/man1/jpwl_j2k_to_image.1.gz :info:activate x ./opt/local/share/doc/openjpeg-1.5/ :info:activate x ./opt/local/share/doc/openjpeg-1.5/CHANGES :info:activate x ./opt/local/share/doc/openjpeg-1.5/LICENSE :info:activate x ./opt/local/lib/libopenjpeg.1.dylib :info:activate x ./opt/local/lib/libopenjpeg.a :info:activate x ./opt/local/lib/libopenjpeg.dylib :info:activate x ./opt/local/lib/libopenjpeg.la :info:activate x ./opt/local/lib/pkgconfig/ :info:activate x ./opt/local/lib/pkgconfig/libopenjpeg.pc :info:activate x ./opt/local/lib/pkgconfig/libopenjpeg1.pc :info:activate x ./opt/local/include/openjpeg-1.5/ :info:activate x ./opt/local/include/openjpeg.h :info:activate x ./opt/local/include/openjpeg-1.5/openjpeg.h :info:activate x ./opt/local/bin/image_to_j2k :info:activate x ./opt/local/bin/j2k_dump :info:activate x ./opt/local/bin/j2k_to_image :error:activate org.macports.activate for port openjpeg15 returned: Image error: /opt/local/bin/image_to_j2k is being used by the active openjpeg port. Please deactivate this port first, or use 'port -f activate openjpeg15' to force the activation. :debug:activate Error code: registry::image-error :debug:activate Backtrace: Image error: /opt/local/bin/image_to_j2k is being used by the active openjpeg port. Please deactivate this port first, or use 'port -f activate openjpeg15' to force the activation. invoked from within "throw registry::image-error "Image error: $file is being used by the active [$owner name] port. Please deactivate this port first, or use 'port -f ac..." ("foreach" body line 45) invoked from within "foreach file $imagefiles { set srcfile "${extracted_dir}${file}" # To be able to install links, we test if we can lst..." invoked from within "registry::write { foreach file $imagefiles { set srcfile "${extracted_dir}${file}" # To be able to instal..." invoked from within "try { registry::write { foreach file $imagefiles { set srcfile "${extracted_dir}${file}" # To be ..." (procedure "_activate_contents" line 21) invoked from within "_activate_contents $requested" (procedure "portimage::activate" line 57) invoked from within "registry_activate $subport $version $revision $portvariants [array get user_options]" (procedure "portactivate::activate_main" line 4) invoked from within "$procedure $targetname" :error:activate Failed to install openjpeg15 :debug:activate Image error: /opt/local/bin/image_to_j2k is being used by the active openjpeg port. Please deactivate this port first, or use 'port -f activate openjpeg15' to force the activation. invoked from within "throw registry::image-error "Image error: $file is being used by the active [$owner name] port. Please deactivate this port first, or use 'port -f ac..." ("foreach" body line 45) invoked from within "foreach file $imagefiles { set srcfile "${extracted_dir}${file}" # To be able to install links, we test if we can lst..." invoked from within "registry::write { foreach file $imagefiles { set srcfile "${extracted_dir}${file}" # To be able to instal..." invoked from within "try { registry::write { foreach file $imagefiles { set srcfile "${extracted_dir}${file}" # To be ..." (procedure "_activate_contents" line 21) invoked from within "_activate_contents $requested" (procedure "portimage::activate" line 57) :notice:activate Please see the log file for port openjpeg15 for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_openjpeg15/openjpeg15/main.log
comment:4 Changed 11 years ago by neverpanic (Clemens Lang)
Just run port upgrade openjpeg
before running port upgrade outdated
, that should fix your problem.
comment:5 Changed 11 years ago by neverpanic (Clemens Lang)
Resolution: | → fixed |
---|---|
Status: | new → closed |
In r106298.
Yup. wiki:PortfileRecipes#deactivatehack