Re: texlive xelatex not working [ Was fontconfig : .so.2 not provided by 2.11.1?]

2016-01-23 Thread Brook Milligan

> On Jan 22, 2016, at 2:50 PM, Rhialto  wrote:
> Would it be possible to generate packages on-the-fly in such a way that
> the normal build process will generate a package when needed? This might
> be useful for Perl (CPAN) packages too, and Ruby has its own packaging
> system too, so this could work out very productively (if it is possible
> at all).

I won’t comment on whether it is possible to do this, but I’m not convinced 
that is a good way to maintain a reproducible set of software and therefore 
would question whether that is even an appropriate goal.

What I will point out is that more packages might be made in more consistent 
fashion if we had more tools that lower the barrier for producing packages for 
the subset that have a lot of boilerplate.  I believe there is already 
something along those lines for perl.  I’m not sure about ruby.  Certainly TeX 
packages fall into this category and could benefit from such a tool.  From my 
own experience I know R packages do, which was the inspiration for me writing 
pkgtools/R2pkg (although I am not sure anyone else has yet made use of it; 
please step up).  There are likely other families of packages that could be 
viewed in the same way.

Some investment in such tools will be leveraged across the many packages they 
make possible, just as investment in all the make magic is leveraged across all 
of pkgsrc.  This seems like the best step forward for related groups of 
packages.

Cheers,
Brook


Re: texlive xelatex not working [ Was fontconfig : .so.2 not provided by 2.11.1?]

2016-01-22 Thread Mark Davies
On Fri, 22 Jan 2016 13:40:26 Brook Milligan wrote:
> Is there are more or less automated way to make TeX packages?  I know from
> having made some that there is a lot of boilerplate.  That suggests that
> some tool to make these packages might make it easier to get and maintain a
> complete set.

I do have a script that takes a texlive package and creates a (first cut at a) 
pkgsrc package for it.  I really should clean it up and commit it to pkgtools.

cheers
mark



Re: texlive xelatex not working [ Was fontconfig : .so.2 not provided by 2.11.1?]

2016-01-22 Thread Rhialto
On Sat 23 Jan 2016 at 09:51:28 +1300, Mark Davies wrote:
> I do have a script that takes a texlive package and creates a (first
> cut at a) pkgsrc package for it.  I really should clean it up and
> commit it to pkgtools.

Would it be possible to generate packages on-the-fly in such a way that
the normal build process will generate a package when needed? This might
be useful for Perl (CPAN) packages too, and Ruby has its own packaging
system too, so this could work out very productively (if it is possible
at all).

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- The Doctor: No, 'eureka' is Greek for
\X/ rhialto/at/xs4all.nl-- 'this bath is too hot.'


signature.asc
Description: PGP signature


Re: texlive xelatex not working [ Was fontconfig : .so.2 not provided by 2.11.1?]

2016-01-22 Thread Brook Milligan
On Jan 22, 2016, at 12:55 PM, Mark Davies  wrote:
> If there are particular texlive packages that are currently missing that 
> someone wants, let me know and I'll add them.

Is there are more or less automated way to make TeX packages?  I know from 
having made some that there is a lot of boilerplate.  That suggests that some 
tool to make these packages might make it easier to get and maintain a complete 
set.  Or is the model just to manually add them until eventually we get them 
all?  (Is that likely to happen or will the growth of TeX packages outpace 
their inclusion in pkgsrc?)

Cheers,
Brook



Re: texlive xelatex not working [ Was fontconfig : .so.2 not provided by 2.11.1?]

2016-01-22 Thread Mark Davies
On Fri, 22 Jan 2016 12:40:09 Jeremy C. Reed wrote:
> I don't know answer if full TeX Live distrubution is available in
> pkgsrc, [...]

> Maybe someone can help you get the needed parts installed without
> having the full texlive.

The current state is that any TeX packages we have are up-to-date with TeX 
Live 2015 versions so the issue, if any, is missing packages.

These texlive collections are complete in pkgsrc

