Am 14.09.2011 um 10:44 schrieb Martin Costabel:
> other Fink packages. This is, after all, its only raison d'être.
>
>> The packages produce some problems when I remove them *after* I had
>> installed and removed the marginally updated latex2html 2002-2-1_4 package.
>> When I install, it performs
>
> I suppose you are talking about installing/removing latex2html here?
>
>> mktexlsr: Updating /sw/etc/texmf.local/ls-R...
>> mktexlsr: Done.
>>
>> When I remove, it performs:
>>
>> mktexlsr: /sw/etc/texmf.local not a directory.
>> mktexlsr: Done.
Yes, it's latex2html, whose INFO file contains
PostInstScript: <<
if [ -f %p/bin/mktexlsr ]; then %p/bin/mktexlsr %p/etc/texmf.local; fi
<<
PostRmScript: <<
if [ -f %p/bin/mktexlsr ]; then %p/bin/mktexlsr %p/etc/texmf.local; fi
<<
>
>> When I then remove the system-texlive-20XY package, it complains that it
>> can't remove /sw/etc/texmf.local, because it's a directory, now with this
>> contents:
>>
>> total 24
>> -rw-r--r-- 1 root admin 80 14 Sep 01:18 ls-R
>> lrwxr-xr-x 1 root admin 30 14 Sep 01:19 texmf-local ->
>> /usr/local/texlive/texmf-local
>> lrwxr-xr-x 1 root admin 19 14 Sep 01:19 texmf.local ->
>> /sw/etc/texmf.local
>
> I don't quite understand what is the situation where you see this.
I made a mistake here last night and mixed things. From /sw/share. The
following files exist right now in /sw while no TeX related package is
installed:
find /sw -name "texmf*" -exec gls -l {} \;
insgesamt 12
-rw-r--r-- 1 root admin 80 14. Sep 01:18 ls-R
lrwxr-xr-x 1 root admin 30 14. Sep 01:19 texmf-local ->
/usr/local/texlive/texmf-local
lrwxr-xr-x 1 root admin 19 14. Sep 01:19 texmf.local ->
/sw/etc/texmf.local
lrwxr-xr-x 1 root admin 30 14. Sep 01:19
/sw/etc/texmf.local/texmf-local -> /usr/local/texlive/texmf-local
lrwxr-xr-x 1 root admin 19 14. Sep 01:19
/sw/etc/texmf.local/texmf.local -> /sw/etc/texmf.local
lrwxr-xr-x 1 root admin 29 14. Sep 01:35 /sw/share/texmf ->
/usr/local/texlive/2010/texmf
lrwxr-xr-x 1 root admin 19 13. Sep 20:50 /sw/share/texmf.local ->
/sw/etc/texmf.local
lrwxr-xr-x 1 root admin 45 13. Sep 20:50 /sw/texmf.cnf ->
/usr/local/texlive/2010/texmf/web2c/texmf.cnf
+
lrwxr-xr-x 1 root admin 53 13 Sep 20:50 /sw/bin/mktexlsr ->
/usr/local/texlive/2010/bin/universal-darwin/mktexlsr
> Just before, you said the whole /sw/etc/texmf.local was removed, and now you
> find it non-empty. Did you reinstall system-texlive in the meantime?
Yes. I did remove the older one (for example 2009) and install the newer one
(2010). Afterwards I rebuilt latex2html and dblatex to see whether the
system-texlive package works and installed them, ran latex2html on a LaTeX
file. Then I removed latex2html and dblatex and finally did the same with
system-texlive-20XY. This was my test loop.
>
> But this shows another problem with the package: It creates the symlinks
> between directories with a simple "ln -s". This will fail if the target
> already exists, because then the symlink will be created *inside* the target
> directory.
Indeed! I have in /usr/local/texlive/texmf-local
lrwxr-xr-x 1 root wheel 19 13 Sep 19:11 texmf.local ->
/sw/etc/texmf.local
and the ls-R file there is quite up-to-date (2011-09-13 20:50).
/sw/etc/texmf.local is a directory.
>
> The package needs to check whether any of /sw/etc/texmf.local and
> /sw/share/texmf.local already exists, either as a symlink or a directory, and
> then take appropriate actions.
>
> It also needs to make directory symlinks using "ln -ns", so that the symlink
> will not end up inside the target directory, but throws an error if the
> target directory exists.
>
>> (Another sym-link has been created in /sw/share:
>>
>> lrwxr-xr-x 1 root admin 19 13 Sep 20:50 texmf.local ->
>> /sw/etc/texmf.local)
>>
>> Another complaint is that a sym-link /sw/texmf.cnf can't be created.
>
> This something I don't understand. The package should not create
> /sw/texmf.cnf. This is illegal in Fink's file system, and it is useless for
> TeX, which will never look at such a file.
> It should perhaps become /sw/share/texmf/web2c/texmf.cnf?
/sw/share/texmf is a sym-link to /usr/local/texlive/2010/texmf,
/sw/share/texmf.local is a sym-link to /sw/etc/texmf.local.
>
>> The situation is this that automatic removal of the already installed
>> system-texlive-20XY when installing another system-texlive-20XY package
>> fails. The message is:
>>
>> dpkg: regarding .../system-texlive-2011_2011-1_darwin-i386.deb
>> containing system-texlive-2011:
>> system-texlive-2011 conflicts with texlive
>> system-texlive-2010 provides texlive and is broken due to postinst
>> failure.
>>
>> but no "texlive" package is listed as installed. (I hope I can clear the
>> situation I'm in.)
>
> The "texlive" package comes from the "Provides:" field in the system-texlive
> package. This and the "conflicts" is normal.
Then it's OK to write this?
Depends: tetex-base | texlive, ghostscript | ghostscript-nox, netpbm-bin
I'll try to clean up my Fink system later, after learning how to use 'dpkg -S'
better: instead of using a path name, a file name seems to be appropriate… (but
it fails to pick up the proper packages, probably because of the use of
PostInstScript)
--
Greetings
Pete
Bigamy is having one wife too many. Monogamy is the same.
– Oscar Wilde
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users