Hi all, setting MANZ=yes in my mk.conf broke the png package: the manpages are created as cat3/libpng.0.gz (as MANZ=yes), but the package build expects cat3/libpng.0 at al.
(see the XXX places in the script) # uname -a OpenBSD dell.stare.cz 4.2 GENERIC#1 i386 # cat /etc/mk.conf MANZ = YES # cd /usr/ports/graphics/png # make ===> Checking files for png-1.2.18 >> libpng-1.2.18.tar.gz doesn't seem to exist on this system. >> Fetch >> http://easynews.dl.sourceforge.net/sourceforge/libpng/libpng-1.2.18.tar.gz. [...] >> Size matches for /usr/ports/distfiles/libpng-1.2.18.tar.gz >> (SHA256) libpng-1.2.18.tar.gz: OK ===> Extracting for png-1.2.18 ===> Patching for png-1.2.18 ===> Configuring for png-1.2.18 ===> Building for png-1.2.18 ( cat scripts/libpng-config-head.in; echo prefix=\"/usr/local\"; echo I_opts=\"-I/usr/local/include/libpng\"; echo L_opts=\"-L/usr/local/lib\"; echo R_opts=\"-Wl,-rpath,/usr/local/lib\"; echo libs=\"-lpng -lz -lm\"; cat scripts/libpng-config-body.in ) > libpng-config chmod +x libpng-config cat scripts/libpng.pc.in | sed -e [EMAIL PROTECTED]@!/usr/local! -e [EMAIL PROTECTED]@!/usr/local/bin! -e [EMAIL PROTECTED]@!/usr/local/lib! -e [EMAIL PROTECTED]@!/usr/local/include/libpng! -e [EMAIL PROTECTED]@!1.2.18!> libpng.pc cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c png.c -o png.o cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c pngerror.c -o pngerror.o pngerror.c:116: warning: duplicate `const' cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c pnggccrd.c -o pnggccrd.o cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c pngget.c -o pngget.o cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c pngmem.c -o pngmem.o cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c pngpread.c -o pngpread.o cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c pngread.c -o pngread.o cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c pngrio.c -o pngrio.o cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c pngrtran.c -o pngrtran.o cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c pngrutil.c -o pngrutil.o cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c pngset.c -o pngset.o cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c pngtrans.c -o pngtrans.o pngtrans.c:255: warning: duplicate `const' pngtrans.c:290: warning: duplicate `const' pngtrans.c:325: warning: duplicate `const' cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c pngwio.c -o pngwio.o cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c pngwrite.c -o pngwrite.o cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c pngwtran.c -o pngwtran.o cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c pngwutil.c -o pngwutil.o building standard png library ranlib libpng.a cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c -fpic -DPIC png.c -o png.so cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c -fpic -DPIC pngerror.c -o pngerror.so pngerror.c:116: warning: duplicate `const' cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c -fpic -DPIC pnggccrd.c -o pnggccrd.so cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c -fpic -DPIC pngget.c -o pngget.so cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c -fpic -DPIC pngmem.c -o pngmem.so cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c -fpic -DPIC pngpread.c -o pngpread.so cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c -fpic -DPIC pngread.c -o pngread.so cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c -fpic -DPIC pngrio.c -o pngrio.so cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c -fpic -DPIC pngrtran.c -o pngrtran.so cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c -fpic -DPIC pngrutil.c -o pngrutil.so cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c -fpic -DPIC pngset.c -o pngset.so cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c -fpic -DPIC pngtrans.c -o pngtrans.so pngtrans.c:255: warning: duplicate `const' pngtrans.c:290: warning: duplicate `const' pngtrans.c:325: warning: duplicate `const' cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c -fpic -DPIC pngwio.c -o pngwio.so cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c -fpic -DPIC pngwrite.c -o pngwrite.so cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c -fpic -DPIC pngwtran.c -o pngwtran.so cc -O2 -pipe -Wall -I/usr/ports/graphics/png/w-png-1.2.18/libpng-1.2.18 -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD -nostdinc -idirafter /usr/include -c -fpic -DPIC pngwutil.c -o pngwutil.so building shared object png library ranlib libpng_pic.a building shared png library (version 5.2) cc -shared -fpic -o libpng.so.5.2 `lorder png.so pngerror.so pnggccrd.so pngget.so pngmem.so pngpread.so pngread.so pngrio.so pngrtran.so pngrutil.so pngset.so pngtrans.so pngwio.so pngwrite.so pngwtran.so pngwutil.so|tsort -q` nroff -Tascii -mandoc libpng.3 > libpng.cat3 nroff -Tascii -mandoc libpngpf.3 > libpngpf.cat3 nroff -Tascii -mandoc png.5 > png.cat5 # make install clean ===> Faking installation for png-1.2.18 if [ ! -d /usr/ports/graphics/png/w-png-1.2.18/fake-i386/usr/local/include/libpng ]; then install -d -o root -g wheel /usr/ports/graphics/png/w-png-1.2.18/fake-i386/usr/local/include/libpng; fi if [ ! -d /usr/ports/graphics/png/w-png-1.2.18/fake-i386/usr/local/lib ]; then install -d -o root -g wheel /usr/ports/graphics/png/w-png-1.2.18/fake-i386/usr/local/lib; fi if [ ! -d /usr/ports/graphics/png/w-png-1.2.18/fake-i386/usr/local/lib/debug ]; then install -d -o root -g wheel /usr/ports/graphics/png/w-png-1.2.18/fake-i386/usr/local/lib/debug; fi if [ ! -d /usr/ports/graphics/png/w-png-1.2.18/fake-i386/usr/local/man/cat3 ]; then install -d -o root -g wheel /usr/ports/graphics/png/w-png-1.2.18/fake-i386/usr/local/man/cat3; fi if [ ! -d /usr/ports/graphics/png/w-png-1.2.18/fake-i386/usr/local/man/cat5 ]; then install -d -o root -g wheel /usr/ports/graphics/png/w-png-1.2.18/fake-i386/usr/local/man/cat5; fi if [ ! -d /usr/ports/graphics/png/w-png-1.2.18/fake-i386/usr/local/share/doc/png ]; then install -d -o root -g wheel /usr/ports/graphics/png/w-png-1.2.18/fake-i386/usr/local/share/doc/png; fi if [ ! -d /usr/ports/graphics/png/w-png-1.2.18/fake-i386/usr/local/lib/pkgconfig ]; then install -d -o root -g wheel /usr/ports/graphics/png/w-png-1.2.18/fake-i386/usr/local/lib/pkgconfig; fi install -c -o root -g bin -m 600 libpng.a /usr/ports/graphics/png/w-png-1.2.18/fake-i386/usr/local/lib/libpng.a ranlib -t /usr/ports/graphics/png/w-png-1.2.18/fake-i386/usr/local/lib/libpng.a chmod 444 /usr/ports/graphics/png/w-png-1.2.18/fake-i386/usr/local/lib/libpng.a install -c -o root -g bin -m 600 libpng_pic.a /usr/ports/graphics/png/w-png-1.2.18/fake-i386/usr/local/lib ranlib -t /usr/ports/graphics/png/w-png-1.2.18/fake-i386/usr/local/lib/libpng_pic.a chmod 444 /usr/ports/graphics/png/w-png-1.2.18/fake-i386/usr/local/lib/libpng_pic.a install -c -o root -g bin -m 444 libpng.so.5.2 /usr/ports/graphics/png/w-png-1.2.18/fake-i386/usr/local/lib install -c -o root -g bin -m 555 libpng-config /usr/ports/graphics/png/w-png-1.2.18/fake-i386/usr/local/bin install -c -o root -g bin -m 444 png.h pngconf.h /usr/ports/graphics/png/w-png-1.2.18/fake-i386/usr/local/include/libpng install -c -o root -g bin -m 444 libpng.pc /usr/ports/graphics/png/w-png-1.2.18/fake-i386/usr/local/lib/pkgconfig install -c -o root -g bin -m 444 libpng-1.2.18.txt /usr/ports/graphics/png/w-png-1.2.18/fake-i386/usr/local/share/doc/png # XXX libpng.0.gz is created in the fake, as per MANZ=yes gzip -cf libpng.cat3 > /usr/ports/graphics/png/w-png-1.2.18/fake-i386/usr/local/man/cat3/libpng.0.gz gzip -cf libpngpf.cat3 > /usr/ports/graphics/png/w-png-1.2.18/fake-i386/usr/local/man/cat3/libpngpf.0.gz gzip -cf png.cat5 > /usr/ports/graphics/png/w-png-1.2.18/fake-i386/usr/local/man/cat5/png.0.gz ===> Building package for png-1.2.18 Create /usr/ports/packages/i386/all/png-1.2.18.tgz Switching to /usr/ports/graphics/png/pkg/PFRAG.shared # XXX libpng.0 does not exist now; but it's libpng.0.gz that we want Error in package: /usr/ports/graphics/png/w-png-1.2.18/fake-i386//usr/local/man/cat3/libpng.0 does not exist Error in package: /usr/ports/graphics/png/w-png-1.2.18/fake-i386//usr/local/man/cat3/libpngpf.0 does not exist Error in package: /usr/ports/graphics/png/w-png-1.2.18/fake-i386//usr/local/man/cat5/png.0 does not exist ===> Cleaning for png-1.2.18 rm -f /usr/ports/packages/i386/all/png-1.2.18.tgz /usr/ports/packages/i386/ftp/png-1.2.18.tgz /usr/ports/packages/i386/cdrom/png-1.2.18.tgz *** Error code 1 Stop in /usr/ports/graphics/png (line 1373 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/graphics/png (line 1861 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/graphics/png (line 1403 of /usr/ports/infrastructure/mk/bsd.port.mk). Without the MANZ=yes setting, the port builds a package and installs just fine (although after commenting out MANZ, I need to clean and rebuild the port, because it's already fake'd with MANZ.) Unfortunately, I know shit about the inside of ports, and don't attach the (probably trivial) diff. My naive-grep suspects would be ./patches/patch-scripts_makefile_openbsd: MAN= libpng.3 libpngpf.3 png.5 ./pkg/PLIST:@man man/cat3/libpng.0 and analogously for the other manpages of graphics/png. Jan
