Re: [Anjuta-devel] Re: [Anjuta-list] Of RPMs, packaging and documentation



On Tue, 2003-03-25 at 10:16, Carl B. Constantine wrote:
> 
> One suggestion I would have is that anjuta shouldn't try to register doc
> packages that don't exist. I installed anjuta-docs-en-1.0.2-1.i386.rpm
> and anjuta-1.0.2-1.i386.rpm. After, I get the following errors:
> 
> # rpm -Uvh anjuta-*
> Preparing...                ########################################### [100%]
>    1:anjuta-docs-en         ########################################### [ 50%]
>    2:anjuta                 ########################################### [100%]
> OMF file [/usr/share/omf/anjuta/anjuta-faqs-ja_JP.eucJP.omf] does not validate
> against ScrollKeeper-OMF DTD: /usr/share/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd
> Unable to register /usr/share/omf/anjuta/anjuta-faqs-ja_JP.eucJP.omf
> OMF file [/usr/share/omf/anjuta/anjuta-manual-ja_JP.eucJP.omf] does not validate against ScrollKeeper-OMF DTD: /usr/share/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd
> Unable to register /usr/share/omf/anjuta/anjuta-manual-ja_JP.eucJP.omf
> 
> Well, that makes sense as I didn't install the -ja doc package.
> Shouldn't it be the doc packages that register with scorllkeeper? Then
> this wouldn't happen. You'd only get what you've installed. 
> 
The problem here that the scrollkeeper update is called in the %post and
%postun section of the rpm spec file. Incidentally, those sections are
common for all the sub-packages. That's why they are called for all the
sub-packages during installation and un-installation.

Using separate rpm spec files for each sub-package is definitely not an
option, as we would like to have it as single buildable package also. I
am not very good with rpm spec descriptions. Someone who knows more
about rpm spec file can make sure the %post and %postun sections are
only called for the respective docs sub-packages.

CVS head (1.2.x) does not have this problem as it does not build any
docs package and builds only one package.

-- 
Regards,
-Naba





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