[csw-maintainers] inoperant reinplace

Dagobert Michelsen dam at opencsw.org
Sat Jan 12 13:44:10 CET 2013


Hi Peter,

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.

2. Does the replacement work? It is done with a simple perl-replacement here:
     http://sourceforge.net/apps/trac/gar/browser/csw/mgar/gar/v2/gar.mk#L718
   Please try perl -p -i.bak -e 's(/usr/local)(/opt/csw)g' <thefile> if it works manually.

From this outcome we see how to proceed further.


Best regards

  -- Dago


More information about the maintainers mailing list