From owner-freebsd-emulation@FreeBSD.ORG Sat Dec 17 09:30:07 2005 Return-Path: X-Original-To: freebsd-emulation@hub.freebsd.org Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A6FE16A41F for ; Sat, 17 Dec 2005 09:30:07 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 060D843D53 for ; Sat, 17 Dec 2005 09:30:07 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id jBH9U6tI031584 for ; Sat, 17 Dec 2005 09:30:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id jBH9U6G8031582; Sat, 17 Dec 2005 09:30:06 GMT (envelope-from gnats) Date: Sat, 17 Dec 2005 09:30:06 GMT Message-Id: <200512170930.jBH9U6G8031582@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: SANETO Takanori Cc: Subject: Re: ports/90220: emulators/linux_base-8 Makefile typo cause install error X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: SANETO Takanori List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Dec 2005 09:30:07 -0000 The following reply was made to PR ports/90220; it has been noted by GNATS. From: SANETO Takanori To: SANETO Takanori Cc: Alexander Leidinger , freebsd-emulation@freebsd.org, FreeBSD-gnats-submit@FreeBSD.org Subject: Re: ports/90220: emulators/linux_base-8 Makefile typo cause install error Date: Sat, 17 Dec 2005 18:20:16 +0900 Oops, I've sent unfinished mail. In /compat/linux/var/lib/rpm, I see followings: % ls -l /compat/linux/var/lib/rpm total 2268 -rw-r--r-- 1 root wheel 348160 Dec 15 23:45 Basenames -rw-r--r-- 1 root wheel 12288 Dec 15 23:45 Conflictname -rw-r--r-- 1 root wheel 94208 Dec 15 23:45 Dirnames -rw-r--r-- 1 root wheel 643072 Dec 15 23:45 Filemd5s -rw-r--r-- 1 root wheel 12288 Dec 15 23:45 Group -rw-r--r-- 1 root wheel 8192 Dec 15 23:45 Installtid -rw-r--r-- 1 root wheel 12288 Dec 15 23:45 Name -rw-r--r-- 1 root wheel 1327104 Dec 15 23:45 Packages -rw-r--r-- 1 root wheel 24576 Dec 15 23:45 Providename -rw-r--r-- 1 root wheel 12288 Dec 15 23:45 Provideversion -rw-r--r-- 1 root wheel 12288 Dec 15 23:45 Requirename -rw-r--r-- 1 root wheel 12288 Dec 15 23:45 Requireversion -rw-r--r-- 1 root wheel 12288 Dec 15 23:45 Sigmd5 -rw-r--r-- 1 root wheel 12288 Dec 15 23:45 Triggername The contents of pkg-plist should be tailored for each rpm version, I think. Regards, SANETO Takanori wrote: > It worked fine with me, except that when rpm4 is used, pkg-plist does > not match actual files installed. > >>From pkg-plist, > > var/lib/rpm/conflictsindex.rpm > var/lib/rpm/fileindex.rpm > var/lib/rpm/groupindex.rpm > var/lib/rpm/nameindex.rpm > var/lib/rpm/packages.rpm > var/lib/rpm/providesindex.rpm > var/lib/rpm/requiredby.rpm > var/lib/rpm/triggerindex.rpm > > > > Ulrich Spoerlein wrote: >>> I try to get time this week to fix the issue for rpm-4. >> Since I made the mess, attached is a patch that fixes it for both rpm3 >> and rpm4. Just did a install/deinstall with both rpms, I hope this >> really fixes it. >> >> Ulrich Spoerlein >> >> Index: Makefile >> =================================================================== >> RCS file: /home/ncvs/ports/emulators/linux_base-8/Makefile,v >> retrieving revision 1.112 >> diff -u -p -r1.112 Makefile >> --- Makefile 4 Dec 2005 13:12:08 -0000 1.112 >> +++ Makefile 13 Dec 2005 19:55:08 -0000 >> @@ -125,8 +125,8 @@ FALLBACK_ELF_MIB= kern.fallback_elf_bran >> LINUX_ELF= 3 >> PREVIOUS_ELF!= /sbin/sysctl -n ${FALLBACK_ELF_MIB} >> >> -# FIXME. This will result in a file at /compat/linux/etcnsswitch.conf.dist (sic!) >> -RPMFLAGS+= --relocate /etc/nsswitch.conf=/etc/nsswitch.conf.dist --badreloc >> +# FIXME: The double-// can go away, once we deprecate rpm-3 >> +RPMFLAGS+= --relocate /etc/nsswitch.conf=/etc//nsswitch.conf.dist --badreloc >> >> do-install: >> # >> @@ -145,7 +145,6 @@ do-install: >> ${ECHO} $$R; \ >> ${RPM} -U ${RPMFLAGS} ${RPMDIR}/$$R; \ >> done >> - @${MV} ${PREFIX}/etcnsswitch.conf.dist ${PREFIX}/etc/nsswitch.conf.dist >> @test -f ${PREFIX}/etc/nsswitch.conf || cp ${PREFIX}/etc/nsswitch.conf.dist \ >> ${PREFIX}/etc/nsswitch.conf >> @${FIND} ${PREFIX}/bin ${PREFIX}/sbin/ ${PREFIX}/usr/bin \ >