Bug 172940 - Building print/ghostscript9 9.06_1 is failed
Summary: Building print/ghostscript9 9.06_1 is failed
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: Document Engineering Group (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-21 21:50 UTC by Andy
Modified: 2012-10-22 02:10 UTC (History)
0 users

See Also:


Attachments
file.diff (864 bytes, patch)
2012-10-21 21:50 UTC, Andy
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andy 2012-10-21 21:50:00 UTC
Error during updating print/ghostscript9 to version 9.06_1

There is misprint in the last update of patch 'files/patch-base-gs.mak'.
http://www.freebsd.org/cgi/cvsweb.cgi/ports/print/ghostscript9/files/patch-base-gs.mak?rev=1.2

Output of $(GEN_CONF) is redirected to stdout for awk-script processing, but `$(gconfxx_h)` still not removed from parameters.

This misprint prevent generation of `gconfxx.h` header file and subsequent creation of `ld.tr` file.

<pre>cc  -DHAVE_MKSTEMP   -DHAVE_FONTCONFIG -DHAVE_LIBIDN -DHAVE_SETLOCALE  -DHAVE_DBUS   -DHAVE_STRERROR -O -pipe -fPIC -DUPD_SIGNAL=0 -I.  -I/usr/ports/print/ghostscript9/work/ghostscript-9.06/lcms/include  -I/usr/local/include/libpng  -I/usr/ports/print/ghostscript9/work/ghostscript-9.06/openjpeg/libopenjpeg  -I/usr/ports/print/ghostscript9/work/ghostscript-9.06/openjpeg  -I/usr/local/include  -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Wdeclaration-after-statement -fno-builtin -fno-common -DHAVE_STDINT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMES_H=1 -DGX_COLOR_INDEX_TYPE="unsigned long long" -O -pipe -DUSE_LIBICONV_GNU -DUSE_LIBPAPER -I/usr/local/include   -DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\"/usr/local/lib/ghostscript/9.06\"  -I./soobj -I./base  -DWHICH_CMS="lcms2" -o ./soobj/gconfig.o -c ./soobj/gconfig.c
./soobj/gconfig.c:191: warning: no previous prototype for 'gs_lib_register_device'
./soobj/aux/echogs -w ./soobj/ldt.tr -n - cc -L/usr/local/lib -L/usr/local/lib -pthread -shared -Wl,-soname=libgs.so.9 -o ./sobin/libgs.so.9.06
./soobj/aux/echogs -a ./soobj/ldt.tr -n -s ./soobj/gsromfs0.o ./soobj/gs.o -s
cat ./soobj/ld.tr >>./soobj/ldt.tr
cat: ./soobj/ld.tr: No such file or directory
gmake[2]: *** [sobin/libgs.so.9.06] Error 1
gmake[2]: Leaving directory `/usr/ports/print/ghostscript9/work/ghostscript-9.06'
gmake[1]: *** [so-subtarget] Error 2
gmake[1]: Leaving directory `/usr/ports/print/ghostscript9/work/ghostscript-9.06'
gmake: *** [so] Error 2
*** Error code 1

Stop in /usr/ports/print/ghostscript9.
*** Error code 1

Stop in /usr/ports/print/ghostscript9.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20121021-52918-ibgcpm-0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=ghostscript9-9.05_5 UPGRADE_PORT_VER=9.05_5 make
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
        ! print/ghostscript9 (ghostscript9-9.05_5)      (new compiler error)
</pre>

Fix: Remove `$(gconfxx_h)` from parameters of the patch-base-gs.mak.

Patch attached with submission follows:
How-To-Repeat: cd /usr/ports/ghostscript9
make install
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-10-21 22:35:48 UTC
Responsible Changed
From-To: freebsd-ports-bugs->doceng

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Steve Wills freebsd_committer freebsd_triage 2012-10-22 02:10:49 UTC
State Changed
From-To: open->closed

Committed. Thanks!