texlive-collection-basic
texlive-collection-fontsextra
texlive-collection-fontsrecommended
texlive-collection-fontutils
texlive-collection-formatsextra
texlive-collection-genericrecommended
texlive-collection-htmlxml
texlive-collection-langafrican
texlive-collection-langcjk
texlive-collection-langczechslovak
texlive-collection-langenglish
texlive-collection-langgerman
texlive-collection-langkorean
texlive-collection-langother
texlive-collection-langportuguese
texlive-collection-latex
texlive-collection-latexrecommended
texlive-collection-metapost
texlive-collection-omega
texlive-collection-plainextra

These collections are partially there.  The number after each is the number of 
missing packages required to complete.

texlive-collection-bibtexextra  86
texlive-collection-binextra  48
texlive-collection-context  33
texlive-collection-games  19
texlive-collection-genericextra  42
texlive-collection-langarabic  10
texlive-collection-langchinese  6
texlive-collection-langcyrillic  15
texlive-collection-langeuropean  7
texlive-collection-langfrench  13
texlive-collection-langgreek  18
texlive-collection-langindic  11
texlive-collection-langitalian  5
texlive-collection-langjapanese  16
texlive-collection-langpolish  8
texlive-collection-langspanish  1
texlive-collection-latexextra  848
texlive-collection-luatex  28
texlive-collection-mathextra  52
texlive-collection-music  17
texlive-collection-pictures  111
texlive-collection-pstricks  66
texlive-collection-publishers  135
texlive-collection-science  59
texlive-collection-xetex  29


If there are particular texlive packages that are currently missing that 
someone wants, let me know and I'll add them.

cheers
mark



Re: texlive xelatex not working [ Was fontconfig : .so.2 not provided by 2.11.1?]

2016-01-22 Thread Jeremy C. Reed
I may have missed something in the previous thread or in this thread... 
but what feature are you missing?

I don't know answer if full TeX Live distrubution is available in 
pkgsrc, but I use the pkgsrc for my LaTeX related work every week for 
over a decade. I have generated many documents (including books for 
print) and it has provided what I needed. I use lots of custom 
features (beyond the default installation), like:

tex-tocbibind
tex-cite
tex-microtype
tex-everypage
tex-draftwatermark
tex-lineno
tex-tocloft

Maybe someone can help you get the needed parts installed without 
having the full texlive.


Re: texlive xelatex not working [ Was fontconfig : .so.2 not provided by 2.11.1?]

