Opened 11 years ago

Closed 14 months ago

#43410 closed defect (fixed)

orfeotoolbox @4.0.0 +nonfree: conflicts with openjpeg15 but also depends on it

Reported by: plm_macports@… Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc:
Port: orfeotoolbox

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Hi,

The r118977 revision add a test that don't work... See my install logs of orpfeotoolbox @4.0.0 :

# port -v install orfeotoolbox +nonfree
--->  Computing dependencies for orfeotoolbox.
--->  Configuring orfeotoolbox
Error: orfeotoolbox cannot be built while openjpeg15 is active.
Error: Please deactivate openjpeg15 and try again.
Error: You can reactivate openjpeg15 again later.
Error: org.macports.configure for port orfeotoolbox returned: openjpeg15 is active
Warning: targets not executed for orfeotoolbox: org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
Please see the log file for port orfeotoolbox for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_orfeotoolbox/orfeotoolbox/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port orfeotoolbox failed

So, I follow recommandations:

# port -v deactivate openjpeg15
--->  Deactivating openjpeg15 @1.5.0_1
--->  Unable to deactivate openjpeg15 @1.5.0_1, the following ports depend on it:
--->  	ffmpeg @2.2.1_0+gpl2+nonfree
Error: org.macports.deactivate for port openjpeg15 returned: Please uninstall the ports that depend on openjpeg15 first.
Warning: targets not executed for openjpeg15: org.macports.deactivate
Please see the log file for port openjpeg15 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_openjpeg15_1.5.0_1/openjpeg15/main.log
Warning: Failed to execute portfile from registry for openjpeg15 @1.5.0_1
--->  Deactivating openjpeg15 @1.5.0_1
--->  Unable to deactivate openjpeg15 @1.5.0_1, the following ports depend on it:
--->  	ffmpeg @2.2.1_0+gpl2+nonfree
Error: port deactivate failed: Please uninstall the ports that depend on openjpeg15 first.

Ok, I'll continue:

# port -v uninstall ffmpeg @2.2.1_0+gpl2+nonfree
--->  Unable to uninstall ffmpeg @2.2.1_0+gpl2+nonfree, the following ports depend on it:
--->  	opencv @2.4.8_2
...

# port -v uninstall opencv @2.4.8_2
--->  Deactivating opencv @2.4.8_2
--->  Cleaning opencv
--->  Removing work directory for opencv
--->  Uninstalling opencv @2.4.8_2
--->  Cleaning opencv
--->  Removing work directory for opencv

# port -v uninstall ffmpeg @2.2.1_0+gpl2+nonfree
--->  Deactivating ffmpeg @2.2.1_0+gpl2+nonfree
--->  Cleaning ffmpeg
--->  Removing work directory for ffmpeg
--->  Uninstalling ffmpeg @2.2.1_0+gpl2+nonfree
--->  Cleaning ffmpeg
--->  Removing work directory for ffmpeg

# port -v deactivate openjpeg15
--->  Deactivating openjpeg15 @1.5.0_1
--->  Cleaning openjpeg15
--->  Removing work directory for openjpeg15

So, now, everything would be Ok, no? Take a look:

