Re: GUB / ghostscript

2021-08-11 Thread Jonas Hahnfeld via Discussions on LilyPond development
Am Mittwoch, dem 11.08.2021 um 08:32 +0200 schrieb Han-Wen Nienhuys:
> On Mon, Aug 9, 2021 at 12:23 PM Knut Petersen  wrote:
> > 
> > Hi everybody,
> > 
> > is there any reason that we still use very ancient versions of ghostscript 
> > for our installers prepared via GUB?
> 
> in gub, there is a comment.
> 
>   # ***FIXME*** Ghostscript 9.20 for freebsd-x86 raises seg fault.
> 
> at some point, Ghostscript moved from the GPL to the AGPL license, but
> I can't discover the exact version. AFAICT, 9.20 is still available
> under GPL though.

No, 9.20 is AGPL. According to the documentation, the switch happened
with version 9.07 in 2013:
https://www.ghostscript.com/doc/9.54.0/History9.htm#Version9.07

As to why GUB still has 9.20, the comment pointed to by Han-Wen is
probably one of the reasons (even though we're not producing freebsd-
x86 anymore because it was broken anyway). Generally speaking, cross-
compilation sucks and maybe nobody wanted to invest time upgrading to
newer versions and writing patches to make it compile and work...

Jonas


signature.asc
Description: This is a digitally signed message part


Re: GUB / ghostscript

2021-08-11 Thread Han-Wen Nienhuys
On Mon, Aug 9, 2021 at 12:23 PM Knut Petersen  wrote:
>
> Hi everybody,
>
> is there any reason that we still use very ancient versions of ghostscript 
> for our installers prepared via GUB?

in gub, there is a comment.

  # ***FIXME*** Ghostscript 9.20 for freebsd-x86 raises seg fault.

at some point, Ghostscript moved from the GPL to the AGPL license, but
I can't discover the exact version. AFAICT, 9.20 is still available
under GPL though.

-- 
Han-Wen Nienhuys - hanw...@gmail.com - http://www.xs4all.nl/~hanwen



GUB / ghostscript

2021-08-09 Thread Knut Petersen

Hi everybody,

is there any reason that we still use very ancient versions of ghostscript for 
our installers prepared via GUB?

A number of vulnerabilities have been found, and it's easy to find detailed 
descriptions of exploits ... see e.g. 
https://www.openwall.com/lists/oss-security/2019/01/23/5

Knut




Re: GUB Ghostscript 9.21

2017-06-25 Thread Masamichi Hosoda
>> Phil Holmes:
>> ...
>>> /usr/bin/ld: cannot find -lfreetype
>> ...
>> ld cannot find libfreetype.so
>> Do you have it installed ?
>> Try this:
>> $ locate libfreetype.so
>> ...
>> /usr/lib/i386-linux-gnu/libfreetype.so
>> /usr/lib/i386-linux-gnu/libfreetype.so.6
>> /usr/lib/i386-linux-gnu/libfreetype.so.6.8.1
>> ...
>> 
> 
> I get:
> 
> /home/gub/NewGub/gub/target/freebsd-64/root/usr/lib/libfreetype.so
> /home/gub/NewGub/gub/target/freebsd-64/root/usr/lib/libfreetype.so.18
> /home/gub/NewGub/gub/target/freebsd-x86/root/usr/lib/libfreetype.so
> /home/gub/NewGub/gub/target/freebsd-x86/root/usr/lib/libfreetype.so.18
> /home/gub/NewGub/gub/target/linux-64/root/usr/lib/libfreetype.so
> /home/gub/NewGub/gub/target/linux-64/root/usr/lib/libfreetype.so.6
> /home/gub/NewGub/gub/target/linux-64/root/usr/lib/libfreetype.so.6.12.5
> /home/gub/NewGub/gub/target/linux-ppc/root/usr/lib/libfreetype.so
> /home/gub/NewGub/gub/target/linux-ppc/root/usr/lib/libfreetype.so.6
> /home/gub/NewGub/gub/target/linux-ppc/root/usr/lib/libfreetype.so.6.12.5
> /home/gub/NewGub/gub/target/linux-x86/root/usr/lib/libfreetype.so
> /home/gub/NewGub/gub/target/linux-x86/root/usr/lib/libfreetype.so.6
> /home/gub/NewGub/gub/target/linux-x86/root/usr/lib/libfreetype.so.6.12.5
> /home/gub/NewGub/gub/target/tools/root/usr/lib/libfreetype.so
> /home/gub/NewGub/gub/target/tools/root/usr/lib/libfreetype.so.6
> /home/gub/NewGub/gub/target/tools/root/usr/lib/libfreetype.so.6.12.5
> /usr/lib/i386-linux-gnu/libfreetype.so.6
> /usr/lib/i386-linux-gnu/libfreetype.so.6.11.1

If I understand correctly,
your system is Ubuntu 14.04 LTS 32 bit (i386-linux-gnu).
It seems that your system missing this file:
/usr/lib/i386-linux-gnu/libfreetype.so

So `ld` cannot find `-lfreetype`.

