Multiarch

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
broucaries
Posts: 467
Joined: 2008-12-21T11:51:10-07:00

Multiarch

Post by broucaries »

Hi,

I am trying to get imagemagick converted to multiarch and I have the following problem:
- please introduce a --includedir-arch=DIR that default to --include-dir for:
magick-config.h and .h file that could change depending of configure time option
- please introduice a --libconfig-dir=DIR that default to libdir/Imagemagick-version for storing configure.xml that is dependant of configured lib thus arch dependant

Bastien
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Multiarch

Post by magick »

We'll need a few days to implement this properly. Stand by...
broucaries
Posts: 467
Joined: 2008-12-21T11:51:10-07:00

Re: Multiarch

Post by broucaries »

Thanks

Could you do before the next minor revision ?

Bastien
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Multiarch

Post by magick »

Try the following:
  • cd ImageMagick-6.7.3-3
    ./configure --includedir=include-path --datadir=data-path
    make install
The header files end up in the include-path folder and the configure.xml, et. al. end up in the data-path folder. Does that satisfy your requirements?
broucaries
Posts: 467
Joined: 2008-12-21T11:51:10-07:00

Re: Multiarch

Post by broucaries »

No we already do this a debian.

multiarch is installing many arch in the same machine. We should extract part that change when switching compile or arch flags and part that are architectural neutral.

Configure.xml and magick-config.h change if I change the ABI, thus should use their own path.

For magick-config.h I may manually patch, but for configure.xml I need support from your side. And I do not want to duplicate locale.xml for each arch like in your solution.

bastien
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Multiarch

Post by magick »

With --includedir-arch and --libconfig-dir, we add the value as a define to magick-config.h. We also check the libconfig-dir path at execution time. Do these options also affect the installation? Meaning if --includedir-arch is defined, the header files are stored in that path rather than --includedir path during 'make install'?

Ok to use --configdir-arch rather than --libconfig-dir?
broucaries
Posts: 467
Joined: 2008-12-21T11:51:10-07:00

Re: Multiarch

Post by broucaries »

ok with --configdir-arch

yes this option affect installation.We store the two arch files in specific place.

Bastien
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Multiarch

Post by magick »

Grab the latest release and use --includearch-dir and --sharearch-dir. Look for INCLUDE_PATH and SHARE_PATH in magick-config.h. Let us know if / how it does not meet your requirements.
broucaries
Posts: 467
Joined: 2008-12-21T11:51:10-07:00

Re: Multiarch

Post by broucaries »

No it does not work as expected for the share part:
What I want:
- english.xml francais.xml locale.xml should go to /usr/share like previoulsy
- configure.xml should go to sharedir-arch

What I get:
- english.xml francais.xml locale.xml configure.xml go to sharedir-arch

Thanks

Bastien
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Multiarch

Post by magick »

Use --sharearch-dir. We might need another iteration but give it a try and let us know what adjustments are needed.
Post Reply