pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/55495: xfig dependency on netpbm



>Number:         55495
>Category:       pkg
>Synopsis:       xfig dependency on netpbm
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 17 05:00:00 +0000 2020
>Originator:     Stefan Schaeckeler
>Release:        NetBSD 9.0 / pkgsrc-2020Q2
>Organization:
>Environment:
NetBSD XXX 9.0 NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC 2020  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64

>Description:
Building graphics/xfig silently fails on missing pgmtopbm, pbmtoxbm and ppmtopgm resulting in an empty splash.xbm file.

--- w_library.o ---
depbase=`echo w_library.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; gcc -DHAVE_CONFIG_H -I. -I..  -I/usr/X11R7/include  -DXAW_INTERNATIONALIZATION -DNDEBUG -DXFIGLIBDIR="\"/usr/local/share/xfig\""  -DOBJLIBDIR="\"/usr/local/share/xfig/Libraries\"" -DXFIGDOCDIR="\"/usr/local/share/doc/xfig\""  -I/usr/local/include -I/usr/include -I/usr/X11R7/include  -march=native -O2 -pipe -D_FORTIFY_SOURCE=2 -I/usr/local/include -I/usr/include -I/usr/X11R7/include -MT w_library.o -MD -MP -MF $depbase.Tpo -c -o w_library.o w_library.c && mv -f $depbase.Tpo $depbase.Po
--- splash.xbm ---
Error in ghostcript or netpbm command
command was: gs -q -dSAFER -r80 -g631x211 -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sDEVICE=ppmraw -o - - | { ppmtopgm | pgmtopbm | pbmtoxbm; } 2>/var/tmp//f2derrorUsoN2I
Messages resulting:
  sh: pgmtopbm: not found
  sh: pbmtoxbm: not found
  sh: ppmtopgm: not found
--- w_listwidget.o ---
depbase=`echo w_listwidget.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; gcc -DHAVE_CONFIG_H -I. -I..  -I/usr/X11R7/include  -DXAW_INTERNATIONALIZATION -DNDEBUG -DXFIGLIBDIR="\"/usr/local/share/xfig\""  -DOBJLIBDIR="\"/usr/local/share/xfig/Libraries\"" -DXFIGDOCDIR="\"/usr/local/share/doc/xfig\""  -I/usr/local/include -I/usr/include -I/usr/X11R7/include  -march=native -O2 -pipe -D_FORTIFY_SOURCE=2 -I/usr/local/include -I/usr/include -I/usr/X11R7/include -MT w_listwidget.o -MD -MP -MF $depbase.Tpo -c -o w_listwidget.o w_listwidget.c && mv -f $depbase.Tpo $depbase.Po
--- w_modepanel.o ---



The picture file splash.xbm includes interestingly some #defines now not found in w_icons.c:

--- w_icons.o ---
depbase=`echo w_icons.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; gcc -DHAVE_CONFIG_H -I. -I..  -I/usr/X11R7/include  -DXAW_INTERNATIONALIZATION -DNDEBUG -DXFIGLIBDIR="\"/usr/local/share/xfig\""  -DOBJLIBDIR="\"/usr/local/share/xfig/Libraries\"" -DXFIGDOCDIR="\"/usr/local/share/doc/xfig\""  -I/usr/local/include -I/usr/include -I/usr/X11R7/include  -march=native -O2 -pipe -D_FORTIFY_SOURCE=2 -I/usr/local/include -I/usr/include -I/usr/X11R7/include -MT w_icons.o -MD -MP -MF $depbase.Tpo -c -o w_icons.o w_icons.c && mv -f $depbase.Tpo $depbase.Po
w_icons.c:3242:31: error: 'spl_bckgnd_width' undeclared here (not in a function); did you mean 'spl_bckgnd_ic'?
 icon_struct spl_bckgnd_ic = { spl_bckgnd_width, spl_bckgnd_height,
                               ^~~~~~~~~~~~~~~~
                               spl_bckgnd_ic
w_icons.c:3242:49: error: 'spl_bckgnd_height' undeclared here (not in a function); did you mean 'spl_bckgnd_width'?
 icon_struct spl_bckgnd_ic = { spl_bckgnd_width, spl_bckgnd_height,
                                                 ^~~~~~~~~~~~~~~~~
                                                 spl_bckgnd_width
w_icons.c:3243:17: error: 'spl_bckgnd_bits' undeclared here (not in a function); did you mean 'spl_bckgnd_width'?
          (char*)spl_bckgnd_bits };
                 ^~~~~~~~~~~~~~~
                 spl_bckgnd_width
>How-To-Repeat:
uninstall graphics/netpbm and build graphics/xfig.
>Fix:
Index: graphics/xfig/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/graphics/xfig/Makefile,v
retrieving revision 1.78
diff -u -p -r1.78 Makefile
--- graphics/xfig/Makefile      30 May 2020 18:11:22 -0000      1.78
+++ graphics/xfig/Makefile      17 Jul 2020 04:25:03 -0000
@@ -11,6 +11,8 @@ COMMENT=      CAD-like 2D drawing tool, good 
 # not completely, but near enough
 LICENSE=       mit
 
+BUILD_DEPENDS+=        netpbm-[0-9]*:../../graphics/netpbm
+
 DEPENDS+=      fig2dev-[0-9]*:../../print/fig2dev
 
 XAW_TYPE?=             3d



Home | Main Index | Thread Index | Old Index