Replace TeTex package by TeX Live

As of May 2006, TeTeX has been abandoned upstream (see http://www.tug.org/tetex). Another project, called TeX Live, which uses most of the scripts developed for teTeX, is its successor. I would suggest to replace TeTex packages in arch by Tex Live.

Ah, so then the quest is too make a PKGBUILD for the newer pdftex and overwrite the teTeX provided one (while waiting for TeX Live to be part of Arch Linux). I wonder though if pacman lets you do that.
Or.. hmm.. I think that the teTeX PKGBUILD could be modified to download the newest pdfTeX and overwrite the old src and then be built as normal. I'll give it a try and see how it goes.
EDIT: Okay, so I managed to break the teTeX build by taking a chance at with files actually need to be copied, obviously it's more advanced than that. Just building the latest pdfTeX is plain easy though, not sure what will happen if you overwrite the files used by (and "owned") teTeX.
I'll post the files incase anyone wants to try, I won't take any responsibility though, haven't tried it myself, but a guess is that if it messes teTeX up you should recover by 'pacman -S tetex' and say yes when it tells you the latest version is already installed. That's just a guess though. I've not tried building it on i686, but I don't think it should complain so I put it in there as well.
PKGBUILD:
pkgname=pdftex
pkgver=1.40.3
pkgrel=1
pkgdesc="Create PDF-files from TeX-files"
arch=(i686 x86_64)
url="http://www.tug.org/applications/pdftex/"
license=('GPL')
depends=('glibc')
install=pdftex.install
source=(http://sarovar.org/download.php/1160/$pkgname-$pkgver.tar.bz2)
md5sums=('3e5ce0ff804e0420908b89ae44c69532')
build() {
cd $startdir/src/$pkgname-$pkgver
./build.sh
# Overwrite old files
install -D $startdir/src/$pkgname-$pkgver/build/texk/web2c/pdfetex $startdir/pkg/usr/bin/pdfetex
install -D $startdir/src/$pkgname-$pkgver/build/texk/web2c/pdftex $startdir/pkg/usr/bin/pdftex
install -D -m 644 $startdir/src/$pkgname-$pkgver/build/texk/web2c/pdftex.pool $startdir/pkg/usr/share/texmf/web2c/pdftex.pool
install -D $startdir/src/$pkgname-$pkgver/build/texk/web2c/pdftosrc $startdir/pkg/usr/bin/pdftosrc
install -D $startdir/src/$pkgname-$pkgver/build/texk/web2c/ttf2afm $startdir/pkg/usr/bin/ttf2afm
pdftex.install:
# arg 1: the new package version
pre_install() {
/bin/true
# arg 1: the new package version
post_install() {
echo "Regenerating TeX formats"
fmtutil --refresh
/bin/true
# arg 1: the new package version
# arg 2: the old package version
pre_upgrade() {
/bin/true
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
post_install $1
/bin/true
# arg 1: the old package version
pre_remove() {
/bin/true
# arg 1: the old package version
post_remove() {
/bin/true
op=$1
shift
$op $*
Last edited by [vEX] (2007-04-13 21:39:05)

Similar Messages

  • TeX Live 2013 update issue: Package biblatex Error

    Hi.
    Today I updated texlive 2012 to 2013 version. After this I can't compile my projects with error:
    ! Package biblatex Error: Patching 'babel' package failed.
    I use biblatex with biber backend and polyglossia packages.
    Installed packages:
    extra/texlive-bibtexextra 2013.30944-1 (texlive-most)
    TeX Live - Additional BibTeX styles and bibliography databases
    extra/texlive-bin 2013.30973-2
    TeX Live binaries
    extra/texlive-core 2013.30962-2 (texlive-most)
    TeX Live core distribution
    extra/texlive-fontsextra 2013.30955-1 (texlive-most)
    TeX Live - all sorts of extra fonts
    extra/texlive-formatsextra 2013.30214-1 (texlive-most)
    TeX Live - collection of extra TeX 'formats'
    extra/texlive-games 2013.30959-1 (texlive-most)
    TeX Live - Setups for typesetting various board games, including chess
    extra/texlive-genericextra 2013.29803-1 (texlive-most)
    TeX Live - mixed bag of generic macro packages and fonts
    extra/texlive-htmlxml 2013.29725-1 (texlive-most)
    TeX Live - Packages to convert LaTeX to XML/HTML, and typeset XML/SGML
    extra/texlive-humanities 2013.30815-2 (texlive-most)
    TeX Live - LaTeX packages for law, linguistics, social sciences, and humanities
    extra/texlive-langcyrillic 2013.30653-1 (texlive-lang)
    TeX Live - Fonts and macro packages to typeset Cyrillic texts
    extra/texlive-latexextra 2013.30964-1 (texlive-most)
    TeX Live - Large collection of add-on packages for LaTeX
    extra/texlive-music 2013.30005-1 (texlive-most)
    TeX Live - Music typesetting packages
    extra/texlive-pictures 2013.30637-2 (texlive-most)
    TeX Live - Packages for drawings graphics
    extra/texlive-plainextra 2013.30377-1 (texlive-most)
    TeX Live - A collection of add-on packages and macros for plain TeX
    extra/texlive-pstricks 2013.30956-1 (texlive-most)
    TeX Live - Additional PSTricks packages
    extra/texlive-publishers 2013.30958-1 (texlive-most)
    TeX Live - LaTeX classes and packages for specific publishers
    extra/texlive-science 2013.30910-1 (texlive-most)
    TeX Live - Typesetting for natural and computer sciences
    Last edited by unikum (2013-08-04 10:30:23)

    @unikum: Yes I have , and I can confirm that everything (apart from polyglossia) compiles flawlessly. It would appear with XeTeX the polyglossia package works but the BibLaTeX doesn't. With PDFTeX, BibLaTeX does work, but I see that polyglossia only works with XeTeX (my compiler also suggests LuaTeX but I'm not going to try it).
    I'm quite happy with how BibTeX works though I'm going guess that you use BibLaTeX for your own reasons.
    LaTeX itself works, I've been working on my MSc Dissertation, lectures notes and other bits, conveniently written in LaTeX, with a working BibTex bibliography. Have I had any problems after uninstalling TeXLive 2012 and then installing TeXLive 2013? NO.
    As for your second question, no. I will not repeat how I did the upgrade for a third time, so please read my previous posts.
    Edited after re-reading entire thread (things getting mixed up in my head ¬¬).
    Last edited by clfarron4 (2013-08-05 21:45:25)

  • [TeX Live] Unable to get ConTeXt (Mark IV) to work

    I would like to try out ConTeXt, but I can't get it to work. Trying to run "context my-small-test-file.tex" or "context --version" (or anything else I can think of) results in the following error message:
        mtxrun          | unknown script 'context.lua' or 'mtx-context.lua'
    The TeX Live wiki page says "The ConTeXt formats (for MKII and MKIV) are not automatically generated upon installation. See the ConTeXT wiki for instructions on how to do this." I've searched, but I haven't been able to find any helpful info in the ConTeXt wiki. For example, here it is suggested to run "context --make cont-en" to generate a format file, but this gives the same error message as above. Trying texconfig is no good either; it says "texconfig formats is no longer supported, because manual edits of fmtutil.cnf will be overwritten by the new TeX Live package manager, tlmgr, which regenerates that file as needed upon package changes. Thus, to add or remove formats, the recommended method is to use tlmgr to add or remove the appropriate package." But I don't know how tlmgr works, and anyway I'm reluctant to use anything that might interfere with pacman.
    No luck googling either... Suggestions, anyone?
    PS 1. Are there any good reasons why the texlive-core package doesn't configure ConTeXt to work out of the box?
    PS 2. I also tried context-minimals-git from the AUR, which kind of works, but it's useless since the integral signs ($\int$) don't look like they should and have a hideously large spacing around them...

    Also, you can have multiple versions of TL installed if you like and switch between them. I like this because I can always fall back to the previous edition if something terrible happens to the latest one! (Especially when I'm installing a new release and don't know quite what will happen.)
    I guess it doesn't seem like much hassle to me but I was managing TL with these tools before I started using Linux, so that might make a difference - it is easier, in fact, than learning to manage TL using pacman packages.
    But the "do not run with root privileges" is what really decided it for me. I prefer not to manage the installation using tools with privileges which the tools' authors explicitly recommend against! (I guess if you don't need to run anything to manage the installation this might not matter, though.)
    EDIT: By the way, I do this even though I pretty much install the lot so I certainly do not save space. But I have control and I know what the tools do and where they can do those things - only under /usr/local/texlive and /usr/local/stow-tex, basically. I manage the installation using a dedicated account which cannot write anywhere else besides world-writable directories such as /tmp. And it all seems to work.
    The only tricky part was figuring out how to create dummy packages to keep Arch's pacman and Fedora's yum happy .
    Last edited by cfr (2013-11-16 22:57:44)

  • Getting errors in replacing already packaged file

    Hi Jim,
    I am getting errors while replacing already packaged file. I have changed action as replace and already passed resource id into the package xml but it is saying that duplicate src.
    Please help me in this case.
    Best,
    Mangal

    This solved a problem I have been working on for days.....
    Where is this kind of gems documented?
    Am I missing some resources?
    Best
    Jon H.

  • [SOLVED] Tex-live PATH MANPATH and INFOPATH

    Good evening,
    Today I finally switched from Ubuntu to Arch. Have to say: excelent Wiki's!
    While trying to install Tex-live I was prompted to ass a certain directory to PATH, MANPATH and INFOPATH. I have been google-ing, checking fora, wiki's, but I can' t figure out where to add them. Using export MANPATH=/usr/local/texlive/2013/texmf-dist/doc/man:$MANPATH should only export it for the current session, right? I read somewhere that I should add it in a .profile file (or .bashrc). Though non of the files are existing in the directory where the wiki's guide me. Do you guys know where I should add the PATH,MANPATH and INFOPATH line?
    The wiki: https://en.wikibooks.org/wiki/LaTeX/Ins … h_TeX_Live does not explain this part, unfortunately.
    Many thanks!
    Last edited by Simthadim (2014-02-15 21:25:38)

    I used the netinstaller:
    The arch wiki redirected me to: https://en.wikibooks.org/wiki/LaTeX/Ins … h_TeX_Live
    see the minimal installation section.
    I ran the script an and the end it told me to add certains paths to PATH, MANPATH and INFOPATH.  There should be a ~/.profile file in ubuntu where I had to add these lines for the enviroment. No clue where I should add these lines in Arch.
    Thank you very much for your time.

  • [SOLVED] TeX Live 2010 packages won't install

    I get the following messages with different files a couple of dozen times:
    texlive-bin: /usr/share/man/man1/pdfpun.1.gz existiert im Dateisystem
    /usr/share/texmf-dist/tex/latex/bidi/luatex-bidi.def existiert in 'texlive-core' und 'texlive-langextra'
    They hence do not install.
    edit: Fixed in new package.
    Last edited by misc (2010-07-05 20:52:06)

    After removing pdfjam I get fewer, but still a lot of errors.
    With pdfpun1.gz gone from the list, I ran:
    sudo pacman -Qo /usr/share/texmf-dist/tex/latex/bidi/bookest-xetex-bidi.def; /usr/share/texmf-dist/tex/latex/bidi/colortbl-xetex-bidi.def
    Which gave:
    error: failed to read file '/usr/share/texmf-dist/tex/latex/bidi/bookest-xetex-bidi.def': No such file or directory
    bash: /usr/share/texmf-dist/tex/latex/bidi/colortbl-xetex-bidi.def: No such file or directory

  • What replaced this package in R12:       Ap_Inv_Selection_Criteria_Pkg

    Hi guys,
    Does anybody know what this package: "Ap_Inv_Selection_Criteria_Pkg" was replaced with in R12?
    Your help will be greatly appreciated.
    Thanking you in advance.

    Dear Gareth,
    thanks for your suggestion, but I couldn't find any procedure/function/package to insert into the ap_inv_selection_criteria table, through a standard script as the ap_inv_selection_criteria_pkg.insert_row in the 11i release.
    If you have any other suggestions, you're welcome :-)
    Regards,
    Rosanna.

  • Replacing a package with a self-build package

    If I have a self-build package that provides something (another package) that I allready have installed and also conflicts with, how do I replace the installed package with the self-build?
    When I try to install it with
    pacman -A /path/to/package
    pacman first tells me that my self-build package conflicts with the installed and whether I want to remove it. If I tell him that he should remove the installed package I get a list of dependencies that would get broke and the installation aborts.
    Any hints on how to solve that problem?

    Use -U (upgrade) switch if updating the package with the same name.
    Use -Rd (remove without dependencies) to uninstall a package and then install the one that provides the same.
    Last edited by lucke (2007-02-11 23:15:27)

  • [SOLVED] Safe way to replace supporting package

    Im trying to upgrade "gdrivefs" package from AUR where dependency "fusepy" is replaced to "python2-fusepy-git".
    Upgrade fails because "python2-fusepy-git" conflicts with "fusepy" - they share same file.
    Uninstallig of "fusepy" is tricky, because it intends to uninstall "gdrivefs" itself and messes hierarcy of dependency.
    So what is the safest way to upgrade package and replacing one dependency with another ?
    Last edited by mocambo (2015-01-04 15:20:11)

    I don't quite understand your situation, but here's what I do sometimes:
    If I have a package I need to replace with another and I'm absolutely sure I know what I'm doing then I'll "rip" out the old package then immediately install the new package. To uninstall one package and one package only, use the command:
    pacman -Rdd fusepy # WARNING: This leaves your dependencies in a unsettled state
    Then, immediately install the new package that replaces the old one. This will correct the dependency issue that you just created by ripping out the old package. That's it!
    EDIT: Trilby's method below is the better non-lazy way.
    Last edited by drcouzelis (2015-01-04 01:40:11)

  • [SOLVED] Archiso : installing AUR packages on a live image

    Hi all,
    I'm quite an arch newbie, I'm trying to setup a live USB stick, with the help of archiso. My goal is to finally get an "audio oriented" system (with jack, ardour, qsampler, and so more...).
    During the setup everything was working very well, until I tried to add some AUR packages to the install.
    On the arch website, I found this tip, which gave me a great hope about this.
    I'm not so familiar with Arch package management, but ok, I try to make a test : adding the "qsampler" AUR package. It needs "linuxsampler", "qt4", and "liblscp" as dependencies. "linuxsampler" and "qt4" are official packages, so I just have to add them to packages.both in the archiso working directory. "liblscp" is an AUR package (with no dependency); so there is 2 AUR packages to install : "liblscp", and "qsampler".
    So I create a directory tree like described in the tip, download the two build packages from AUR, and for each of them I do (something) like described there :
    # tar -xvf tarball_filename.tar.gz
    # cd tarball_filename
    # makepkg --asroot
    # mv *.xz ..
    # cd ..
    # rm -r tarball_filename{,.tar.gz}
    And then:
    # repo-add customrepo.db.tar.gz *.xz
    (I'm staying as root because it's red written to stay as root for the image creation. I think it's stupid, but people make stupid things when they are desesperate. Sorry I didn't take the time to test the code above again, it's only memory, but it was very similar)
    I did the same for both architectures (i686 and x86_64), so that my custom repo looks like this:
    ~/liveusb/customrepo # ls -R
    i686 x86_64
    ./i686:
    customrepo.db customrepo.db.tar.gz liblscp-0.5.6-1-x86_64.pkg.tar.xz qsampler-0.2.3-1-x86_64.pkg.tar.xz
    ./x86_64:
    customrepo.db customrepo.db.tar.gz liblscp-0.5.6-1-x86_64.pkg.tar.xz qsampler-0.2.3-1-x86_64.pkg.tar.xz
    Oops... I just noticed I did wrong for i686 machines, but it doesn't matter for the moment, since I'm working on an x86_64 machine.
    As explained in the tip, I add the following lines to pacman.conf (in the archiso working directory):
    [customrepo]
    SigLevel = Optional TrustAll
    Server = file:///my/path/to/customrepo/$arch
    From my point of view, at this point, the USB stick is ready to be updated:
    ~/liveusb # ./build.sh -v
    and then (with /dev/sdf as my usb stick device):
    ~/liveusb # dd if=out/archlinux-2014.10.01-dual.iso of=/dev/sdf
    But when I boot on the USB stick, there's no trace of qsampler (linuxsampler, however, is present).
    Since it happened, I'm feeling like a lost, lonely man, on a desert island... Thinking about the "why", the "how"..., the meaning of life..., of package management... all this stuff
    I'm sure I did something wrong about the "custom repository", and the main reason is I don't deeply understand all the steps about this; that's why I'm looking for help
    Any idea?
    Many thanks
    Last edited by yolenoyer (2014-10-02 09:16:57)

    Thank you for the reply,
    I think I did a more trivial mistake :
    With archiso, the packages are automatically installed, from a package list file called "packages.both", and "packages.x86_64", "packages.i686" for architecture dependent packages. But they only use common repos by default. The "'qsampler" is not in official repos (that's why I choosed this one for my question).
    So, ok, I setup a common repo (with some mistakes but it was working), BUT...
    I just forgot to put the package name in the packages.both file...
    So, now that I did it, I just have an error about the package architecture, which I think possible to fix, just by rebuilding the common repo in a correct manner:
    ~/liveusb # ./build -v
    warning: vlc-2.1.5-3 is up to date -- reinstalling
    warning: mplayer-37224-2 is up to date -- reinstalling
    error: failed to prepare transaction (package architecture is not valid)
    :: package qsampler-0.2.3-1-x86_64 does not have a valid architecture
    ==> ERROR: Failed to install packages to new root
    Trilby wrote:Also, does this need to be a static iso image - is there a reason not to just do a persistent usb install?
    About the static iso image : the idea of building an iso image with all my personnal tools and config already installed on it is very pleasant to me, including the fact that you can burn it on a CD as well. The persistent acpect would be pleasant too, but in a secondary way.
    While I'm writing this message I really understand a bit more about all of this, since yesterday... Sometimes, simply posting a message in forums helps you to understand your own problem, because you have to be clear and concise!
    Thanks

  • Replace repo package with svn version of the software?

    I need a package from the extra repository to be a newer, svn version. Since there is all kind of stuff depending on it and I don't want to mess with dependencies, I thought it would be best to create the same package myself (using svn sources) and then just replace the one from the repo with my own, so that, for pacman, nothing really changes. Please correct me if there are other, more 'arch-style' ways to accomplish the same.
    Is there a wiki page that describes the process, or could you please give some hints? I have never created a package myself and I am very unpatient.

    Hey graysky. Thanks for answering! Yeah, there is an svn package for the software in question in AUR. But it's rather old (svn r2186, while the svn-repo is at r2478 now and I need the changes from r2452). So I guess my question would be: How do I create my own arch package using the package files from AUR as a starting point? I have never used AUR. Do I just download the PKGBUILD from the AUR, fiddle with it and read https://wiki.archlinux.org/index.php/Creating_Packages ? I somehow feel getting closer! Thanks!

  • Replace VisualCafe package

    Hi,
    JDK does not support "symantec" package. I need
    the following area to display an image.
    symantec.itools.awt.shape.Rect image_area = new symantec.itools.awt.shape.Rect();
    Does anybody know how to replace this GUI?
    Thanks!

    Easy, make a directory symantec/itools/awt/shape and put Rect.class in it. Add the directory containing symantec/ in your classpath.
    JDK does not support "symantec" package. I need
    the following area to display an image.
    symantec.itools.awt.shape.Rect image_area = new
    symantec.itools.awt.shape.Rect();
    Does anybody know how to replace this GUI?

  • There's an "updated.app" laying in Firefox package. Since firefox won't start and "updated.app" will, is it safe to replace firefox package with it?

    After last update to last version, FF was running fine before a hardware restart.
    Since then it won't start and profile manager either. No error message pops up and console window doesn't trace any event.
    firefox package contents an "updated" package likely created by last update.
    Will i loose my settings or run into any kind of problem by replacing firefox's package with the so called "updated" one?

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • Replace KDE packages when upgrading?

    Hi, should I answer yes to this?
    $ yaourt -Syu
    :: Synchronizing package databases...
    core is up to date
    extra is up to date
    community is up to date
    archlinuxfr is up to date
    :: Replace kdebase-keditbookmarks with extra/kdebase-konqueror? [Y/n]
    :: Replace kdebase-nsplugins with extra/kdebase-konqueror? [Y/n]
    :: Replace kdegraphics-ksaneplugin with extra/kdegraphics-libs? [Y/n]
    :: Replace kdegraphics-strigi-analyzer with extra/kdegraphics-libs? [Y/n]
    :: Replace kdegraphics-svgpart with extra/kdegraphics-libs? [Y/n]
    :: Replace kdegraphics-thumbnailers with extra/kdegraphics-libs? [Y/n]
    :: Replace kdemultimedia-libkcddb with extra/kdemultimedia-kioslave? [Y/n]
    :: Replace kdemultimedia-libkcompactdisc with extra/kdemultimedia-kioslave? [Y/n]
    :: Replace kdepim-icons with extra/kdepim-libkdepim? [Y/n]
    :: Replace kdepim-kmailcvt with extra/kdepim-kmail? [Y/n]
    :: Replace kdepim-kontactinterfaces with extra/kdepim-kontact? [Y/n]
    :: Replace kdepim-ksendemail with extra/kdepim-kmail? [Y/n]
    :: Replace kdepim-libkleo with extra/kdepim-libkdepim? [Y/n]
    :: Replace kdepim-libkpgp with extra/kdepim-libkdepim? [Y/n]
    :: Replace kdepim-libksieve with extra/kdepim-kmail? [Y/n]
    :: Replace kdepim-mimelib with extra/kdepim-kmail? [Y/n]
    :: Replace kdepim-plugins with extra/kdepim-kmail? [Y/n]
    :: Replace kdepim-strigi-analyzer with extra/kdepim-libkdepim? [Y/n]
    :: Replace system-config-printer with extra/system-config-printer-common? [Y/n]
    Do you want to skip the above package(s) for this upgrade? [Y/n]

    Yes.
    You may see an error with system-config-printer if you are on x86_64, just wait, there is a bug report for that.

  • Where can I find a replacement box/packaging for my 23" Cinema Display?

    Hello all,
    I'm a freelancer and I travel quite a bit with my Powerbook. I often have to ship my 23" Cinema Display to various states. I had a pipe burst in my basement completely ruining the box a few days ago. I've contacted Apple and no one I talked to was able to direct me to someone who could help. I'm going to try the Apple Store in my area. I'm very uncomfortable shipping the unit in any other packaging. Is there some place on-line where I could buy a new box? Any help given would be greatly appreciated!
    Powerbook 17" 1.67Ghz 1.5GB Ram 120GB HD   Mac OS X (10.4.3)  

    You could ask the Apple store to let you have (or buy) one of the boxes they use to send the displays in for repair. They should have these on hand.

Maybe you are looking for

  • Changing a html file to a word document

    hi there i have just purchased a new imac and installed microsoft office 2011 home and student. I have made a cv on a web site which then asks you to save as a word document, the problem been is that it downloads the file as a html file so i cannot m

  • Syslog output to multiple destinations

    Hi, I have a central syslog server set up. I am only able to either send all syslog messages (from my Solaris 9 client) to the central systog server or store them locally. I want to do both ie., send the messages to the syslog server as well as store

  • Can't use PayPal for purchases

    I want to do what for me is the right thing and pay for all my downloads, but I can't get the Store to use my PayPal account, so not only do I have an outstanding bill, I can't buy any more music, etc.! I tried to fix the problem, but now I bought a

  • Using Eclipse 3.2.

    Hi,I am setting up eclipse with some Java projects. I am getting an import error for: import org.eclipse.*; Please no offence meant for asking an eclipse question. can anyone please tell where can I get: import org.eclipse.jface.viewers.IStructuredCo

  • Unable to open PS11

    I have just downloaded the trial version of PhotoShop  Elements. I managed to 'play' with one photo before I had to go out. On return I found I could not access PS11 at all after clicking on screen icon. Any ideas? I am using Vista.