[fixed] Unpackagable imagemagick for debian: LFS violation

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

[fixed] Unpackagable imagemagick for debian: LFS violation

Post by broucaries »

Hi,

I cannot package imagemagick for debian due to recent change.

You move configuration file to /prefix/etc/imagemagick-version and you allow only modification from configure of /etc/ part. Configuration file per version is not really nice for our user. Could we custumize the whole path from configure ?

Moreover you move some livraries configuration file to /var.

First I disagree with your slip.
While configure.xml, lang.xml (english, french), locale.xml are really compile time stuff, delegate.xml , type*.xml and policy belong to /etc/ and thus is a LFS violation

Morevover we could not customize the full path where to store this libraries generated file.

We under debian firmly believe they belong under /usr/lib subdirectory

Regards

Bastien
Last edited by broucaries on 2011-04-21T05:37:47-07:00, edited 1 time in total.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Unpackagable imagemagick for debian: LFS violation

Post by magick »

Putting the configuration files in /var was a temporary bug. The latest release, ImageMagick 6.6.8-10 puts the configure files in etc/ImageMagick-version and usr/share/ImageMagick-version. The changes were brought about from a request from another Linux package maintainer. Would it be sufficient to meet Debian goals if we removed the /etc/ImageMagick-version and used /etc/ImageMagick instead? Note in 6.6.8-10, delegate.xml, type*xml are in etc/ImageMagick-version.

We'll remove the version suffix in ImageMagick 6.6.9 and place the configure files in /etc/ImageMagick. If you have any other requirements let us know.
broucaries
Posts: 467
Joined: 2008-12-21T11:51:10-07:00

Re: Unpackagable imagemagick for debian: LFS violation

Post by broucaries »

I agree with you with the /etc/ImageMagick part

but configure.xml, [english-french].xml, locale.xml are the only stuff compile time stuff and thus belong to /prefix/lib/imagemagick-version

Delegate is a **configuration** file (also type*.xml and policy.xml).

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

Re: Unpackagable imagemagick for debian: LFS violation

Post by magick »

Agreed. Look for a patch in ImageMagick 6.6.9-0 Beta by sometime tomorrow.
broucaries
Posts: 467
Joined: 2008-12-21T11:51:10-07:00

Re: Unpackagable imagemagick for debian: LFS violation

Post by broucaries »

It is not perfect ....

/usr/share/ImageMagick-6.6.9$ ls
ChangeLog coder.xml configure.xml delegates.xml english.xml francais.xml LICENSE locale.xml magic.xml mime.xml NEWS.txt sRGB.icm thresholds.xml

coder.xml delegates.xml magic.xml mime.xml NEWS.txt sRGB.icm thresholds.xml are configuration file....

Morevoer

Changelog Licence and News.text need to go to /usr/share/doc/Imagemagick

Thanks

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

Re: Unpackagable imagemagick for debian: LFS violation

Post by magick »

Ok, Changelog Licence and News.text goes to /usr/share/doc/Imagemagick.

Is there any reason coder.xml configure.xml delegates.xml english.xml francais.xml locale.xml magic.xml mime.xml sRGB.icm thresholds.xml can't go to /usr/share/ImageMagick/config? If not where should these config files go. You suggested they do not belong in /etc/ImageMagick.
broucaries
Posts: 467
Joined: 2008-12-21T11:51:10-07:00

Re: Unpackagable imagemagick for debian: LFS violation

Post by broucaries »

I said this:
>usr/share/ImageMagick-6.6.9$ ls
>ChangeLog coder.xml configure.xml delegates.xml english.xml francais.xml LICENSE locale.xml magic.xml mime.xml NEWS.txt sRGB.icm thresholds.xml
It is a copy of the ls output not config/not config file

>coder.xml delegates.xml magic.xml mime.xml NEWS.txt sRGB.icm thresholds.xml are configuration file....
Are the only config file and we customize it under debian

"english.xml francais.xml locale.xml " belong to /usr/lib/ because they are not cross version

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

Re: Unpackagable imagemagick for debian: LFS violation

Post by magick »

Here is the current configuration. We use two locations for the configuration files: etc/ImageMagick and share/ImageMagick-version/config. We could add a third, usr/lib/ImageMagick-version, but we would prefer not too.

  • -> ls etc/ImageMagick/
    colors.xml policy.xml type-ghostscript.xml type.xml
    log.xml type-dejavu.xml type-windows.xml

    -> ls share/ImageMagick-6.6.9/config
    coder.xml delegates.xml francais.xml magic.xml sRGB.icm
    configure.xml english.xml locale.xml mime.xml thresholds.xml
Before we lock this down, any last minute movements of configuration files?
broucaries
Posts: 467
Joined: 2008-12-21T11:51:10-07:00

Re: Unpackagable imagemagick for debian: LFS violation

Post by broucaries »

you said:
-> ls etc/ImageMagick/
colors.xml policy.xml type-ghostscript.xml type.xml
log.xml type-dejavu.xml type-windows.xml

-> ls share/ImageMagick-6.6.9/config
coder.xml delegates.xml francais.xml magic.xml sRGB.icm
configure.xml english.xml locale.xml mime.xml thresholds.xm
We firmly believe that:
-> ls etc/ImageMagick/
colors.xml policy.xml type-ghostscript.xml type.xml
log.xml type-dejavu.xml type-windows.xml
coder.xml delegates.xml
magic.xml sRGB.icm
mime.xml thresholds.xml

-> ls share/ImageMagick-6.6.9/config
francais.xml
configure.xml english.xml locale.xml

Is better

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

Re: Unpackagable imagemagick for debian: LFS violation

Post by magick »

We have applied a patch to ImageMagick 6.6.9-2 Beta (available by sometime tomorrow) to distribute the files as you recommend. Thanks.
Post Reply