2016-01-22 Thread Mayuresh
On Thu, Jan 21, 2016 at 11:17:07AM -0500, Greg Troxel wrote:
> $ ls -ld /usr/pkgsrc/*/*texlive*

pkgsrc is my preferred way (for anything but latex) and I have already
checked the above.

I have discussed this in the lists before that pkgsrc does not provide
full texlive functionality. For example in this thread (and perhaps there
were other threads also):

https://mail-index.netbsd.org/pkgsrc-users/2012/07/11/msg016691.html

My question in above thread is still relevant (and your ls output only
highlights that). Do not know whether the answer changed, though.

Mayuresh


Re: texlive xelatex not working [ Was fontconfig : .so.2 not provided by 2.11.1?]

2016-01-22 Thread Brook Milligan
On Jan 22, 2016, at 1:51 PM, Mark Davies  wrote:
> I do have a script that takes a texlive package and creates a (first cut at 
> a) 
> pkgsrc package for it.  I really should clean it up and commit it to pkgtools.

Please do that.  I know I regularly come across TeX packages that are not 
included and often cobble together something that works for the moment but 
never get around to fixing it up for submission.  Tools to help automate these 
cases of boilerplate packages may well help a great deal.

Cheers,
Brook



Re: texlive xelatex not working [ Was fontconfig : .so.2 not provided by 2.11.1?]

2016-01-22 Thread Mayuresh
On Fri, Jan 22, 2016 at 12:40:09PM -0600, Jeremy C. Reed wrote:
> I don't know answer if full TeX Live distrubution is available in 
> pkgsrc, but I use the pkgsrc for my LaTeX related work every week for 
> over a decade. I have generated many documents (including books for 
> print) and it has provided what I needed. I use lots of custom 
> features (beyond the default installation), like:

I do not recollect what I might have found missing in the past (the cited
thread is 4 yr old). (A guess is it might be some bits and pieces in tikz
and/or beamer, but just a guess.)

But from the past I do carry a lingering impression of having struggled
with pkgsrc latex.

When being in the middle of the work (of creating documents) I do not like
to digress into building packages again, particularly when out of so many
*tex* it's too difficult to know what exactly you missed. Hence it is
safer for me to do something that gives me the full installation.

If pkgsrc' latex does offer that assurance some day, I'll be happy to
switch back to it.

Mayuresh.


Re: texlive xelatex not working [ Was fontconfig : .so.2 not provided by 2.11.1?]

2016-01-21 Thread Benny Siegert
What is preventing you from using the tex packages in pkgsrc? AFAIK, they
are based on texlive.

On Thu, Jan 21, 2016 at 4:05 AM Mayuresh  wrote:

> On Wed, Jan 20, 2016 at 08:43:33PM +0100, Martin Husemann wrote:
> > > amd64 xetex (from texlive) is now looking for freetype.7 and not
> finding
> > > it.
> >
> > Then xetex has been compiled against the wrong libs.
>
> Possibly when the distribution was made, NetBSD 6.x was the latest
> version, which might have had freetype.7.
>
> I'll try recompiling. (I think pkgsrc doesn't host texlive. Will have to
> compile outside pkgsrc. Hope, it will be easy as its dependencies are only
> on the base.)
>
> Mayuresh.
>


Re: texlive xelatex not working [ Was fontconfig : .so.2 not provided by 2.11.1?]

2016-01-21 Thread Greg Troxel

Mayuresh  writes:

> On Wed, Jan 20, 2016 at 08:43:33PM +0100, Martin Husemann wrote:
>> > amd64 xetex (from texlive) is now looking for freetype.7 and not finding
>> > it.
>> 
>> Then xetex has been compiled against the wrong libs.
>
> Possibly when the distribution was made, NetBSD 6.x was the latest
> version, which might have had freetype.7.

That should have been clear from the README in the binary distribution
(6 vs 7).  If not, plase file a bug with them.

Note that if you install NetBSD 6, and upgrade to 7, binaries that were
compiled against 6 will work fine.   Or you can put the old shlibs in
place from a 6 distribution.

However, you cannot in general successfully build anything on 7 against
things that were built for 6, because you will get mixed libraries,

> I'll try recompiling. (I think pkgsrc doesn't host texlive. Will have to
> compile outside pkgsrc. Hope, it will be easy as its dependencies are only
> on the base.)

$ ls -ld /usr/pkgsrc/*/*texlive*
-rw-r--r--  1 gdt   wheel  1137115288 Jul 22  2010 
/usr/pkgsrc/distfiles.wip/texlive-20100722-texmf.tar.xz
-rw-r--r--  1 gdt   wheel   179963948 May 30  2013 
/usr/pkgsrc/distfiles.wip/texlive-20130530-source.tar.xz
drwxr-xr-x  2 gdt   users 512 Mar 20  2014 
/usr/pkgsrc/distfiles/tex-texlive-docindex-32131
drwxr-xr-x  2 gdt   users 512 Jun  2  2015 
/usr/pkgsrc/distfiles/tex-texlive-docindex-36749
drwxr-xr-x  2 root  users 512 May  5  2010 
/usr/pkgsrc/distfiles/tex-texlive-scripts-2009.16483
drwxr-xr-x  2 root  users 512 Nov 29  2010 
/usr/pkgsrc/distfiles/tex-texlive-scripts-20268
drwxr-xr-x  2 gdt   users 512 Nov 27  2013 
/usr/pkgsrc/distfiles/tex-texlive-scripts-32115
drwxr-xr-x  2 gdt   users 512 Jun  2  2015 
/usr/pkgsrc/distfiles/tex-texlive-scripts-36716
drwxr-xr-x  2 gdt   users 512 Jun 14  2015 
/usr/pkgsrc/distfiles/tex-texlive-scripts-37482
drwxr-xr-x  2 gdt   users 512 Nov 27  2013 
/usr/pkgsrc/distfiles/tex-texlive.infra-31673
drwxr-xr-x  2 gdt   users 512 Mar  9  2015 
/usr/pkgsrc/distfiles/tex-texlive.infra-35898
drwxr-xr-x  2 gdt   users 512 Jun 14  2015 
/usr/pkgsrc/distfiles/tex-texlive.infra-37488
drwxr-xr-x  2 gdt   users 512 Sep  1 11:35 
/usr/pkgsrc/distfiles/tex-texlive.infra-37738
-rw-r--r--  1 gdt   users   179963948 Nov 13  2013 
/usr/pkgsrc/distfiles/texlive-20130530-source.tar.xz
-rw-r--r--  1 gdt   users41657688 May 24  2014 
/usr/pkgsrc/distfiles/texlive-20140525-source.tar.xz
-rw-r--r--  1 gdt   users45459552 May 20  2015 
/usr/pkgsrc/distfiles/texlive-20150521-source.tar.xz
drwxr-xr-x  3 gdt   wheel 512 Nov 30 02:30 
/usr/pkgsrc/meta-pkgs/texlive-collection-basic
drwxr-xr-x  3 gdt   wheel 512 Jun  2  2015 
/usr/pkgsrc/meta-pkgs/texlive-collection-basic-doc
drwxr-xr-x  3 gdt   wheel 512 Sep  1 10:07 
/usr/pkgsrc/meta-pkgs/texlive-collection-bibtexextra
drwxr-xr-x  3 gdt   wheel 512 Sep  1 10:07 
/usr/pkgsrc/meta-pkgs/texlive-collection-binextra
drwxr-xr-x  3 gdt   wheel 512 Jun 14  2015 
/usr/pkgsrc/meta-pkgs/texlive-collection-context
drwxr-xr-x  3 gdt   wheel 512 Sep  3 19:49 
/usr/pkgsrc/meta-pkgs/texlive-collection-fontsextra
drwxr-xr-x  3 gdt   wheel 512 Jun 14  2015 
/usr/pkgsrc/meta-pkgs/texlive-collection-fontsrecommended
drwxr-xr-x  3 gdt   wheel 512 Jun  2  2015 
/usr/pkgsrc/meta-pkgs/texlive-collection-fontsrecommended-doc
drwxr-xr-x  3 gdt   wheel 512 Jun 14  2015 
/usr/pkgsrc/meta-pkgs/texlive-collection-fontutils
drwxr-xr-x  3 gdt   wheel 512 Jun 14  2015 
/usr/pkgsrc/meta-pkgs/texlive-collection-formatsextra
drwxr-xr-x  3 gdt   wheel 512 Jun  2  2015 
/usr/pkgsrc/meta-pkgs/texlive-collection-games
drwxr-xr-x  3 gdt   wheel 512 Dec 14 13:18 
/usr/pkgsrc/meta-pkgs/texlive-collection-genericextra
drwxr-xr-x  3 gdt   wheel 512 Jun 14  2015 
/usr/pkgsrc/meta-pkgs/texlive-collection-genericrecommended
drwxr-xr-x  3 gdt   wheel 512 Jun  2  2015 
/usr/pkgsrc/meta-pkgs/texlive-collection-genericrecommended-doc
drwxr-xr-x  3 gdt   wheel 512 Jun 14  2015 
/usr/pkgsrc/meta-pkgs/texlive-collection-htmlxml
drwxr-xr-x  3 gdt   wheel 512 Jun 14  2015 
/usr/pkgsrc/meta-pkgs/texlive-collection-langafrican
drwxr-xr-x  3 gdt   wheel 512 Sep  1 10:07 
/usr/pkgsrc/meta-pkgs/texlive-collection-langarabic
drwxr-xr-x  3 gdt   wheel 512 Jun  2  2015 
/usr/pkgsrc/meta-pkgs/texlive-collection-langchinese
drwxr-xr-x  3 gdt   wheel 512 Sep  3 19:49 
/usr/pkgsrc/meta-pkgs/texlive-collection-langcjk
drwxr-xr-x  3 gdt   wheel 512 Jun  2  2015 
/usr/pkgsrc/meta-pkgs/texlive-collection-langcyrillic
drwxr-xr-x  3 gdt   wheel 512 Jun 14  2015 
/usr/pkgsrc/meta-pkgs/texlive-collection-langczechslovak
drwxr-xr-x  3 gdt   wheel 512 Sep  3 19:49 
/usr/pkgsrc/meta-pkgs/texlive-collection-langenglish
drwxr-xr-x  3 gdt   wheel 512 Jun  2  

