Page 1 of 1
Multiarch
Posted: 2011-10-27T04:01:12-07:00
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
Re: Multiarch
Posted: 2011-10-27T05:48:31-07:00
by magick
We'll need a few days to implement this properly. Stand by...
Re: Multiarch
Posted: 2011-10-28T02:22:55-07:00
by broucaries
Thanks
Could you do before the next minor revision ?
Bastien
Re: Multiarch
Posted: 2011-10-28T05:47:54-07:00
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?
Re: Multiarch
Posted: 2011-10-28T07:32:55-07:00
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
Re: Multiarch
Posted: 2011-10-28T09:14:41-07:00
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?
Re: Multiarch
Posted: 2011-10-28T10:41:08-07:00
by broucaries
ok with --configdir-arch
yes this option affect installation.We store the two arch files in specific place.
Bastien
Re: Multiarch
Posted: 2011-10-28T17:38:17-07:00
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.
Re: Multiarch
Posted: 2011-11-01T06:39:33-07:00
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
Re: Multiarch
Posted: 2011-11-02T18:03:01-07:00
by magick
Use --sharearch-dir. We might need another iteration but give it a try and let us know what adjustments are needed.