[arch-general] Installing texlive docs
Hi List, based on this page (https://bbs.archlinux.org/viewtopic.php?pid=1253365) I tried to build a texlive-most-doc package: #+NAME: PKGBUILD #+BEGIN_SRC shell pkgname=texlive-most-doc pkgver=$(date +%Y%m%d) pkgrel=1 pkgdesc="Most TeXLive documentation" url="http://tug.org/texlive/"; arch=('any') license=('unknown') optdepends=('texlive-bin: The texdoc program and some more documentation') makedepends=('wget') install=${pkgname}.install options=('!strip' '!purge') build() { wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf-dist/doc wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/asymptote wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/dvipng/dvipng.pdf wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/dvips/dvips.pdf wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/man wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/info wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/tetex wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/texlive wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/texworks wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/web2c/web2c.pdf wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/ttf2pk/ttf2tfm.txt wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/ttf2pk/ttf2pk.txt } package() { cp -rl "$srcdir"/* "$pkgdir" } #+END_SRC #+NAME: texlive-most-doc.install #+BEGIN_SRC shell post_install() { texhash } post_remove() { texhash } post_upgrade() { texhash } #+END_SRC and ended up with this directory structure: ,---- | /home/tj/abs/texlive-most-doc: | insgesamt 24 | drwxr-xr-x 4 tj tj 4096 31. Aug 03:20 . | drwxr-xr-x 9 tj tj 4096 31. Aug 03:07 .. | d--------- 2 tj tj 4096 31. Aug 03:20 pkg | -rw-r--r-- 1 tj tj 1835 31. Aug 03:15 PKGBUILD | drwxr-xr-x 3 tj tj 4096 31. Aug 03:20 src | -rw-r--r-- 1 tj tj 88 31. Aug 03:10 texlive-most-doc.install `---- and this error message (translated from German): ,---- | END --2014-08-31 06:55:01-- | TIME: 3h 34m 12s | DOWNLOADED: 31502 files, 1,5G in 50m 24s (516 KB/s) | Directory »»texlive/Contents/live/texmf/doc«« does not exist | | ==> ERROR: Error in build(). | Aborting ... `---- Now I have all the texlive doc files in /abs/texlive-most-doc/src, but not a package I can install via pacman -U, so I'm not quite sure how to proceed. Any hints would be welcome. -- cheers, Thorsten
On 31.08.2014 12:50, Thorsten Jolitz wrote:
Hi List,
based on this page (https://bbs.archlinux.org/viewtopic.php?pid=1253365) I tried to build a texlive-most-doc package:
#+NAME: PKGBUILD #+BEGIN_SRC shell pkgname=texlive-most-doc pkgver=$(date +%Y%m%d) pkgrel=1 pkgdesc="Most TeXLive documentation" url="http://tug.org/texlive/"; arch=('any') license=('unknown') optdepends=('texlive-bin: The texdoc program and some more documentation') makedepends=('wget') install=${pkgname}.install options=('!strip' '!purge')
build() { wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf-dist/doc wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/asymptote wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/dvipng/dvipng.pdf wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/dvips/dvips.pdf wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/man wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/info wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/tetex wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/texlive wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/texworks wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/web2c/web2c.pdf wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/ttf2pk/ttf2tfm.txt wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/ttf2pk/ttf2pk.txt }
package() { cp -rl "$srcdir"/* "$pkgdir" } #+END_SRC
#+NAME: texlive-most-doc.install #+BEGIN_SRC shell post_install() { texhash }
post_remove() { texhash }
post_upgrade() { texhash } #+END_SRC
and ended up with this directory structure:
,---- | /home/tj/abs/texlive-most-doc: | insgesamt 24 | drwxr-xr-x 4 tj tj 4096 31. Aug 03:20 . | drwxr-xr-x 9 tj tj 4096 31. Aug 03:07 .. | d--------- 2 tj tj 4096 31. Aug 03:20 pkg | -rw-r--r-- 1 tj tj 1835 31. Aug 03:15 PKGBUILD | drwxr-xr-x 3 tj tj 4096 31. Aug 03:20 src | -rw-r--r-- 1 tj tj 88 31. Aug 03:10 texlive-most-doc.install `----
and this error message (translated from German):
,---- | END --2014-08-31 06:55:01-- | TIME: 3h 34m 12s | DOWNLOADED: 31502 files, 1,5G in 50m 24s (516 KB/s) | Directory »»texlive/Contents/live/texmf/doc«« does not exist | | ==> ERROR: Error in build(). | Aborting ... `----
Now I have all the texlive doc files in /abs/texlive-most-doc/src, but not a package I can install via pacman -U, so I'm not quite sure how to proceed.
Any hints would be welcome.
As the error message says, the directory ftp://tug.org/texlive/Contents/live/texmf/doc does not exist. Your URLs are invalid.
AK <aakempf@gmail.com> writes:
On 31.08.2014 12:50, Thorsten Jolitz wrote:
Hi List,
based on this page (https://bbs.archlinux.org/viewtopic.php?pid=1253365) I tried to build a texlive-most-doc package:
#+NAME: PKGBUILD #+BEGIN_SRC shell pkgname=texlive-most-doc pkgver=$(date +%Y%m%d) pkgrel=1 pkgdesc="Most TeXLive documentation" url="http://tug.org/texlive/"; arch=('any') license=('unknown') optdepends=('texlive-bin: The texdoc program and some more documentation') makedepends=('wget') install=${pkgname}.install options=('!strip' '!purge')
build() { wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf-dist/doc wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/asymptote wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/dvipng/dvipng.pdf wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/dvips/dvips.pdf wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/man wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/info wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/tetex wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/texlive wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/texworks wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/web2c/web2c.pdf wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/ttf2pk/ttf2tfm.txt wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/ttf2pk/ttf2pk.txt }
package() { cp -rl "$srcdir"/* "$pkgdir" } #+END_SRC
[...]
As the error message says, the directory
ftp://tug.org/texlive/Contents/live/texmf/doc
does not exist. Your URLs are invalid.
Problem is that downloads worked, I have all the docs on my hard-drive now: ,---- | /home/tj/abs/texlive-most-doc/src/usr/share/texmf-dist/doc: | insgesamt 256 | drwxr-xr-x 55 tj tj 4096 31. Aug 06:54 . | drwxr-xr-x 3 tj tj 4096 31. Aug 03:20 .. | drwxr-xr-x 3 tj tj 4096 31. Aug 03:20 aleph | drwxr-xr-x 3 tj tj 4096 31. Aug 03:20 amstex | drwxr-xr-x 3 tj tj 4096 31. Aug 03:21 asymptote | drwxr-xr-x 2 tj tj 4096 31. Aug 03:22 bg5conv | drwxr-xr-x 25 tj tj 4096 31. Aug 03:23 bibtex | drwxr-xr-x 2 tj tj 4096 31. Aug 03:23 bibtex8 | drwxr-xr-x 2 tj tj 4096 31. Aug 03:23 bibtexu | drwxr-xr-x 2 tj tj 4096 31. Aug 03:23 [...] `---- but building the package failed. -- cheers, Thorsten
On 31.08.2014 19:35, Thorsten Jolitz wrote:
AK <aakempf@gmail.com> writes:
On 31.08.2014 12:50, Thorsten Jolitz wrote:
Hi List,
based on this page (https://bbs.archlinux.org/viewtopic.php?pid=1253365) I tried to build a texlive-most-doc package:
#+NAME: PKGBUILD #+BEGIN_SRC shell pkgname=texlive-most-doc pkgver=$(date +%Y%m%d) pkgrel=1 pkgdesc="Most TeXLive documentation" url="http://tug.org/texlive/"; arch=('any') license=('unknown') optdepends=('texlive-bin: The texdoc program and some more documentation') makedepends=('wget') install=${pkgname}.install options=('!strip' '!purge')
build() { wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf-dist/doc wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/asymptote wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/dvipng/dvipng.pdf wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/dvips/dvips.pdf wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/man wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/info wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/tetex wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/texlive wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/texworks wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/web2c/web2c.pdf wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/ttf2pk/ttf2tfm.txt wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/ttf2pk/ttf2pk.txt }
package() { cp -rl "$srcdir"/* "$pkgdir" } #+END_SRC [...]
As the error message says, the directory
ftp://tug.org/texlive/Contents/live/texmf/doc
does not exist. Your URLs are invalid. Problem is that downloads worked, I have all the docs on my hard-drive now:
,---- | /home/tj/abs/texlive-most-doc/src/usr/share/texmf-dist/doc: | insgesamt 256 | drwxr-xr-x 55 tj tj 4096 31. Aug 06:54 . | drwxr-xr-x 3 tj tj 4096 31. Aug 03:20 .. | drwxr-xr-x 3 tj tj 4096 31. Aug 03:20 aleph | drwxr-xr-x 3 tj tj 4096 31. Aug 03:20 amstex | drwxr-xr-x 3 tj tj 4096 31. Aug 03:21 asymptote | drwxr-xr-x 2 tj tj 4096 31. Aug 03:22 bg5conv | drwxr-xr-x 25 tj tj 4096 31. Aug 03:23 bibtex | drwxr-xr-x 2 tj tj 4096 31. Aug 03:23 bibtex8 | drwxr-xr-x 2 tj tj 4096 31. Aug 03:23 bibtexu | drwxr-xr-x 2 tj tj 4096 31. Aug 03:23 [...] `----
but building the package failed.
Since the URLs are invalid, the build() function seems to fail at the second wget line and aborts the whole process so no package gets built. Fixing the build() function so that wget no longer fails should get you a working package.
AK <aakempf@gmail.com> writes:
Since the URLs are invalid, the build() function seems to fail at the second wget line and aborts the whole process so no package gets built. Fixing the build() function so that wget no longer fails should get you a working package.
I still wonder how 1.5GB were downloaded from invalid URLs, but since I have that files own disk now, I will try to tweak the build() function to make it work - thx for the hint. -- cheers, Thorsten
AK <aakempf@gmail.com> writes:
Since the URLs are invalid, the build() function seems to fail at the second wget line and aborts the whole process so no package gets built. Fixing the build() function so that wget no longer fails should get you a working package.
I still wonder how 1.5GB were downloaded from invalid URLs, but since I have that files own disk now, I will try to tweak the build() function to make it work - thx for the hint.
I'm curious, why aren't the files downloaded using sources in the pkgbuild metadata? --Stephen
Stephen Martin <hwkiller@gmail.com> writes:
AK <aakempf@gmail.com> writes:
Since the URLs are invalid, the build() function seems to fail at the second wget line and aborts the whole process so no package gets built. Fixing the build() function so that wget no longer fails should get you a working package.
I still wonder how 1.5GB were downloaded from invalid URLs, but since I have that files own disk now, I will try to tweak the build() function to make it work - thx for the hint.
I'm curious, why aren't the files downloaded using sources in the pkgbuild metadata?
I just copied this from the web (see link in my first post), and comments stated that it works - but apparently things have changed since then (2013?) -- cheers, Thorsten
On 09/01/2014 01:23 AM, Thorsten Jolitz wrote:
AK <aakempf@gmail.com> writes:
Since the URLs are invalid, the build() function seems to fail at the second wget line and aborts the whole process so no package gets built. Fixing the build() function so that wget no longer fails should get you a working package. I still wonder how 1.5GB were downloaded from invalid URLs, but since I have that files own disk now, I will try to tweak the build() function to make it work - thx for the hint.
Well, the first URL was valid and wget -r turns on recursive mode. The first command therefore downloaded the "...live/texmf-dist/doc" directory and its subdirectories. Then the second wget line fails and the process is aborted.
On 09/01/2014 01:23 AM, Thorsten Jolitz wrote:
AK <aakempf@gmail.com> writes:
Since the URLs are invalid, the build() function seems to fail at the second wget line and aborts the whole process so no package gets built. Fixing the build() function so that wget no longer fails should get you a working package. I still wonder how 1.5GB were downloaded from invalid URLs, but since I have that files own disk now, I will try to tweak the build() function to make it work - thx for the hint.
I wonder, since the first line should have downloaded everything you wanted are the following lines needed at all?
AK <aakempf@gmail.com> writes:
On 09/01/2014 01:23 AM, Thorsten Jolitz wrote:
AK <aakempf@gmail.com> writes:
Since the URLs are invalid, the build() function seems to fail at the second wget line and aborts the whole process so no package gets built. Fixing the build() function so that wget no longer fails should get you a working package. I still wonder how 1.5GB were downloaded from invalid URLs, but since I have that files own disk now, I will try to tweak the build() function to make it work - thx for the hint.
I wonder, since the first line should have downloaded everything you wanted are the following lines needed at all?
Probably not, but as I said - this recipe is copied from the web, I don't know nothing about the dir structure of the texlive server ... it must have changed recently. -- cheers, Thorsten
In the second and the following wget lines, you are trying to download subdirectories of ftp://tug.org/texlive/Contents/live/texmf/ which doesn't exist. In the first link you are downloading subdirectories of ftp://tug.org/texlive/Contents/live/texmf-dist/ which does exist and the subdirectories you are trying to download in the second wget line and onwards do exist as subdirectories of texmf-dist. For example: ftp://tug.org/texlive/Contents/live/texmf-dist/doc/asymptote. But as was already pointed out, these get downloaded by the first wget already. I also looked through the manpage of wget to figure out what all these flags do, but I couldn't find any information on -nv. What does it do? 2014-09-01 20:23 GMT+02:00 Thorsten Jolitz <tjolitz@gmail.com>:
AK <aakempf@gmail.com> writes:
On 09/01/2014 01:23 AM, Thorsten Jolitz wrote:
AK <aakempf@gmail.com> writes:
Since the URLs are invalid, the build() function seems to fail at the second wget line and aborts the whole process so no package gets built. Fixing the build() function so that wget no longer fails should get you a working package. I still wonder how 1.5GB were downloaded from invalid URLs, but since I have that files own disk now, I will try to tweak the build() function to make it work - thx for the hint.
I wonder, since the first line should have downloaded everything you wanted are the following lines needed at all?
Probably not, but as I said - this recipe is copied from the web, I don't know nothing about the dir structure of the texlive server ... it must have changed recently.
-- cheers, Thorsten
On Tue, Sep 2, 2014 at 3:37 AM, Xandaros Yotanido <mz.bremerhaven@gmail.com> wrote:
I also looked through the manpage of wget to figure out what all these flags do, but I couldn't find any information on -nv. What does it do?
I have no idea why you didn't find it: -nv --no-verbose Turn off verbose without being completely quiet (use -q for that), which means that error messages and basic information still get printed. Please don't top-post.
participants (5)
-
AK
-
Karol Blazewicz
-
Stephen Martin
-
Thorsten Jolitz
-
Xandaros Yotanido