Re: texlive xelatex not working [ Was fontconfig : .so.2 not provided by 2.11.1?]

2016-01-20 Thread Mayuresh
On Wed, Jan 20, 2016 at 08:43:33PM +0100, Martin Husemann wrote:
> > amd64 xetex (from texlive) is now looking for freetype.7 and not finding
> > it.
> 
> Then xetex has been compiled against the wrong libs.

Possibly when the distribution was made, NetBSD 6.x was the latest
version, which might have had freetype.7.

I'll try recompiling. (I think pkgsrc doesn't host texlive. Will have to
compile outside pkgsrc. Hope, it will be easy as its dependencies are only
on the base.)

Mayuresh.


Re: texlive xelatex not working [ Was fontconfig : .so.2 not provided by 2.11.1?]

2016-01-20 Thread Mayuresh
On Wed, Jan 20, 2016 at 08:51:28AM -0500, Greg Troxel wrote:
> 
> Mayuresh  writes:
> 
> > I installed latex from TexLive DVD (2015) on NetBSD 7.0 amd64.
> >
> > xelatex from above package seems to have dependency on fontconfig.so.2,
> > which doesn't seem to be available on NetBSD.
> 
> For the texlive dvd to make sense as a binary distribution, it has to
> specify an OS version and architecture depend only on the base system
> provide everything else it needs