My system (Ubuntu 14.04 LTS 64 bit, x86_64-linux-gnu) has this file:
/usr/lib/x86_64-linux-gnu/libfreetype.so

So `ld` can find `-lfreetype`.
There is no problem.

I cannot reproduce the issue. However, I've created a patch.
Would you try it?
https://github.com/gperciva/gub/pull/40

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: GUB Ghostscript 9.21

2017-06-25 Thread Phil Holmes
- Original Message - 
From: <k...@aspodata.se>

To: <lilypond-devel@gnu.org>
Sent: Sunday, June 25, 2017 12:13 PM
Subject: Re: GUB Ghostscript 9.21



Phil Holmes:
...

/usr/bin/ld: cannot find -lfreetype

...

ld cannot find libfreetype.so

Do you have it installed ?
Try this:

$ locate libfreetype.so
...
/usr/lib/i386-linux-gnu/libfreetype.so
/usr/lib/i386-linux-gnu/libfreetype.so.6
/usr/lib/i386-linux-gnu/libfreetype.so.6.8.1
...



I get:

/home/gub/NewGub/gub/target/freebsd-64/root/usr/lib/libfreetype.so
/home/gub/NewGub/gub/target/freebsd-64/root/usr/lib/libfreetype.so.18
/home/gub/NewGub/gub/target/freebsd-x86/root/usr/lib/libfreetype.so
/home/gub/NewGub/gub/target/freebsd-x86/root/usr/lib/libfreetype.so.18
/home/gub/NewGub/gub/target/linux-64/root/usr/lib/libfreetype.so
/home/gub/NewGub/gub/target/linux-64/root/usr/lib/libfreetype.so.6
/home/gub/NewGub/gub/target/linux-64/root/usr/lib/libfreetype.so.6.12.5
/home/gub/NewGub/gub/target/linux-ppc/root/usr/lib/libfreetype.so
/home/gub/NewGub/gub/target/linux-ppc/root/usr/lib/libfreetype.so.6
/home/gub/NewGub/gub/target/linux-ppc/root/usr/lib/libfreetype.so.6.12.5
/home/gub/NewGub/gub/target/linux-x86/root/usr/lib/libfreetype.so
/home/gub/NewGub/gub/target/linux-x86/root/usr/lib/libfreetype.so.6
/home/gub/NewGub/gub/target/linux-x86/root/usr/lib/libfreetype.so.6.12.5
/home/gub/NewGub/gub/target/tools/root/usr/lib/libfreetype.so
/home/gub/NewGub/gub/target/tools/root/usr/lib/libfreetype.so.6
/home/gub/NewGub/gub/target/tools/root/usr/lib/libfreetype.so.6.12.5
/usr/lib/i386-linux-gnu/libfreetype.so.6
/usr/lib/i386-linux-gnu/libfreetype.so.6.11.1




--
Phil Holmes

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: GUB Ghostscript 9.21

2017-06-25 Thread karl
Phil Holmes:
...
> /usr/bin/ld: cannot find -lfreetype
...

ld cannot find libfreetype.so

Do you have it installed ?
Try this:

$ locate libfreetype.so
...
/usr/lib/i386-linux-gnu/libfreetype.so
/usr/lib/i386-linux-gnu/libfreetype.so.6
/usr/lib/i386-linux-gnu/libfreetype.so.6.8.1
...

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57



___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: GUB Ghostscript 9.21

2017-06-25 Thread Phil Holmes

When trying to build Gub today, I got the following error:

invoking cd /home/gub/NewGub/gub/target/tools/build/ghostscript-9.21 && make 
CC=cc CCAUX=cc C_INCLUDE_PATH= CFLAGS= CPPFLAGS= GCFLAGS= LIBRARY_PATH= 
obj/aux/genconf obj/aux/echogs obj/aux/genarch obj/arch.h
cc -O2 -I/home/gub/NewGub/gub/target/tools/src/ghostscript-9.21/base -o 
./obj/aux/genconf 
/home/gub/NewGub/gub/target/tools/src/ghostscript-9.21/base/genconf.c -lfreetype 
-lm -ldl -rdynamic

/usr/bin/ld: cannot find -lfreetype
collect2: error: ld returned 1 exit status
make: *** [obj/aux/genconf] Error 1
Command barfed: cd /home/gub/NewGub/gub/target/tools/build/ghostscript-9.21 
&& make CC=cc CCAUX=cc C_INCLUDE_PATH= CFLAGS= CPPFLAGS= GCFLAGS= 
LIBRARY_PATH= obj/aux/genconf obj/aux/echogs obj/aux/genarch obj/arch.h


Please advise.


--
Phil Holmes


- Original Message - 
From: "Masamichi Hosoda" <truer...@trueroad.jp>

To: <m...@philholmes.net>
Cc: <truer...@trueroad.jp>
Sent: Saturday, June 24, 2017 3:02 AM
Subject: GUB Ghostscript 9.21



Phil,

Would you merge this pr and try following command before next `make 
lilypond'?

https://github.com/gperciva/gub/pull/39

$ git fetch orign
$ git checkout master
$ git merge origin/master

Thanks.




___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel