Bug 141798 - print/ghostscript8 (8.70) doesn't build
Summary: print/ghostscript8 (8.70) doesn't build
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: doceng
Depends on:
Reported: 2009-12-20 10:50 UTC by Naveen Nathan
Modified: 2009-12-20 17:10 UTC (History)
0 users

See Also:

Makefile.patch (730 bytes, patch)
2009-12-20 11:51 UTC, Naveen Nathan
no flags Details | Diff
Makefile.patch (929 bytes, patch)
2009-12-20 13:30 UTC, Naveen Nathan
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Naveen Nathan 2009-12-20 10:50:02 UTC
Trying to build the ghostscript8-nox11 from latest port-tree (version 8.70).

Output of ``make install'':

[root@kunitoki /usr/ports/print/ghostscript8-nox11]# make install
===>  Building for ghostscript8-nox11-8.70
/bin/ln -s -f /usr/ports/print/ghostscript8-nox11/work/ghostscript-8.70/epag-3.09/gdevepag.c /usr/ports/print/ghostscript8-nox11/work/ghostscript-8.70/base
/bin/mkdir -p /usr/ports/print/ghostscript8-nox11/work/ghostscript-8.70/obj
/bin/mkdir -p /usr/ports/print/ghostscript8-nox11/work/ghostscript-8.70/bin
/bin/mkdir -p /usr/ports/print/ghostscript8-nox11/work/ghostscript-8.70/freetype/include
/bin/ln -s -f /usr/local/include/ft2build.h  /usr/ports/print/ghostscript8-nox11/work/ghostscript-8.70/freetype/include/ft2build.h
/bin/ln -s -f /usr/local/include/freetype2/freetype  /usr/ports/print/ghostscript8-nox11/work/ghostscript-8.70/freetype/include/freetype
/bin/mkdir -p /usr/ports/print/ghostscript8-nox11/work/ghostscript-8.70/freetype/objs
/bin/ln -s -f /usr/local/lib/libfreetype.so  /usr/ports/print/ghostscript8-nox11/work/ghostscript-8.70/freetype/objs/freetype214MT_D.so
/bin/mv /usr/ports/print/ghostscript8-nox11/work/ghostscript-8.70/base/write_t[12].[ch]  /usr/ports/print/ghostscript8-nox11/work/ghostscript-8.70/base/wrfont.[ch]  /usr/ports/print/ghostscript8-nox11/work/ghostscript-8.70/psi
mv: rename /usr/ports/print/ghostscript8-nox11/work/ghostscript-8.70/base/write_t[12].[ch] to /usr/ports/print/ghostscript8-nox11/work/ghostscript-8.70/psi/write_t[12].[ch]: No such file or directory
mv: rename /usr/ports/print/ghostscript8-nox11/work/ghostscript-8.70/base/wrfont.[ch] to /usr/ports/print/ghostscript8-nox11/work/ghostscript-8.70/psi/wrfont.[ch]: No such file or directory
*** Error code 1

Stop in /usr/ports/print/ghostscript8-nox11.
*** Error code 1

Stop in /usr/ports/print/ghostscript8-nox11.


It seems in ghostscript 8.70, the files already exist in the psi directory and no longer need to be moved.

[root@kunitoki /usr/ports/print/ghostscript8/work]# tar jtvf /usr/ports/distfiles/ghostscript/ghostscript-8.70.tar.bz2  | egrep 'write_t[12].[ch]|wrfont.[ch]'
-rw-rw-r--  0 giles  giles     951 Feb 10  2009 ghostscript-8.70/psi/write_t1.h
-rw-rw-r--  0 giles  giles   10564 May 15  2009 ghostscript-8.70/psi/write_t1.c
-rw-rw-r--  0 giles  giles     945 Feb 10  2009 ghostscript-8.70/psi/write_t2.h
-rw-rw-r--  0 giles  giles   14899 May 11  2009 ghostscript-8.70/psi/write_t2.c
-rw-rw-r--  0 giles  giles    2017 Feb 10  2009 ghostscript-8.70/psi/wrfont.c
-rw-rw-r--  0 giles  giles    1373 Feb 10  2009 ghostscript-8.70/psi/wrfont.h

So all that is required is to remove the following line in the print/ghostscript8/Makefile:

${CP} ${WRKSRC}/base/write_t[12].[ch] \
${WRKSRC}/base/wrfont.[ch] \
How-To-Repeat: cd /usr/ports/print/ghostscript8-nox11
make install
Comment 1 Naveen Nathan 2009-12-20 11:51:04 UTC
I ran across further build issues where the build process was unable
to find the freetype2 header files while compiling the FAPI
(freetype bridge) module.

Attached is a patch fixing both issues: removing the mv line, and
updating the location of the freetype header files when building
the freetype bridge module.

Naveen Nathan

To understand the human mind, understand self-deception. - Anon
Comment 2 Naveen Nathan 2009-12-20 13:30:36 UTC
Actually, the last patch didn't work. I'm attaching a new patch that
appears to work correctly. I tested it with FT_BRIDGE both enabled
and disabled to make sure both versions build without issue.

Naveen Nathan

To understand the human mind, understand self-deception. - Anon
Comment 3 Mark Linimon freebsd_committer 2009-12-20 16:22:22 UTC
Responsible Changed
From-To: freebsd-ports-bugs->docengg

Fix synopsis and assign.
Comment 4 Mark Linimon freebsd_committer 2009-12-20 16:31:33 UTC
Responsible Changed
From-To: docengg->doceng

Sigh.  I'm really going to take great joy in smashing this kbd 
when my new one arrives ...
Comment 5 dfilter service freebsd_committer 2009-12-20 16:59:13 UTC
hrs         2009-12-20 16:59:04 UTC

  FreeBSD ports repository

  Modified files:
    print/ghostscript8   Makefile 
  Fix build when WITH_FT_BRIDGE=1.
  Reported by:    Naveen Nathan
  PR:             ports/141798
  Revision  Changes    Path
  1.191     +6 -6      ports/print/ghostscript8/Makefile
cvs-all@freebsd.org mailing list
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 6 Hiroki Sato freebsd_committer 2009-12-20 16:59:38 UTC
State Changed
From-To: open->closed

Committed.  Thank you for the report!