I get your point. I did ldd in bin directory of texlive installation and
found nothing pointing to pkg. So looks like the distro is fine. I might
have messed up my base. But not sure how. The only operation that touched
the base was i386->amd64, but I believe it was alright.

> > [ A correction: I realize while I write this, when I installed from DVD, I
> > was having NetBSD i386, which I later changed to amd64 for no specific
> > reason. But I do not know whether it relates with above issue. ]
> 
> While you can run i386 binaries on amd64, you need the i386 libraries
> too.  Maybe you should install the amd64 version from texlive, because
> for Free software, there is little motivation not to run native.

I installed texlive amd64 now and the error is gone. Now I see ldd
pointing the erstwhile missing library to
/usr/X11R7/lib/libfontconfig.so.2

May be he library was there. I was (wrongly) searching in /usr/pkg/lib.
And the library must be amd64, hence the i386 installation was complaining
about it.

But now I libfreetype.so.7 as unmet dependency. I checked, I seem to have
i386 version of it.

I am unsure how x11 libraries ended up being a mix of amd64 and i386.

Will try a clean install of x11 sets.


Mayuresh


Re: texlive xelatex not working [ Was fontconfig : .so.2 not provided by 2.11.1?]

2016-01-20 Thread Mayuresh
On Wed, Jan 20, 2016 at 02:54:23PM +0100, Thomas Klausner wrote:
> On Wed, Jan 20, 2016 at 07:03:37PM +0530, Mayuresh wrote:
> > xelatex from above package seems to have dependency on fontconfig.so.2,
> > which doesn't seem to be available on NetBSD.
> 
> It looks like you forgot extracting the X sets when installing NetBSD.
> 
> The xbase set contains the library you're looking for:
> 
> ./xbase/shl.mi:./usr/X11R7/lib/libfontconfig.so.2.2 -unknown- 
>   xorg,compatx11file

Thanks, I found that amd64 version of above library was at above location,
but texlive was i386 and hencenot finding the file.

However somehow libfreetype.so.7 lying on my system is still i386. Will
reinstall and report.

Mayuresh.


Re: texlive xelatex not working [ Was fontconfig : .so.2 not provided by 2.11.1?]

2016-01-20 Thread Mayuresh
On Wed, Jan 20, 2016 at 09:12:40PM +0530, Mayuresh wrote:
> > It looks like you forgot extracting the X sets when installing NetBSD.
> > 
> However somehow libfreetype.so.7 lying on my system is still i386. Will
> reinstall and report.

[ Dropping pkgsrc from recipient list ]

I did a fresh reinstall of all x11 sets from NetBSD 7.0 amd64 installation
image.

