[csw-maintainers] inoperant reinplace

Peter FELECAN pfelecan at opencsw.org
Sun Jan 13 13:54:39 CET 2013


Dagobert Michelsen <dam at opencsw.org> writes:

> Am 12.01.2013 um 16:31 schrieb Peter FELECAN:
>> Dagobert Michelsen <dam at opencsw.org> writes:
>>> Am 11.01.2013 um 09:02 schrieb pfelecan:
>>>> Still struggling to finish the packaging of TeXLive...
>>>> 
>>>> Here is what I do:
>>>> 
>>>> cd ~/opencsw/texlive/trunk
>>>> find work -type f -name 'post-install-reinplace*' -print -exec rm {} \;
>>>> nohup mgar platforms-remerge platforms-repackage < /dev/null > ~/logs/texlive 2>&1 &
>>>> 
>>>> I got the following errors reported by checkpkg, with the afferent proposal of overriding:
>>>> 
>>>> CHECKPKG_OVERRIDES_CSWtexlive-base += file-with-bad-content|/usr/local|root/opt/csw/share/texmf/scripts/simpdftex/simpdftex
>>>> CHECKPKG_OVERRIDES_CSWtexlive-latex-extra += file-with-bad-content|/usr/local|root/opt/csw/share/texmf-dist/scripts/pax/pdfannotextractor.pl
>>>> CHECKPKG_OVERRIDES_CSWtexlive-publishers-doc += file-with-bad-content|/usr/local|root/opt/csw/share/texmf-dist/doc/latex/confproc/buildpapers.sh
>>>> CHECKPKG_OVERRIDES_CSWtexlive-publishers-doc += file-with-bad-content|/usr/local|root/opt/csw/share/texmf-dist/doc/latex/confproc/example/buildpapers.sh
>>>> 
>>>> However, in the recipe I have the following stanzas:
>>>> 
>>>> REINPLACE_WHEN_USRLOCAL	=	postinstall
>>>> ...
>>>> REINPLACE_USRLOCAL		+=	/opt/csw/share/texmf/scripts/simpdftex/simpdftex
>>>> REINPLACE_USRLOCAL		+=	/opt/csw/share/texmf-dist/scripts/pax/pdfannotextractor.pl
>>>> REINPLACE_USRLOCAL		+=	/opt/csw/share/texmf-dist/doc/latex/confproc/buildpapers.sh
>>>> REINPLACE_USRLOCAL		+=	/opt/csw/share/texmf-dist/doc/latex/confproc/example/buildpapers.sh
>>>> ...
>>>> 
>>>> I don't understand why, on this specific files, the "reinplace" mechanism doesn't work.
>>> 
>>> There are two things to check:
>>> 
>>> 1. Is the reinplacement called on these files? Please take a look at your build log if this is the case
>>>   or if there are errors. The command is always printed.
>> 
>> I don't know. Which is the stanza to look for in the log file?
>> 
>> Note that the log file is available as /home/pfelecan/logs/texlive
>
>>From what I see there the reinplace is not invoked at all which does not match with your
> report. I notice however that you have placed the REINPLACEMENT assignments below the
> include gar.mk which is generally not recommended as some rules require variables to be
> defined when the Makefile code is read. I suggest moving them before the include.
> That means all definitions (with the exception of := overrides) before the include,
> all rules after the include.
>
> I have just reproduced the behaviour in a minimal example: postinstall-reinplacemenent
> does not work at all when the definitions are below the include.
>
> Some of that is written down at the coding style.
>   https://sourceforge.net/apps/trac/gar/wiki/GarCodingStyle
>
> I have also added a note at
>   https://sourceforge.net/apps/trac/gar/wiki/Reinplace

I will modify, retry and keep informed. Thank you.
-- 
Peter


More information about the maintainers mailing list