# port -v install orfeotoolbox +nonfree
--->  Computing dependencies for orfeotoolbox....
--->  Dependencies to be installed: opencv ffmpeg openjpeg15
--->  Activating openjpeg15 @1.5.0_1
......
--->  Cleaning openjpeg15
--->  Removing work directory for openjpeg15
--->  Fetching archive for ffmpeg
--->  ffmpeg-2.2.1_0+gpl2+nonfree.darwin_13.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
--->  Attempting to fetch ffmpeg-2.2.1_0+gpl2+nonfree.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/ffmpeg
.................
--->  Fetching distfiles for ffmpeg
--->  Verifying checksums for ffmpeg
--->  Checksumming ffmpeg-2.2.1.tar.bz2
--->  Extracting ffmpeg
--->  Extracting ffmpeg-2.2.1.tar.bz2
--->  Applying patches to ffmpeg
--->  Applying patch-libdc1394.diff
patching file configure
--->  Configuring ffmpeg
install prefix            /opt/local
source path               .
C compiler                /usr/bin/clang
C library                 
ARCH                      x86 (generic)
big-endian                no
runtime cpu detection     yes
yasm                      yes
MMX enabled               yes
MMXEXT enabled            yes
3DNow! enabled            yes
3DNow! extended enabled   yes
SSE enabled               yes
SSSE3 enabled             yes
AVX enabled               yes
XOP enabled               yes
FMA3 enabled              yes
FMA4 enabled              yes
i686 features enabled     yes
CMOV is fast              yes
EBX available             yes
EBP available             yes
debug symbols             yes
strip symbols             yes
optimize for size         no
optimizations             yes
static                    yes
shared                    yes
postprocessing support    yes
new filter support        yes
network support           yes
threading support         pthreads
safe bitstream reader     yes
SDL support               yes
opencl enabled            no
libzvbi enabled           no
texi2html enabled         yes
perl enabled              yes
pod2man enabled           yes
makeinfo enabled          yes
.............
--->  Staging ffmpeg into destroot
--->  Compressing man pages for ffmpeg
man1/ffmpeg-all.1:	   73.7% -- replaced with man1/ffmpeg-all.1.gz
......................
--->  Installing ffmpeg @2.2.1_0+gpl2+nonfree
......................
--->  Activating ffmpeg @2.2.1_0+gpl2+nonfree
.....................
x ./opt/local/bin/ffserver

*******
******* This build of ffmpeg includes nonfree code as follows:
*******
*******     libfaac
*******     libfdk-aac
*******
******* The following libraries and binaries may not be redistributed:
*******
*******     ffmpeg
*******     libavcodec
*******     libavdevice
*******     libavfilter
*******     libavformat
*******     libavutil
*******
******* To remove this restriction remove the variant +nonfree
*******

--->  Cleaning ffmpeg
--->  Removing work directory for ffmpeg
--->  Fetching archive for opencv
--->  opencv-2.4.8_2.darwin_13.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
--->  Attempting to fetch opencv-2.4.8_2.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/opencv
..............
--->  Attempting to fetch opencv-2.4.8_2.darwin_13.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/opencv
..............
--->  Installing opencv @2.4.8_2
--->  Activating opencv @2.4.8_2
..............
--->  Cleaning opencv
--->  Removing work directory for opencv
--->  Configuring orfeotoolbox
Error: orfeotoolbox cannot be built while openjpeg15 is active.
Error: Please deactivate openjpeg15 and try again.
Error: You can reactivate openjpeg15 again later.
Error: org.macports.configure for port orfeotoolbox returned: openjpeg15 is active
Warning: targets not executed for orfeotoolbox: org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
Please see the log file for port orfeotoolbox for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_orfeotoolbox/orfeotoolbox/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port orfeotoolbox failed

Why warning about nonfree notice about "libfaac" and "ibfdk-aac"? I run this installation with "--nonfree" flat.

it want to have "openjpeg15" deactivated but the installation process re-install it...

If anybody have a solution.

Attachments (1)

main.log (68.2 KB) - added by plm_macports@… 11 years ago.
The main log file of last test

Download all attachments as: .zip

Change History (11)

comment:1 Changed 11 years ago by plm_macports@…

Cc: plm_macports@… added

Cc Me!

Changed 11 years ago by plm_macports@…

Attachment: main.log added

The main log file of last test

comment:2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: stromnov@… added; plm_macports@… removed
Description: modified (diff)
Keywords: maverick maintainer removed
Owner: changed from macports-tickets@… to julien.malik@…
Port: orfeotoolbox added; orpfeotoolbox removed
Summary: orfeotoolbox @4.0.0 +nonfree Configure error - build failureorfeotoolbox @4.0.0 +nonfree: conflicts with openjpeg15 but also depends on it

You don't appear to be the maintainer of this port so I am removing the "maintainer" keyword. I have assigned the ticket to the port's actual maintainer.

You don't need to Cc yourself; you will automatically be Cc'd because you are the reporter.

