I have been trying for a while to successfully install the packages available for KerTEX on porteus to build a complete and portable texing and latexing environment. The author of kerTEX, has been very instrumental in getting it to work as he has helped tremendously get it working for Slackware-current x86_64. However, I am trying to do the same straight from porteus x86_64, and I need devel modules(bison, flex) and a copy of (ed), also (lftp) module from slackware-current, or built from source. I have almost everything working except installing the packages, pkg_latex.sh, pkg_amstex.sh, pkg_cyrillics.sh, pkg_babel.sh, pk_graphcs.sh, etc all from KerTeX website. The author of KerTeX has sent me a script ck_kertex.sh, If you can copy it and save it to ck_kertex.sh,
Code: Select all
olivares@tricore:~/Downloads$ cat ck_kertex.sh
#!/bin/sh
# Checking some utilities needed for kerTeX packaging system.
#
#$Id: ck_kertex.sh,v 1.1 2012/03/12 21:26:30 tlaronde Exp $
# C) 2012 Thierry Laronde
# All rights reserved and no guarantee!
# Tous droits réservés et aucune garantie !
#
: ${PKG_SED:=sed}
echo "Testing $(command -v $PKG_SED)"
echo
#===== Adapted from pkglib.sh
#
_pkg_x_cid()
{
ed $0 <<EOT >/dev/null 2>&1
/^BEGIN_CID/+,/^END_CID/-w /tmp/$$.CID
q
EOT
}
#BEGIN_GET_REC_SEDCMD
#/^TAG:/ {
#s///
#/^$/!p
#:tag
#n
#/^[A-Z][A-Z0-9_]*:/b
#p
#b tag
#}
#
#END_GET_REC_SEDCMD
# Extracting will be done at initialization.
#
_pkg_x_get_rec_sedcmd()
{
$PKG_SED -n -e '/^#BEGIN_GET_REC_SEDCMD/,/^#END_GET_REC_SEDCMD/s/^#//p' \
$0\
| $PKG_SED -e '/^BEGIN/d' -e '/^END/d'\
>/tmp/$$.get_rec_sedcmd
}
pkg_get_rec()
{
ed /tmp/$$.get_rec_sedcmd <<EOT >/dev/null 2>&1
/^\/\^[A-Z][A-Z0-9_]*:/s!!/^$1:!
w
q
EOT
$PKG_SED -n -f /tmp/$$.get_rec_sedcmd /tmp/$$.CID
}
_pkg_x_cid
echo "I have extracted this:"
echo "===================="
cat /tmp/$$.CID
echo "===================="
echo
_pkg_x_get_rec_sedcmd
echo "I have extracted the commands:"
echo "===================="
cat /tmp/$$.get_rec_sedcmd
echo "===================="
echo
echo "And $PKG_SED prints:"
echo
pkg_get_rec SOURCES
rm /tmp/$$.*
exit 0
# Since we have exited above, no need to comment out the CID.
BEGIN_CID
NAME: latex
VERSION: 2e
KERTEX_VERSION: 0.999.1.5
SOURCES:
ftp://anonymous:kertex@ftp.dante.de/
LCD HOME/
GET /tex-archive/macros/latex/base.zip
GET /tex-archive/macros/latex/doc.zip
LCD /lib/fonts/tfm/latex
GET fonts/tfm/ /\.tfm$/
END:
END_CID
olivares@tricore:~/Downloads$
Code: Select all
olivares@tricore:~/Downloads$ ./ck_kertex.sh
Testing /usr/bin/sed
I have extracted this:
====================
NAME: latex
VERSION: 2e
KERTEX_VERSION: 0.999.1.5
SOURCES:
ftp://anonymous:kertex@ftp.dante.de/
LCD HOME/
GET /tex-archive/macros/latex/base.zip
GET /tex-archive/macros/latex/doc.zip
LCD /lib/fonts/tfm/latex
GET fonts/tfm/ /\.tfm$/
END:
====================
I have extracted the commands:
====================
/^TAG:/ {
s///
/^$/!p
:tag
n
/^[A-Z][A-Z0-9_]*:/b
p
b tag
}
====================
And sed prints:
ftp://anonymous:kertex@ftp.dante.de/
LCD HOME/
GET /tex-archive/macros/latex/base.zip
GET /tex-archive/macros/latex/doc.zip
LCD /lib/fonts/tfm/latex
GET fonts/tfm/ /\.tfm$/
Code: Select all
guest@porteus:~/Downloads$ chmod +x ck_kertex.sh
guest@porteus:~/Downloads$ ls -l ck_kertex.sh
-rwxr-xr-x 1 guest guest 1600 Mar 12 16:43 ck_kertex.sh*
guest@porteus:~/Downloads$ ./ck_kertex.sh
Testing /usr/bin/sed
I have extracted this:
====================
NAME: latex
VERSION: 2e
KERTEX_VERSION: 0.999.1.5
SOURCES:
ftp://anonymous:kertex@ftp.dante.de/
LCD HOME/
GET /tex-archive/macros/latex/base.zip
GET /tex-archive/macros/latex/doc.zip
LCD /lib/fonts/tfm/latex
GET fonts/tfm/ /\.tfm$/
END:
====================
I have extracted the commands:
====================
/^TAG:/ {
s///
/^$/!p
:tag
n
/^[A-Z][A-Z0-9_]*:/b
p
b tag
}
====================
And sed prints:
guest@porteus:~/Downloads$

Thanks in Advance.
Antonio
EDIT
New run from porteus i486, special XFCE edition I get:
Code: Select all
guest@porteus:~/Downloads$ uname -a
Linux porteus 3.1.8-porteus #1 SMP PREEMPT Sat Jan 7 11:08:29 UTC 2012
i686 AMD Phenom(tm) 8250e Triple-Core Processor AuthenticAMD GNU/Linux
guest@porteus:~/Downloads$ cat /etc/porteus-version
Porteus-v1.2
guest@porteus:~/Downloads$ ./ck_kertex.sh
Testing /usr/bin/sed
I have extracted this:
====================
cat: /tmp/2949.CID: No such file or directory
====================
I have extracted the commands:
====================
/^TAG:/ {
s///
/^$/!p
:tag
n
/^[A-Z][A-Z0-9_]*:/b
p
b tag
}
====================
And sed prints:
sed: can't read /tmp/2949.CID: No such file or directory
@all who are following the thread. At least for i486, the issue is solved. Now I need to get it fixed for x86_64 Porteus. I will report back. It was a user error

In i486 porteus version, sed works correctly, but in 64 bit one it does not appear to do so
