Subject: pkg/36081: emulators/suse100_base breaks on FreeBSD 6.2
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <alnsn@yandex.ru>
List: pkgsrc-bugs
Date: 03/24/2007 21:55:02
>Number: 36081
>Category: pkg
>Synopsis: emulators/suse100_base breaks on FreeBSD 6.2
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Mar 24 21:55:02 +0000 2007
>Originator: Alexander Nasonov
>Release:
>Organization:
>Environment:
FreeBSD fbx1000 6.2-STABLE FreeBSD 6.2-STABLE #0: Fri Feb 2 01:35:39 MSK 2007 alnsn@fbx1000:/home/obj/MAKEOBJDIRPREFIX/usr/src/sys/GENERIC i386
>Description:
Installation of emulators/suse100_base breaks on FreeBSD 6.2 because there is no /dev/MAKEDEV file on devfs. See the patch.
Another problem is that $BRANDELF is undefined and I had to set it during the installion.
>How-To-Repeat:
cd emulators/suse100_base
bmake install
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/emulators/suse100_base/Makefile,v
retrieving revision 1.8
diff -u -r1.8 Makefile
--- Makefile 2 Mar 2007 10:35:04 -0000 1.8
+++ Makefile 24 Mar 2007 21:51:07 -0000
@@ -53,12 +53,16 @@
${INSTALL_SCRIPT} $$FILE ${PREFIX}/sbin/`basename $$FILE .sh`; \
done
${INSTALL_DATA_DIR} ${EMULDIR}/dev
- ${INSTALL_DATA} /dev/MAKEDEV ${EMULDIR}/dev
+ if [ -f /dev/MAKEDEV ]; then \
+ ${INSTALL_DATA} /dev/MAKEDEV ${EMULDIR}/dev; \
+ fi
if [ -f /dev/MAKEDEV.subr ]; then \
${INSTALL_DATA} /dev/MAKEDEV.subr ${EMULDIR}/dev; \
fi
- cd ${EMULDIR}/dev && ${SH} ./MAKEDEV std audio
- cd ${EMULDIR}/dev && ${LN} -fs sound dsp
+ if [ -f /dev/MAKEDEV ]; then \
+ cd ${EMULDIR}/dev && ${SH} ./MAKEDEV std audio; \
+ cd ${EMULDIR}/dev && ${LN} -fs sound dsp; \
+ fi
@${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
${RPM2PKG} ${RPM2PKGARGS}
${ECHO} "@dirrm ${EMULSUBDIR}" >>${PLIST_SRC}