PDA

View Full Version : TeX Live 2009 port to N900


titan
01-24-2010, 06:44 PM
Hi,
I've ported TeX Live 2009 to Maemo and uploaded it to extras-devel.
It's already optified but highly experimental. Use it at your own risk!
Feel free to share your experiences here.

It's supposed to contain the full TeX Live distribution (incl. pdflatex, xetex etc)

The download is about 24MB. It uses about 60MB flash memory (virtually nothing on root).
For the installation the extras-devel catalogue must be enabled.
Just install texlive-latex-base from the Office section.

to get rid of everything or to reset for an upgrade use
apt-get remove --purge tex-common luatex libkpathsea5
rm -rf /opt/tex-common
as root in the Terminal

Happy TeXing

nergal
01-24-2010, 06:49 PM
sounds promising :) - thanks for the effort

MPW
01-24-2010, 06:54 PM
Hi titan,

thanks!

Can't find it with the program manager. Apt-cache gives me

luatex and texlive-binaries.

Is there an editor planned? Maybe a port of texmaker would be great...

Thanks for the first step porting tex to maemo!

Good night,
MPW

titan
01-24-2010, 07:39 PM
Can't find it with the program manager.
Is there an editor planned? Maybe a port of texmaker would be great...

there is no GUI application yet.
but once the console programs work lots of GUIs (e.g. LyX) could be ported.

filologen
01-25-2010, 03:36 AM
This is truly fantastic news. I will give this a try tonight!

Have you tested xelatex? (I need xelatex's unicode (font) support for the work I'm doing).

What about the beamer class, any chance of including it you haven't already done it?

And what about tikz/pgf?

Once again, thanks for your work - it is truly appreciated!

@MPW, the imho without comparison best editors for latex are already available natively for Maemo 5 (GNU Emacs and Vim).

borghal
01-25-2010, 04:31 AM
Thanks a lot titan, this sounds too good to be true!

I just tried to install according to your instructions, however I'm left with an error message and unconfigured packages:


sudo apt-get install -y texlive-latex-base
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
tex-common texlive-base texlive-binaries texlive-common texlive-doc-base
Suggested packages:
debhelper perl-tk ghostscript xpdf-reader pdf-viewer gv postscript-viewer
Recommended packages:
lmodern texlive-latex-base-doc
The following NEW packages will be installed:
tex-common texlive-base texlive-binaries texlive-common texlive-doc-base
texlive-latex-base
0 upgraded, 6 newly installed, 0 to remove and 39 not upgraded.
Need to get 22,2MB of archives.
After this operation, 54,7MB of additional disk space will be used.
Get:1 http://repository.maemo.org fremantle/free tex-common 2.06maemo5 [721kB]
Get:2 http://repository.maemo.org fremantle/free texlive-common 2009-7maemo4 [99,1kB]
Get:3 http://repository.maemo.org fremantle/free texlive-doc-base 2009-2maemo3 [1345kB]
Get:4 http://repository.maemo.org fremantle/free texlive-binaries 2009-5maemo3 [4064kB]
Get:5 http://repository.maemo.org fremantle/free texlive-base 2009-7maemo4 [14,5MB]
Get:6 http://repository.maemo.org fremantle/free texlive-latex-base 2009-7maemo4 [1434kB]
Fetched 22,2MB in 30s (715kB/s)
Selecting previously deselected package tex-common.
(Reading database ... 27721 files and directories currently installed.)
Unpacking tex-common (from .../tex-common_2.06maemo5_all.deb) ...
Selecting previously deselected package texlive-common.
Unpacking texlive-common (from .../texlive-common_2009-7maemo4_all.deb) ...
Selecting previously deselected package texlive-doc-base.
Unpacking texlive-doc-base (from .../texlive-doc-base_2009-2maemo3_all.deb) ...
Selecting previously deselected package texlive-binaries.
Unpacking texlive-binaries (from .../texlive-binaries_2009-5maemo3_armel.deb) ...
Selecting previously deselected package texlive-base.
Unpacking texlive-base (from .../texlive-base_2009-7maemo4_all.deb) ...
Selecting previously deselected package texlive-latex-base.
Unpacking texlive-latex-base (from .../texlive-latex-base_2009-7maemo4_all.deb) ...
Setting up tex-common (2.06maemo5) ...
dpkg: error processing tex-common (--configure):
subprocess post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of texlive-common:
texlive-common depends on tex-common (>= 2.0); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-common (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-base:
texlive-doc-base depends on tex-common (>= 2.00); however:
Package tex-common is not configured yet.
texlive-doc-base depends on texlive-common (>= 2009-1); however:
Package texlive-common is not configured yet.
dpkg: error processing texlive-doc-base (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-binaries:
texlive-binaries depends on tex-common (>= 2.00); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-binaries (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-base:
texlive-base depends on texlive-doc-base (>= 2009-1); however:
Package texlive-doc-base is not configured yet.
texlive-base depends on tex-common (>= 2.00); however:
Package tex-common is not configured yet.
texlive-base depends on texlive-common (>= 2009-1); however:
Package texlive-common is not configured yet.
texlive-base depends on texlive-binaries (>= 2009-1); however:
Package texlive-binaries is not configured yet.
dpkg: error processing texlive-base (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-latex-base:
texlive-latex-base depends on tex-common (>= 2.00); however:
Package tex-common is not configured yet.
texlive-latex-base depends on texlive-base (>= 2009-1); however:
Package texlive-base is not configured yet.
texlive-latex-base depends on texlive-common (>= 2009-1); however:
Package texlive-common is not configured yet.
texlive-latex-base depends on texlive-binaries (>= 2009-1); however:
Package texlive-binaries is not configured yet.
dpkg: error processing texlive-latex-base (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
tex-common
texlive-common
texlive-doc-base
texlive-binaries
texlive-base
texlive-latex-base
E: Sub-process /usr/bin/dpkg returned an error code (1)


I also commented out the luatex-lines in /etc/texmf/fmt.d/10texlive-latex-base.cnf.dpkg-new and tried sudo dpkg --configure -a but to no avail. What am I doing wrong?

jebba
01-25-2010, 04:35 AM
This is madness. Nice. I'd like pdflatex, if it's not there already, and the memoir book class, microtyping, ledmac/ledpar, etc.... ;)

titan
01-25-2010, 04:56 AM
thanks for the feedback.
it seems that configuration fails already with tex-common on your device.
I might already have hacked my device too much
so it's useful to see other people's output.

could you please set the first two lines of
/var/lib/dpkg/info/tex-common.postinst
to
#!/bin/sh -e
set -x

and send me the output of
dpkg --configure tex-common

thanks


I just tried to install according to your instructions, however I'm left with an error message and unconfigured packages:

Setting up tex-common (2.06maemo5) ...
dpkg: error processing tex-common (--configure):
subprocess post-installation script returned error exit status 127

titan
01-25-2010, 05:01 AM
This is madness. Nice. I'd like pdflatex, if it's not there already, and the memoir book class, microtyping, ledmac/ledpar, etc.... ;)

yes, pdflatex is included and works.
It's the same as TexLive2009 on your desktop.

borghal
01-25-2010, 05:02 AM
Hello titan, I did as you told me, (is there really suppose to be just a second line going
-e? Looks odd. here's the output:


~ $ sudo dpkg --configure tex-common
Setting up tex-common (2.06maemo5) ...
/var/lib/dpkg/info/tex-common.postinst: line 2: -e: not found
update-texmf: Basic configuration file /etc/texmf/texmf.d/05TeXMF.cnf missing.
Exiting.
egrep: /etc/texmf/texmf.d/55Fonts.cnf: No such file or directory
Error in /etc/texmf/texmf.d/55Fonts.cnf: TEXFONTMAPS not defined.
egrep: /etc/texmf/texmf.cnf: No such file or directory
Error in /etc/texmf/texmf.cnf: TEXFONTMAPS not defined.
egrep: /etc/texmf/texmf.d/05TeXMF.cnf: No such file or directory
Error in /etc/texmf/texmf.d/05TeXMF.cnf: TEXMFMAIN not defined.
egrep: /etc/texmf/texmf.cnf: No such file or directory
Error in /etc/texmf/texmf.cnf: TEXMFMAIN not defined.
egrep: /etc/texmf/texmf.d/05TeXMF.cnf: No such file or directory
Error in /etc/texmf/texmf.d/05TeXMF.cnf: TEXMFDIST not defined.
egrep: /etc/texmf/texmf.cnf: No such file or directory
Error in /etc/texmf/texmf.cnf: TEXMFDIST not defined.
egrep: /etc/texmf/texmf.d/05TeXMF.cnf: No such file or directory
Error in /etc/texmf/texmf.d/05TeXMF.cnf: TEXMF not defined.
egrep: /etc/texmf/texmf.cnf: No such file or directory
Error in /etc/texmf/texmf.cnf: TEXMF not defined.
egrep: /etc/texmf/texmf.d/05TeXMF.cnf: No such file or directory
Error in /etc/texmf/texmf.d/05TeXMF.cnf: TEXMF not defined.
egrep: /etc/texmf/texmf.cnf: No such file or directory
Error in /etc/texmf/texmf.cnf: TEXMF not defined.
egrep: /etc/texmf/texmf.d/05TeXMF.cnf: No such file or directory
Error in /etc/texmf/texmf.d/05TeXMF.cnf: TEXMF not defined.
egrep: /etc/texmf/texmf.cnf: No such file or directory
Error in /etc/texmf/texmf.cnf: TEXMF not defined.
egrep: /etc/texmf/texmf.d/05TeXMF.cnf: No such file or directory
Error in /etc/texmf/texmf.d/05TeXMF.cnf: TEXMF not defined.
egrep: /etc/texmf/texmf.cnf: No such file or directory
Error in /etc/texmf/texmf.cnf: TEXMF not defined.
Unrecoverable errors in your configuration have been detected
in configuration files in /etc/texmf/.
If you've not seen debconf error messages, see your mail for details
or use an interactive debconf frontend.

Exiting
dpkg: error processing tex-common (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
tex-common

marmota
01-25-2010, 05:05 AM
This is great. I started to use the latex in easy-debian, but to have it directly on maemo is nice!

Thank you for the effort. I will try as soon as I can get on a wifi connection.

titan
01-25-2010, 05:09 AM
thanks. BTW, which firmware are you using?

no the beginning of the file should like

#!/bin/sh -e
set -x
#
# postinst maintainer script for the Debian package.
# $Id: postinst.in 4537 2010-01-12 11:33:17Z preining $

# Copyright (C) 2004 by Frank K?ster <frank@kuesterei.ch>.


Hello titan, I did as you told me, (is there really suppose to be just a second line going
-e? Looks odd. here's the output:

titan
01-25-2010, 05:13 AM
this port is based on Ubuntu Lucid (10.04).
If someone has that version installed on the desktop,
the output of
fmtutil --all --cnffile /etc/texmf/fmt.d/10texlive-base.cnf
would be appreciated (before I install in a VM).

you send the logs to my email: tanner at gmx.de

borghal
01-25-2010, 05:23 AM
thanks. BTW, which firmware are you using?

I'm on PR1.1, the latest firmware.

I've attached the new output file.

titan
01-25-2010, 05:32 AM
ok, problem isolated (the standard ucf is broken).

at the beginning of
/var/lib/dpkg/info/tex-common.postinst
please replace the line (ca. 35)

UCF="sh /usr/bin/ucf" # WORKAROUND hardcoded bash

with

UCF=":" # WORKAROUND hardcoded bash

and try again

borghal
01-25-2010, 06:21 AM
Thanks for your help! Tried again but there's still an error message, see attachment.

titan
01-25-2010, 07:28 AM
Thanks for your help! Tried again but there's still an error message, see attachment.

hm, does it help to change it to
UCF="cp" # WORKAROUND hardcoded bash

borghal
01-25-2010, 07:40 AM
hm, does it help to change it to
UCF="cp" # WORKAROUND hardcoded bash

Unfortunately not, see attachment.

Big Phat Jan
01-25-2010, 08:04 AM
Still broken for me, I think due to the section under:

# handle ucf-managed configuration files

in the postinst script.

It breaks because /etc/texmf/texmf.d/05TeXMF.cnf is missing.

Out of interest I also couldn't find

/etc/texmf/fmt.d/10texlive-base.cnf
or
/etc/texmf/fmt.d/10texlive-latex-base.cnf

rather I could find

/etc/texmf/fmt.d/10texlive-base.cnf.dpkg-new
and
/etc/texmf/fmt.d/10texlive-latex-base.cnf-dpkg-new.

There was no reference to luatex in the former, I commented out two references to it in the latter.

Thanks for your efforts so far! Looking forward to getting this up and running!

Cheers,
Jan

titan
01-25-2010, 08:12 AM
Unfortunately not, see attachment.
ok, we are making progress (sorry the Ubuntu shell scripts are quite complex)
the error is:
/usr/sbin/update-texmf: line 96: ucf: not found

if you replace that line
ucf --debconf-ok --three-way ${TMPTXMF} ${TXMF}/texmf.cnf.

with

cp ${TMPTXMF} ${TXMF}/texmf.cnf

it coud finally work

titan
01-25-2010, 08:16 AM
Still broken for me, I think due to the section under:
rather I could find
/etc/texmf/fmt.d/10texlive-base.cnf.dpkg-new
and
/etc/texmf/fmt.d/10texlive-latex-base.cnf-dpkg-new.

maybe try again with
apt-get remove --purge tex-common

and then reinstall with the same fixes

There was no reference to luatex in the former, I commented out two references to it in the latter.
ok, the first occurence is fixed in the new texlive-base,
the second seems to be more difficult

borghal
01-25-2010, 08:39 AM
I tried your latest fixes and it still didn't work for me.

I can't even purge tex-common any more:


~ $ sudo dpkg --purge tex-common
(Reading database ... 27630 files and directories currently installed.)
Removing tex-common ...
Purging configuration files for tex-common ...
/var/lib/dpkg/info/tex-common.postrm: line 88: ucf: not found
dpkg: error processing tex-common (--purge):
subprocess post-removal script returned error exit status 127
Errors were encountered while processing:
tex-common

titan
01-25-2010, 08:46 AM
I tried your latest fixes and it still didn't work for me.
I can't even purge tex-common any more:


ok, it doesn't make sense to work around the broken ucf on the N900.
attached is my fixed version of /usr/bin/ucf
(uncompress before copying)

Big Phat Jan
01-25-2010, 09:12 AM
ok, it doesn't make sense to work around the broken ucf on the N900.
attached is my fixed version of /usr/bin/ucf
(uncompress before copying)

Thanks Titan.

After downloading your ucf binary (and forgetting to make it executable... Oops!), and changing the postinst script $UCF back to the original (which I assume is "ucf -d --debconf-ok --verbose") it seems to get stuck much later, and now it is complaining about the absence of /usr/share/doc/tex-common (which looks like it's at the very end of the postinst script).

If the full output would be helpful then please ask. I'm not doing this from my N900 as it seems to constantly drop keypresses on tmo...

Cheers,
Jan

borghal
01-25-2010, 09:15 AM
Thanks to your UCF binary I was able to purge tex-common. However a new installation according to your first post was still unsuccessful, there's something missing:


update-texmf: Basic configuration file /etc/texmf/texmf.d/05TeXMF.cnf missing.
Exiting.
dpkg: error processing tex-common (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
tex-common

Big Phat Jan
01-25-2010, 09:17 AM
Thanks to your UCF binary I was able to purge tex-common. However a new installation according to your first post was still unsuccessful, there's something missing:


update-texmf: Basic configuration file /etc/texmf/texmf.d/05TeXMF.cnf missing.
Exiting.
dpkg: error processing tex-common (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
tex-common


I think you need to change the UCF variable in the postinst script back to the original. I'm still having a slight problem but I think I'm past this step now. Might be worth waiting for more info on the missing docs before continuing though...

Cheers,
Jan

borghal
01-25-2010, 09:21 AM
I think you need to change the UCF variable in the postinst script back to the original. I'm still having a slight problem but I think I'm past this step now. Might be worth waiting for more info on the missing docs before continuing though...


Cheers, now I'm up with you. I thought the --purge would have taken care of my changes to the postinst file.

Now it quits with this error message:


mv: cannot rename '/usr/share/doc/tex-common': No such file or directory


Which is the same you've got, I guess.

Big Phat Jan
01-25-2010, 09:29 AM
Cheers, now I'm up with you. I thought the --purge would have taken care of my changes to the postinst file.

Now it quits with this error message:


mv: cannot rename '/usr/share/doc/tex-common': No such file or directory


Which is the same you've got, I guess.

I think maybe Titan has changed $UCF in the package?

Anyway, it seems like none of the docs are present (or at least I can't find them). I tried commenting out the optify from the tex-common postinst file (which is maybe a bit silly as I'm not sure what I'm doing!) but this just leads to the same problem in texlive-base, and I haven't wanted to continue on this path without input from Titan.

Cheers,
Jan

Big Phat Jan
01-25-2010, 09:37 AM
Just had a look in /usr/share/doc and the only file in there is a README that says:

Purged by docpurge

I'm going to take that to mean that the docs have all been deleted, and so don't need to be optified. And so I'm commenting out those optify lines that reference /usr/share/doc. Wish me luck!

Cheers,
Jan

Big Phat Jan
01-25-2010, 09:45 AM
Just had a look in /usr/share/doc and the only file in there is a README that says:

Purged by docpurge

I'm going to take that to mean that the docs have all been deleted, and so don't need to be optified. And so I'm commenting out those optify lines that reference /usr/share/doc. Wish me luck!

Cheers,
Jan

Well that seems to have worked! Haven't tested yet, but no complaints during install. Will edit to confirm it's all functional.

It seems to work rather well. See attached test.pdf. I tried to include an equation but that took us just above the maximum allowed attachment size.

Now to see if it can compile my thesis!

Cheers,
Jan

titan
01-25-2010, 09:57 AM
there were some problems with a broken ucf and the optifications by autobuilder.
I hope the fixes in tex-common_2.06maemo7 help now.
It works flawlessly on my N900 but maybe my "baby" is just nice to me ;-)

I suggest to start with
apt-get install -y tex-common
if that works, you can proceed with the rest

titan
01-25-2010, 10:40 AM
thanks for all your feedback, guys.
a completely fresh install (make sure no /etc/tex* etc are remaining)
with texlive-base_2009-7maemo5 should fix all known problems.
please let met know whether it works for you.

Big Phat Jan
01-25-2010, 11:03 AM
thanks for all your feedback, guys.
a completely fresh install (make sure no /etc/tex* etc are remaining)
with texlive-base_2009-7maemo5 should fix all known problems.
please let met know whether it works for you.

Nope! I should have left well alone! :D

I have a problem with line 1025 of the tex-common.postinst file (I think), where it says:

tmpfile=`mktemp`

When running the config this prints the usage instruction for mktmp, and returns an error code.

Cheers,
Jan

titan
01-25-2010, 11:19 AM
Nope! I should have left well alone! :D
tmpfile=`mktemp`

thanks for spotting this. I should be (incl. similar issues) fixed in the latest tex-common

filologen
01-25-2010, 11:47 AM
Thanks for all your work. A full texlive on the n900 nothing but fantastic and really makes the n900 shine!

Judging from this page http://maemo.org/packages/package_instance/view/fremantle_extras-devel_free_armel/texlive-full/2009-7maemo5/
you haven't ported all packages in texlive (yet).

Do you plan on doing so?

Big Phat Jan
01-25-2010, 12:25 PM
thanks for spotting this. I should be (incl. similar issues) fixed in the latest tex-common

OK, it turns out that this wasn't causing my error (though perhaps would have done if it had tried to execute the command?). It was actually crashing while executing:

/usr/sbin/update-texmf

In which the first mktemp references ${TMPDIR} which isn't set (at least on my device). Changing this to /tmp helped get past this step.

There are still remnants of the previous docpurge problem: texlive-doc-base and texlive-binaries postinst scripts still try to optify doc files that aren't there. When those lines are commented out, it continues OK.

Might be worth noting here for anyone reading that the luatex references in /etc/texmf/10texlive-latex-base.cnf still need commenting out, but I assume that this is expected.

Cheers,
Jan

titan
01-25-2010, 12:51 PM
you haven't ported all packages in texlive (yet).
Do you plan on doing so?

yes, the huge texlive-extras will be uploaded as soon as all basic installation issues are resolved

titan
01-25-2010, 01:06 PM
It was actually crashing while executing:
/usr/sbin/update-texmf
In which the first mktemp references ${TMPDIR} which isn't set (at least on my device). Changing this to /tmp helped get past this step.

weird, I have TMPDIR. maybe I should reboot..


There are still remnants of the previous docpurge problem: texlive-doc-base and texlive-binaries postinst scripts still try to optify doc files that aren't there.

the new versions should have that fixed.


Might be worth noting here for anyone reading that the luatex references in /etc/texmf/10texlive-latex-base.cnf still need commenting out, but I assume that this is expected.

are you sure? should have been fixed by 2009-7maemo5 this afternoon.
maybe you have an old config file?

Big Phat Jan
01-25-2010, 01:19 PM
weird, I have TMPDIR. maybe I should reboot..


Aha, I have TMPDIR as user, and if I use "root" (or I guess sudo?). However, if I use "sudo gainroot" it's missing!


are you sure? should have been fixed by 2009-7maemo5 this afternoon.
maybe you have an old config file?

Pretty sure /etc was empty of all tex related stuff after my last uninstall, and I got an error referencing /etc/texmf/fmt.d/10texlive-latex-base.cnf at the end of the reinstall. After commenting out the luatex lines the error disappeared and install finished successfully.

Cheers,
Jan

jebba
01-25-2010, 01:37 PM
Be careful of /tmp, it's only 960k!

Big Phat Jan
01-25-2010, 01:49 PM
Be careful of /tmp, it's only 960k!

Good to know, thanks. Though I think mine is reporting as being 6M or so?

I had a quick check and I think that while this install does make temporary files in /tmp (hardcoded in the postinst scripts), it cleans them all up afterwards.

Cheers,
Jan

titan
01-25-2010, 01:56 PM
the scripts use /tmp only for small stuff.
the texmf cache is in /opt/tex-common/var

EDIT: Jan is correct: the problem with /etc/texmf/fmt.d/10texlive-latex-base.cnf persists

borghal
01-25-2010, 02:41 PM
Right, after a fresh install and commenting out the two luatex-lines everything installed fine. Off to do some compiling now :)

Titan, thanks again for your work! Looking forward to texlive-extras ;)

titan
01-25-2010, 03:16 PM
Right, after a fresh install and commenting out the two luatex-lines everything installed fine. Off to do some compiling now :)

Titan, thanks again for your work! Looking forward to texlive-extras ;)

voila! texlive-extra is done.
now only luatex needs to be fixed....

borghal
01-25-2010, 03:36 PM
Wow, this gets better by the minute! :)

I cannot install texlive-xetex though, here's the error message:


Optifying usr/share/doc/texlive-xetex -> /opt/maemo/usr/share/doc/texlive-xetex
mv: cannot rename '/usr/share/doc/texlive-xetex': No such file or directory


I guess this has to do with docpurge again?

filologen
01-26-2010, 09:30 AM
Before trying to install texlive (with xetex) I just wanted to hear if anyone has succeeded in installing xetex.

titan
01-26-2010, 10:48 AM
my fix for luatex (no more editing of .cnf files necessary) and other fixes are waiting for upload
but autobuilder is broken right now...

titan
01-26-2010, 07:30 PM
ok, the latest builds are done, and should be publicly available within 30mins.
you should even see three packages in appmanager -> office.
please purge all older packages before the installation.

filologen
01-27-2010, 03:50 AM
I installed the three packages from the appmanager (hadn't installed any TeX Live packages before.

I have tried to run xelatex on a sample file which works in my texlive installation under easy-debian (chroot). It does however not work with your xetex package, and I get the following error message:

$ xelatex XeTeX-notes.tex
This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009/Maemo)
restricted \write18 enabled.
xelatex: fatal: Could not undump 1114113 8-byte item(s).

Any ideas?

Thanks again for all your work.

titan
01-27-2010, 04:17 AM
I'm very pleased to hear that the installation itself seems to work.
I'll try to reproduce your problem.

I installed the three packages from the appmanager (hadn't installed any TeX Live packages before.

filologen
01-27-2010, 11:46 AM
@titan

Thanks for looking into the issue -- I hope you find a solution:-)

Just for your information I have successfully installed the following packages:
- texlive-bibtex-extra
- texlive-font-utils
- texlive-formats-extra
- texlive-generic-extra
- texlive-generic-recommended
- texlive-humanities
- texlive-lang-danish
- texlive-lang-french
- texlive-lang-german
- texlive-lang-latin
- texlive-lang-norwegian
- texlive-lang-swedish
- texlive-latex3
- texlive-luatex
- texlive-math-extra
- texlive-metapost
- texlive-omega
- texlive-pictures
- texlive-plain-extra
- texlive-pstricks
- texlive-publishers
- texlive-science
- texlive-xetex
- texlive-xetex-bin

The following would however not install:
- texlive-extra-utils (couldn't be configured)
- texlive-fonts-extra -- (not enough free space in /var/cache/apt/archives)
- texlive-latex-extra (missing dependencies)

Best regards

borghal
01-27-2010, 04:50 PM
I'm still unable to install due to this error message.

update-texmf: Basic configuration file /etc/texmf/texmf.d/05TeXMF.cnf missing.

I'm sure I purged everything and had nothing TeX-related in /etc left from my former installs.

Thank you for your help!

EDIT: I started all over and it installed fine. Seems to have been an issue with my Application Manager.

titan
01-27-2010, 05:20 PM
Thanks for looking into the issue -- I hope you find a solution:-)

it seems to be a serious kernel/libc bug, see https://bugs.maemo.org/show_bug.cgi?id=8590
TexLive is really a nice stress test for the N900: many limitations and hidden bugs show up.

in the meantime you can download the correct .fmt files from
http://www.maemory.com/N900/xelatex/
and put them into /var/lib/texmf/web2c/xetex/

The following would however not install:
- texlive-extra-utils (couldn't be configured)
- texlive-fonts-extra -- (not enough free space in /var/cache/apt/archives)
- texlive-latex-extra (missing dependencies)

2) can be fixed moving apt/archives to /home and symlinking it
the other two are trivial and will be fixed in the next extras upload,
but not before the serious bug is fixed.

thanks for the feedback!

titan
01-27-2010, 05:23 PM
it might happen if it installed manually with sudo.
could you please purge again, also rm -rf /opt/tex-common as root
and then install via app manager?

I'm still unable to install due to this error message.

update-texmf: Basic configuration file /etc/texmf/texmf.d/05TeXMF.cnf missing.

I'm sure I purged everything and had nothing TeX-related in /etc left from my former installs.

Thank you for your help!

filologen
01-27-2010, 05:36 PM
in the meantime you can download the correct .fmt files from
http://www.maemory.com/N900/xelatex/
and put them into /var/lib/texmf/web2c/xetex/


Thank you so much. I just installed the correct .fmt files, and it now works:-)

Keep up the good work, it is truly appreciated!

borghal
01-27-2010, 06:23 PM
it might happen if it installed manually with sudo.
could you please purge again, also rm -rf /opt/tex-common as root
and then install via app manager?

This I tried and still get error messages:


update-updmap: cannot read /etc/texmf/updmap.d/00updmap.cfg
...
update-texmf: Basic configuration fie /etc/texmf/texmf.d/05TeXMF.cnf missing


and all the other packages can't be configured because dependencies are not ready.

This can't be because I installed your version of ucf before?

EDIT: Got it working, see above

filologen
01-28-2010, 09:19 AM
@titan

Just wanted to inform you that I did a successful upgrade of all the packages you uploaded today. I also installed the three packages which I couldn't install yesterday, and so far everything seems to work fine.

Many thanks from a cold Copenhagen (Denmark)

titan
01-28-2010, 09:22 AM
good. the xetex problem was indeed due to a /tmp problem. a new upload is in preparation

filologen
01-28-2010, 11:10 AM
I just tried to update tex-common, but did not succeed. I got the following error:

Setting up tex-common (2.06maemo12) ...
Running mktexlsr. This may take some time... done.
Running updmap-sys. This may take some time...
updmap-sys failed. Output has been stored in
/opt/tmp/updmap.XXlmwSJq
Please include this file if you report a bug.

Sometimes, not accepting conffile updates in /etc/texmf/updmap.d
causes updmap-sys to fail. Please check for files with extension
.dpkg-dist or .ucf-dist in this directory

dpkg: error processing tex-common (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
tex-common
E: Sub-process /usr/bin/dpkg returned an error code (1)

EDIT: OK, it seems to have installed, and the TeX system still seems to work.

titan
01-28-2010, 02:00 PM
I just tried to update tex-common, but did not succeed.
Setting up tex-common (2.06maemo12) ...
Running updmap-sys. This may take some time...
updmap-sys failed. Output has been stored in
/opt/tmp/updmap.XXlmwSJq
Please include this file if you report a bug.


an update to texlive-binaries is still in my queue.
the content of the file /opt/tmp/updmap.XXlmwSJq
could be useful. thanks for the feedback.

filologen
01-28-2010, 02:36 PM
sorry, I should have included the content of the file before, but here it is:

updmap: This is updmap, version $Id: updmap 14402 2009-07-23 17:09:15Z karl $
updmap: using transcript file `/var/lib/texmf/web2c/updmap.log'
updmap is creating new map files using the following configuration:

config file: `/var/lib/texmf/web2c/updmap.cfg'
dvips output directory: `/var/lib/texmf/fonts/map/dvips/updmap'
pdftex output directory: `/var/lib/texmf/fonts/map/pdftex/updmap'
dvipdfm output directory: `/var/lib/texmf/fonts/map/dvipdfm/updmap'

prefer outlines: `true'
texhash enabled: `true'
download standard fonts (dvips): `false'
download standard fonts (pdftex): `true'
download standard fonts (dvipdfm): `true'

updmap: scanning for LW35 support files
updmap: using map file `/usr/share/texmf-texlive/fonts/map/dvips/tetex/dvips35.map'
updmap: using map file `/usr/share/texmf-texlive/fonts/map/dvips/tetex/pdftex35.map'
updmap: using map file `/usr/share/texmf-texlive/fonts/map/dvips/tetex/dvipdfm35.map'
updmap: using map file `/usr/share/texmf-texlive/fonts/map/dvips/tetex/ps2pk35.map'

updmap: Scanning for MixedMap entries:

!!! ERROR! The map file `allrunes.map' has not been found at all.

Either put this file into the right place or remove the
reference from the configuration files - see
update-updmap(1).

borghal
01-28-2010, 02:36 PM
Got it all istalled but xetex quits with an error message. Is this the /tmp problem you mentioned?


This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009/Maemo)
restricted \write18 enabled.
xelatex: fatal: Could not undump 1114113 8-byte item(s).


Your work is highly appreciated!

filologen
01-28-2010, 02:58 PM
Got it all istalled but xetex quits with an error message. Is this the /tmp problem you mentioned?


This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009/Maemo)
restricted \write18 enabled.
xelatex: fatal: Could not undump 1114113 8-byte item(s).


Your work is highly appreciated!

This is the same problem I had, and the temporary solution is found in this post: http://talk.maemo.org/showpost.php?p=498304&postcount=53

titan
01-28-2010, 05:50 PM
can you confirm that the file
/opt/maemo/usr/share/texmf-texlive/fonts/map/dvips/allrunes/allrunes.map
from the package texlive-fonts-extra exists (just "ls filename")?

sorry, I should have included the content of the file before, but here it is:

titan
01-28-2010, 05:52 PM
yes, that looks like the /tmp problem.
I still need to fix the references to TMPDIR or /tmp in the texlive-binaries packages.
In the meantime please use my generated .fmt files.

Got it all istalled but xetex quits with an error message. Is this the /tmp problem you mentioned?

filologen
01-29-2010, 01:14 AM
can you confirm that the file
/opt/maemo/usr/share/texmf-texlive/fonts/map/dvips/allrunes/allrunes.map
from the package texlive-fonts-extra exists (just "ls filename")?

yes, it does indeed exist.

EDIT: I actually ended up uninstalling (purging) texlive-fonts-extra since it -- in spite of being heavily optified -- takes up approximately 12MB in the root partition, and since I normally don't need it (in 99% of all cases I use xelatex with one specific unicode font which isn't part of this package anyway). Now tex-common can be configured correctly.

borghal
01-29-2010, 07:53 AM
yes, that looks like the /tmp problem.
I still need to fix the references to TMPDIR or /tmp in the texlive-binaries packages.
In the meantime please use my generated .fmt files.

I did and it works now. Great!

filologen
01-31-2010, 10:39 AM
@titan

I cannot produce a pdf with xelatex when the file includes eps images due to lack of the gs command.

You wouldn't have any plans on porting ghostscript would you? (I know that most (or all?) the necessary stuff is in the SDK repository).

PS: I would like to use the opportunity to also thank you for your port of python-tk which made it possible for me to use the great concordance program TextSTAT. Your work is of great value to the maemo community.

Best regards

titan
01-31-2010, 04:02 PM
yes, ghostscript is on my (long) todo list but I'm quite busy with non-maemo stuff ATM.. :-/
I'll probably first try to get the /tmp problem solved so that the TexLive port can be considered stable.

filologen
01-31-2010, 04:12 PM
yes, ghostscript is on my (long) todo list but I'm quite busy with non-maemo stuff ATM.. :-/


Thanks a lot -- looking forward to it!

By the way, in order to get the beamer class working (for creating presentations in LaTeX) I had to install the pgf package and the latex-xcolor package. I downloaded them from the debian repository (http://packages.debian.org/sid/pgf and http://packages.debian.org/sid/latex-xcolor) and they worked without problems (of cause not optified, but they aren't too big).

EDIT: I ended up doing some manual optification anyway. If someone else installs the non-optified packages, you can regain most of the lost space on the root partition (approximately 3MB) bye moving the /usr/share/texmf/tex to opt (remember to create the necessary symlink).

bousch
03-09-2010, 09:34 AM
@titan
You wouldn't have any plans on porting ghostscript would you? (I know that most (or all?) the necessary stuff is in the SDK repository).


I have optified debs for ghostscript 8.71, groff 1.20.1, grap 1.43 and graphicsmagick 1.3.12.

These are compiled straight from the sources on the Maemo SDK VM (http://maemovmware.garage.maemo.org/2nd_edition/), without any modifications and they seem to run fine for me.

Compiling them was really easy and I'll gladly share them but I'm not sure they meet standard maemo 5 requirements (other than being fully optified)

filologen
03-09-2010, 09:52 AM
Compiling them was really easy and I'll gladly share them but I'm not sure they meet standard maemo 5 requirements (other than being fully optified)

I would very much like to try them out as they are if you could attach them or put a link to (a) download location(s).

Thanks a lot!

bousch
03-09-2010, 12:40 PM
I would very much like to try them out as they are if you could attach them or put a link to (a) download location(s).


Here are the debs:

groff_1.20.1-1_armel.deb (http://www.fileden.com/files/2010/3/9/2788173/groff_1.20.1-1_armel.deb)
graphicsmagick_1.3.12-1_armel.deb (http://www.fileden.com/files/2010/3/9/2788173/graphicsmagick_1.3.12-1_armel.deb)
grap_1.43-1_armel.deb (http://www.fileden.com/files/2010/3/9/2788173/grap_1.43-1_armel.deb)
ghostscript_8.71-1_armel.deb (http://www.fileden.com/files/2010/3/9/2788173/ghostscript_8.71-1_armel.deb)

Note that groff has a dependency on two libs in extras-devel and the gm display command complaints about fonts. I just use the gm convert command so that is not an issue for me.

Let me know if you have any problems with downloading.
My apologies for hijacking the thread btw.

filologen
03-09-2010, 03:16 PM
Thanks a lot! All the packages installed without any problems:-)

dmol
11-06-2010, 12:50 PM
Hi!

When I try to compile my CV I got the following starge info:
# xelatex cv-modern-IvanBaidakou.tex
This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009/Maemo)
restricted \write18 enabled.
xelatex: fatal: Could not undump 1114113 8-byte item(s).

It uses modencv style.

What can I do to compile my CV on N900?

Thanks!

dmol
11-06-2010, 12:51 PM
Hi!

When I try to compile my CV I got the following starge info:
# xelatex cv-modern-IvanBaidakou.tex
This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009/Maemo)
restricted \write18 enabled.
xelatex: fatal: Could not undump 1114113 8-byte item(s).

It uses modencv style.

What can I do to compile my CV on N900?

Thanks!

amadou
02-08-2011, 10:10 PM
Thanks for the good work.
Installed fine but I have the /tmp issue!
the link for your .fmt file no longer work. Can you help on that?
Much appreciated

athame
03-17-2011, 01:52 PM
Will you create latex-beamer, texlive-full and other package without missing depends? Optified ofc.