The ffmpeg port tells you about the consequences of selecting the nonfree variant to ensure that you're aware of the licensing implications of your choice.

I agree there is a problem here: orfeotoolbox declares a build conflict with openjpeg15, yet declares a dependency on opencv which depends on ffmpeg which depends on openjpeg15; this cannot work.

comment:3 in reply to:  2 Changed 11 years ago by plm_macports@…

Replying to ryandesign@…:

You don't appear to be the maintainer of this port so I am removing the "maintainer" keyword. I have assigned the ticket to the port's actual maintainer.

it's a misunderstand interpretation. I thaugh this flag were to send message to maintainer...

You don't need to Cc yourself; you will automatically be Cc'd because you are the reporter.

Ok

The ffmpeg port tells you about the consequences of selecting the nonfree variant to ensure that you're aware of the licensing implications of your choice.

Ok, it's not really clear.

I agree there is a problem here: orfeotoolbox declares a build conflict with openjpeg15, yet declares a dependency on opencv which depends on ffmpeg which depends on openjpeg15; this cannot work.

Thanks

comment:4 Changed 11 years ago by plm_macports@…

Cc: plm_macports@… added

Cc Me!

comment:5 Changed 11 years ago by plm_macports@…

Cc: plm_macports@… removed

Cc Me!

comment:6 Changed 11 years ago by stromnov (Andrey Stromnov)

Note: it's conflict at build time, not runtime.

orfeotoolbox tries to compile against openjpeg, but mistakenly takes include files from openjpeg15.

Workaround:

  • install opencv and ffmpeg
  • deactivate openjpeg15
  • install orfeotoolbox
  • reactivate openjpeg15

comment:7 in reply to:  6 Changed 11 years ago by plm_macports@…

Replying to stromnov@…:

Note: it's conflict at build time, not runtime.

orfeotoolbox tries to compile against openjpeg, but mistakenly takes include files from openjpeg15.

effectively

Workaround:

  • install opencv and ffmpeg
  • deactivate openjpeg15
  • install orfeotoolbox
  • réactivante openjpeg15

It doesn't work. I can't deactivate openjpeg15 after I have installing opencv and ffmpeg because ffmpeg depend on it...

# port -v deactivate openjpeg15
--->  Deactivating openjpeg15 @1.5.0_1
--->  Unable to deactivate openjpeg15 @1.5.0_1, the following ports depend on it:
--->  	ffmpeg @2.2.1_0+gpl2+nonfree
Error: org.macports.deactivate for port openjpeg15 returned: Please uninstall the ports that depend on openjpeg15 first.
Warning: targets not executed for openjpeg15: org.macports.deactivate
Please see the log file for port openjpeg15 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_openjpeg15_1.5.0_1/openjpeg15/main.log
Warning: Failed to execute portfile from registry for openjpeg15 @1.5.0_1
--->  Deactivating openjpeg15 @1.5.0_1
--->  Unable to deactivate openjpeg15 @1.5.0_1, the following ports depend on it:
--->  	ffmpeg @2.2.1_0+gpl2+nonfree
Error: port deactivate failed: Please uninstall the ports that depend on openjpeg15 first.

comment:8 Changed 11 years ago by stromnov (Andrey Stromnov)

Forced deactivation:

sudo port -f deactivate openjpeg15

comment:9 Changed 8 years ago by mf2k (Frank Schima)

Cc: stromnov@… removed
Owner: changed from julien.malik@… to stromnov@…

Assigning to current maintainer. See #51575.

comment:10 Changed 14 months ago by nilason (Nicklas Larsson)

Resolution: fixed
Status: newclosed

In d5ca15d0e3220efedc80e7e35d9b72fac114b7f6/macports-ports (master):

orfeotoolbox: update to version 8.2.1 and general overhaul

The qt4 variant is not upgraded and removed. The project aims to
remove qt as gui for version 9, replaced by QGIS.

Closes #39671
Closes #43410
Closes #45918
Closes #47523
Closes #51435
Closes #62754

Note: See TracTickets for help on using tickets.