Subject: Linux emulation & LDD
To: None <tech-pkg@netbsd.org>
From: David Brownlee <abs@absd.org>
List: tech-pkg
Date: 12/23/2004 20:22:02
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
--Boundary_(ID_2NYLNv67yWcKVP02rvuWAw)
Content-id: <Pine.NEB.4.61.0412232022011.431@localhost.>
Content-type: TEXT/PLAIN; CHARSET=US-ASCII; format=flowed
Content-transfer-encoding: 7BIT
I'm looking at updating the setiathome package to use the Linux
binary on NetBSD.
DEPENDS+= suse_x11>=6.3:../../emulators/${SUSE_DIR_PREFIX}_x11
.include "../../emulators/suse_linux/Makefile.application"
results in it using the NetBSD ldd against the Linux binaries.
I see code to set LDD=${TRUE} but only if RPMFILES is defined.
LDD=${PREFIX}/emul/linux/usr/bin/ldd
makes everything work, including checking that all the relevant
Linx libaries are available.
Is there any reason why suse_linux/Makefile.application shouldn't
set LDD to ${LINUX_LDD} by default? Obviously this means exposing
LINUX_LDD and EMULSUBDIR to Makefile.application, but that
should be OK
--
David Brownlee -- abs@absd.org
--Boundary_(ID_2NYLNv67yWcKVP02rvuWAw)
Content-id: <Pine.NEB.4.61.0412231457160.204@localhost.>
Content-type: TEXT/PLAIN; CHARSET=US-ASCII; NAME=Makefile
Content-transfer-encoding: 7BIT
Content-disposition: ATTACHMENT; FILENAME=Makefile
Content-description:
# $NetBSD: Makefile,v 1.13 2004/11/12 14:41:47 sketch Exp $
#
DISTNAME= ${PKGNAME_NOREV}
PKGNAME= setiathome-3.08
CATEGORIES= misc
MASTER_SITES= ftp://alien.ssl.berkeley.edu/pub/ \
ftp://setidata.ssl.berkeley.edu/pub/
EXTRACT_SUFX= .tar
MAINTAINER= abs@NetBSD.org
HOMEPAGE= http://setiathome.ssl.berkeley.edu/
COMMENT= Search for Extraterrestrial Intelligence - at home
.include "../../mk/bsd.prefs.mk"
# Now rework distname based on OPSYS and MACHINE_ARCH. Does not handle
# rejecting older versions of operating systems
#
.if ${OPSYS} == "NetBSD"
#
.if ${MACHINE_ARCH} == "i386"
DISTNAME= ${PKGNAME_NOREV}.i686-pc-linux-gnu
DEPENDS+= suse_x11>=6.3:../../emulators/${SUSE_DIR_PREFIX}_x11
.include "../../emulators/suse_linux/Makefile.application"
LDD=${PREFIX}/emul/linux/usr/bin/ldd
.else
DISTNAME= ${PKGNAME_NOREV}.${MACHINE_ARCH}-unknown-netbsd1.6.1
.endif
.elif ${OPSYS} == "FreeBSD"
#
DISTNAME= ${PKGNAME_NOREV}.${MACHINE_ARCH}-unknown-freebsd4.0
.elif ${OPSYS} == "OpenBSD"
#
DISTNAME= ${PKGNAME_NOREV}.${MACHINE_ARCH}-unknown-openbsd3.3
.elif ${OPSYS} == "SunOS"
#
.if ${MACHINE_ARCH} == "sparc"
DISTNAME= ${PKGNAME_NOREV}.sparc-sun-solaris2.6
.else
DISTNAME= ${PKGNAME_NOREV}.i386-pc-solaris2.6
.endif
.elif ${OPSYS} == "Linux"
#
.if ${MACHINE_ARCH} == "i386"
DISTNAME= ${PKGNAME_NOREV}.i686-pc-linux-gnu
.elif ${MACHINE_ARCH} == "x86_64"
DISTNAME= ${PKGNAME_NOREV}.x86_64-pc-linux-gnu
.endif
.endif
ONLY_FOR_PLATFORM= NetBSD-*-sparc NetBSD-*-i386 FreeBSD-*-i386 OpenBSD-*-alpha
ONLY_FOR_PLATFORM+= OpenBSD-*-i386 OpenBSD-*-macppc OpenBSD-*-sparc
ONLY_FOR_PLATFORM+= OpenBSD-*-sparc64 SunOS-*-sparc SunOS-*-i386 Linux-*-i386
ONLY_FOR_PLATFORM+= Linux-*-i386 Linux-*-x86_64
DIST_SUBDIR= setiathome
DECOMPRESS_CMD= ${CAT}
NO_BUILD= yes
USE_PKGINSTALL= yes
RCD_SCRIPTS= setiathome
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/setiathome ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/xsetiathome ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/man/cat1/setiathome.0
${INSTALL_MAN} ${WRKSRC}/README.xsetiathome ${PREFIX}/man/cat1/xsetiathome.0
.include "../../mk/bsd.pkg.mk"
--Boundary_(ID_2NYLNv67yWcKVP02rvuWAw)--