From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: Re: More robust substitute* Date: Sat, 2 Feb 2013 18:22:02 +0100 Message-ID: <201302021822.02436.andreas@enge.fr> References: <201302021714.13440.andreas@enge.fr> <878v767kho.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="Boundary-01=_6sUDR3EuNzp9ajX" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51787) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1gnA-0004Ar-NL for bug-guix@gnu.org; Sat, 02 Feb 2013 12:22:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U1gn7-0007In-H3 for bug-guix@gnu.org; Sat, 02 Feb 2013 12:22:16 -0500 In-Reply-To: <878v767kho.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Ludovic =?utf-8?q?Court=C3=A8s?= Cc: bug-guix@gnu.org --Boundary-01=_6sUDR3EuNzp9ajX Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Am Samstag, 2. Februar 2013 schrieb Ludovic Court=C3=A8s: > Andreas Enge skribis: > > in texlive, there are lots of scripts to be installed in share; thus, > > the patch-shebang phase does not catch them. > Do you know why it doesn=E2=80=99t catch them? The =E2=80=98patch-source= =2Dshebangs=E2=80=99 > phase patches all the files found under =E2=80=9C.=E2=80=9D, recursively. I am not speaking about patch-source-shebangs, but patch-shebangs. Texlive= =20 consists of three source packages. The first one contains the source for=20 the binaries, the other two contain files to be installed under "share". I= =20 unpack these after the installation procedure and copy them to "share". But if patch-source-shebangs works recursively, I should maybe unpack=20 everything first and let it do its magic. I will give it a try. In any case, I have a working texlive! It contains over 100000 files (that= =20 are symlinked from the user profile...) and takes over 3GB, but it works! Actually, I think one does not need to symlink the files from the user=20 profile; tex has its own way of finding files via the binary "kpsewhich"=20 (linked from the user profile), which points directly to the nix store: $ kpsewhich article.sty /nix/store/2cc4xyivn5f52gywl5mnz6fi90bj24xh-texlive-2012/share/texmf- dist/tex/latex/base/article.sty So maybe by splitting into two or three packages, one could hide the data=20 in the nix store. I will think about it. Andreas --Boundary-01=_6sUDR3EuNzp9ajX Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

Am Samstag,= 2. Februar 2013 schrieb Ludovic Court=C3=A8s:

> Andrea= s Enge <andreas@enge.fr> skribis:

> > i= n texlive, there are lots of scripts to be installed in share; thus,

> > t= he patch-shebang phase does not catch them.

> Do you= know why it doesn=E2=80=99t catch them? The =E2=80=98patch-source-shebang= s=E2=80=99

> phase = patches all the files found under =E2=80=9C.=E2=80=9D, recursively.

&nb= sp;

I am not sp= eaking about patch-source-shebangs, but patch-shebangs. Texlive consists of= three source packages. The first one contains the source for the binaries,= the other two contain files to be installed under "share". I unp= ack these after the installation procedure and copy them to "share&quo= t;.

&nb= sp;

But if patc= h-source-shebangs works recursively, I should maybe unpack everything first= and let it do its magic. I will give it a try.

&nb= sp;

In any case= , I have a working texlive! It contains over 100000 files (that are symlink= ed from the user profile...) and takes over 3GB, but it works!

&nb= sp;

Actually, I= think one does not need to symlink the files from the user profile; tex ha= s its own way of finding files via the binary "kpsewhich" (linked= from the user profile), which points directly to the nix store:

$ kpsewhich= article.sty

/nix/store/= 2cc4xyivn5f52gywl5mnz6fi90bj24xh-texlive-2012/share/texmf-dist/tex/latex/ba= se/article.sty

&nb= sp;

So maybe by= splitting into two or three packages, one could hide the data in the nix s= tore. I will think about it.

&nb= sp;

Andreas

&nb= sp;

--Boundary-01=_6sUDR3EuNzp9ajX--