# file /usr/X11R7/lib/libfreetype*
/usr/X11R7/lib/libfreetype.a:  current ar archive
/usr/X11R7/lib/libfreetype.so: symbolic link to `libfreetype.so.17.4.11'
/usr/X11R7/lib/libfreetype.so.17:  symbolic link to `libfreetype.so.17.4.11'
/usr/X11R7/lib/libfreetype.so.17.4.11: ELF 64-bit LSB shared object, x86-64, 
version 1 (SYSV), dynamically linked, for NetBSD 7.0, not stripped
/usr/X11R7/lib/libfreetype.so.7:   symbolic link to `libfreetype.so.7.3'
/usr/X11R7/lib/libfreetype.so.7.3: ELF 32-bit LSB shared object, Intel 
80386, version 1 (SYSV), dynamically linked, for NetBSD 6.1, not stripped
/usr/X11R7/lib/libfreetype_p.a:current ar archive
/usr/X11R7/lib/libfreetype_pic.a:  current ar archive

I seem to still have freetype.7 32 bit lurking around. Not sure why there
isn't a 64 bit version installed by fresh x11 set installation.

amd64 xetex (from texlive) is now looking for freetype.7 and not finding
it.

Mayuresh.


Re: texlive xelatex not working [ Was fontconfig : .so.2 not provided by 2.11.1?]

2016-01-20 Thread Martin Husemann
On Wed, Jan 20, 2016 at 10:28:19PM +0530, Mayuresh wrote:
> I seem to still have freetype.7 32 bit lurking around. Not sure why there
> isn't a 64 bit version installed by fresh x11 set installation.

Because libfreetype is at version 17 in -7.

> amd64 xetex (from texlive) is now looking for freetype.7 and not finding
> it.

Then xetex has been compiled against the wrong libs.

Martin


texlive xelatex not working [ Was fontconfig : .so.2 not provided by 2.11.1?]

2016-01-20 Thread Mayuresh
On Wed, Jan 20, 2016 at 08:02:20AM -0500, Greg Troxel wrote:
> Thomas Klausner  writes:
> > On Wed, Jan 20, 2016 at 11:46:36AM +0530, Mayuresh wrote:
> >> Isn't there supposed to be a correlation between package version and the
> >> library version - i.e. shouldn't package version 2.x imply .so.2?
> >
> > No, you cannot expect that in general.
> 
> And further, packages that try to make that work are doing the wrong
> thing, and cause extra trouble, becuase there are needless shlib
> version bumps (not due to an ABI break).

I installed latex from TexLive DVD (2015) on NetBSD 7.0 amd64.

xelatex from above package seems to have dependency on fontconfig.so.2,
which doesn't seem to be available on NetBSD.

Wonder how this situation is possible if the DVD consists of pre-compiled
binaries.

[ A correction: I realize while I write this, when I installed from DVD, I
was having NetBSD i386, which I later changed to amd64 for no specific
reason. But I do not know whether it relates with above issue. ]

Mayuresh


Re: texlive xelatex not working [ Was fontconfig : .so.2 not provided by 2.11.1?]

2016-01-20 Thread Greg Troxel

Mayuresh  writes:

> I installed latex from TexLive DVD (2015) on NetBSD 7.0 amd64.
>
> xelatex from above package seems to have dependency on fontconfig.so.2,
> which doesn't seem to be available on NetBSD.

For the texlive dvd to make sense as a binary distribution, it has to

   specify an OS version and architecture

   depend only on the base system

   provide everything else it needs

> [ A correction: I realize while I write this, when I installed from DVD, I
> was having NetBSD i386, which I later changed to amd64 for no specific
> reason. But I do not know whether it relates with above issue. ]

While you can run i386 binaries on amd64, you need the i386 libraries
too.  Maybe you should install the amd64 version from texlive, because
for Free software, there is little motivation not to run native.


signature.asc
Description: PGP signature


Re: texlive xelatex not working [ Was fontconfig : .so.2 not provided by 2.11.1?]

2016-01-20 Thread Thomas Klausner
On Wed, Jan 20, 2016 at 07:03:37PM +0530, Mayuresh wrote:
> xelatex from above package seems to have dependency on fontconfig.so.2,
> which doesn't seem to be available on NetBSD.

It looks like you forgot extracting the X sets when installing NetBSD.

The xbase set contains the library you're looking for:

./xbase/shl.mi:./usr/X11R7/lib/libfontconfig.so.2.2 -unknown-   
xorg,compatx11file

 Thomas