[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

multiarch and maintainer scripts


what can be done if the maintainer scripts of a package must behave
differently when unpacking the i386 deb on i386 or the i386 deb on

For example 32bit fglrx-glx needs to divert /usr/lib/libGL.so.1.2 on
i386 but /usr/lib32/libGL.so.1.2 on amd64.

Other examples would be packages that scan for plugins in their
postinst to generate a list of them. Pango and gtk used to do
that. Even if they are changed the multiarch library dirs they should
probably continue to scan the old plugin dirs for backward

So would it make sense to allow architecture specific maintainer
scripts? Back to the fglrx-glx example the control.tar.gz could

preinst-amd64 - use when configuring on amd64
preinst       - use otherwise

I choose '-' so it doesn't collide with debhelpers preinst.amd64
source files.


Reply to: