Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jan 2009 10:07:00 +0100
From:      Peter Czanik <pczanik@fang.fa.gau.hu>
To:        ports@freebsd.org
Subject:   graphics/png
Message-ID:  <496B0834.5000704@fang.fa.gau.hu>

next in thread | raw e-mail | index | archive | help
Hello,
Recently graphics/png can't be packaged:

libpng passes test
===>  Installing for png-1.2.34
===>   Generating temporary packing list
install -o root -g wheel -m 555  libpng-config /usr/local/bin
ln -sf libpng-config /usr/local/bin/libpng12-config
install -C -o root -g wheel -m 444   libpng.a /usr/local/lib
install -s -o root -g wheel -m 444     libpng.so.5 /usr/local/lib
ln -fs libpng.so.5 /usr/local/lib/libpng.so
/usr/local/include/libpng/../png.h -> libpng/png.h
/usr/local/include/libpng/../pngconf.h -> libpng/pngconf.h
/usr/bin/sed -e 's|@PREFIX@|/usr/local|'
/usr/tmp/usr/ports/graphics/png/work/libpng-1.2.34/scripts/libpng.pc.in 
> /usr/tmp/usr/ports/graphics/png/work/libpng-1.2.34/scripts/libpng.pc
install  -o root -g wheel -m 444
/usr/tmp/usr/ports/graphics/png/work/libpng-1.2.34/scripts/libpng.pc 
/usr/local/libdata/pkgconfig/libpng12.pc
/bin/ln -sf libpng12.pc /usr/local/libdata/pkgconfig/libpng.pc
===>   Running ldconfig
/sbin/ldconfig -m /usr/local/lib
===>   Registering installation for png-1.2.34
===>  Building package for png-1.2.34
tar: man/man3/libpng.3.gz: Cannot stat: No such file or directory
tar: man/man3/libpngpf.3.gz: Cannot stat: No such file or directory
tar: man/man5/png.5.gz: Cannot stat: No such file or directory
tar: include/libpng/png.h: Cannot stat: No such file or directory
tar: include/libpng/pngconf.h: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.
pkg_create: make_dist: tar command failed with code 256
Creating package /usr/packages/All/png-1.2.34.tbz
Registering depends:.
Creating bzip'd tar ball in '/usr/packages/All/png-1.2.34.tbz'
*** Error code 1

Stop in /usr/ports/graphics/png.
*** Error code 1

The following ugly hack serves me now as a workaround, but I'm quite
sure, that it is not a proper one :)

# diff -u Makefile~ Makefile
--- Makefile~   2009-01-12 08:53:16.000000000 +0100
+++ Makefile    2009-01-12 08:53:16.000000000 +0100
@@ -30,8 +30,8 @@                                 
 MAKE_ENV=      SHLIB_VER="${SHLIB_VER}"          
 PLIST_SUB=     SHLIB_VER="${SHLIB_VER}"          
                                                  
-MAN3=          libpng.3 libpngpf.3               
-MAN5=          png.5                             
+#MAN3=         libpng.3 libpngpf.3               
+#MAN5=         png.5
 MANCOMPRESSED= maybe

 .include <bsd.port.pre.mk>
# diff -u pkg-plist~ pkg-plist
--- pkg-plist~  2009-01-12 08:55:42.000000000 +0100
+++ pkg-plist   2009-01-12 08:55:42.000000000 +0100
@@ -1,10 +1,10 @@
 @unexec rm -f %D/bin/libpng12-config
 bin/libpng-config
 @exec ln -sf %f %D/bin/libpng12-config
-include/libpng/png.h
+include/png.h
 @exec ln -sf libpng/%f %D/include/%f
 @unexec rm -f %D/include/%f
-include/libpng/pngconf.h
+include/pngconf.h
 @exec ln -sf libpng/%f %D/include/%f
 @unexec rm -f %D/include/%f
 lib/libpng.a
#

Bye,
CzP



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?496B0834.5000704>