On Tue, Mar 01, 2011 at 05:34:07PM +0100, Jean-Noël Avila wrote:
> Le mardi 1 mars 2011 12:49:40 Michael Olbrich, vous avez écrit :
> > 
> > [...]
> > 
> > With the current ptxdist installing control files is already possible. Just
> > add rules/<pkg>.preinst etc. Where '<pkg>' is the package name used in
> > '$(call install_init, <pkg>)'.
> > 
> We did not like this approach as it freezes the control files whatever the 
> configuration.
> We have multiple configurations, given the same source tree, and with our 
> approach, we can select by script the control files to be included.

hmmm, how do you choose then?

> > The handling of install_* macros has changed alot. This won't work anymore.
> 
> 
> > Hmmm, this means two install_* calls for each config file. I'd make
> > install_conffile a install_alternative + flagging.
> 
> True, we did not want to modify or copy the existing codebase. 

That I can understand. It should be much easier now. Have a look at
scripts/lib/ptxd_make_xpkg_pkg.sh. ptxd_install_alternative is just a
wrapper.

> > What's the exact handling of config files? What happen on update
> > (with/without modified config files)? How are modifications detected?
> 
> Looking at the source code of ipkg gave us some headaches... It should really 
> be replaced by opkg (is it better anyway).

I agree, but it doesn't have a high priotity for us right now. Patches are
very welcome though. :-)

> The conffiles file just lists the files to be considered as conf. No 
> modification of the conf files is tracked for a given version of a package. 
> It 
> is only at the installation of the new package that the conf files are 
> compared between the new file to install and the already existing one. It 
> seems a md5sum is computed on files.
> 
> The behavior on updating a modified conf file is given by two ways :
>  * interactively, by the user
>  * forced by option --force-defaults to force retaining previous file.

Hmmm, no way to force the new version?


Regards,
Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
[email protected]

Reply via email to