Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Apr 2002 06:34:38 +0900
From:      "Eugene M. Kim" <ab@astralblue.net>
To:        current@freebsd.org
Subject:   LIBCOMPATDIR semantics mismatch
Message-ID:  <20020418063438.A68543@the-7.net>

next in thread | raw e-mail | index | archive | help

--TB36FDmn/VVEgNH/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Don't know what prevented this from being caught, but:

http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/compat/Makefile.inc?only_with_tag=MAIN#rev1.5
http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/compat/compat1x/Makefile?only_with_tag=MAIN#rev1.8

These two doesn't seem to mix together (note the last argument):

------------- snip ------------- snip ------------- snip -------------
sh /usr/src/tools/install.sh -c -o root -g wheel -m 444 libc.so.1.1 libcurses.so.1.1 libf2c.so.1.1 libg++.so.1.1  libgcc.so.1.1 libgnumalloc.so.1.1 libgnuregex.so.1.1 libln.so.1.1  libm.so.1.1 libmalloc.so.1.1 libreadline.so.1.1 libresolv.so.1.1  librpcsvc.so.1.1 libskey.so.1.1 libtelnet.so.1.1 libtermcap.so.1.1  libutil.so.1.1 liby.so.1.1  /usr/obj/usr/src/i386/usr/lib/compat/aout/aout
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 file2
       install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 ... fileN directory
       install -d [-v] [-g group] [-m mode] [-o owner] directory ...
*** Error code 64
------------- snip ------------- snip ------------- snip -------------

Attached is a patch that fixes this by unifying the semantics of
LIBCOMPATDIR.

Thanks,
Eugene

--TB36FDmn/VVEgNH/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="libcompat-patch.diff"

--- src/lib/compat/Makefile.inc	Sat Nov 10 02:08:09 2001
+++ src/lib/compat/Makefile.inc.new	Wed Apr 17 14:27:40 2002
@@ -1,6 +1,6 @@
 # $FreeBSD: src/lib/compat/Makefile.inc,v 1.8 2001/09/22 08:11:24 ru Exp $
 
-LIBCOMPATDIR?=	${LIBDIR}/compat/aout
+LIBCOMPATDIR?=	${LIBDIR}/compat
 
 .if defined(LIBS) && !empty(LIBS)
 beforeinstall: __remove-stale-libs
--- src/lib/compat/compat3x.i386/Makefile	Sat Nov 10 02:08:09 2001
+++ src/lib/compat/compat3x.i386/Makefile.new	Wed Apr 17 14:28:05 2002
@@ -2,8 +2,6 @@
 
 DISTRIBUTION=	compat3x
 
-LIBCOMPATDIR=	${LIBDIR}/compat
-
 LIBS=	libalias.so.3 libc.so.3 libc_r.so.3 libc_r.so.4 libcurses.so.2 \
 	libdialog.so.3 libedit.so.2 libf2c.so.2 libfetch.so.1 libftpio.so.4 \
 	libg++.so.4 libhistory.so.3 libmytinfo.so.2 libncurses.so.3 \
--- src/lib/compat/compat4x.alpha/Makefile	Wed Apr 17 01:16:56 2002
+++ src/lib/compat/compat4x.alpha/Makefile.new	Wed Apr 17 14:28:12 2002
@@ -2,8 +2,6 @@
 
 DISTRIBUTION=	compat4x
 
-LIBCOMPATDIR=	${LIBDIR}/compat
-
 LIBS=	\
 	libc.so.4 \
 	libc_r.so.4 \
--- src/lib/compat/compat4x.i386/Makefile	Wed Apr 17 01:16:57 2002
+++ src/lib/compat/compat4x.i386/Makefile.new	Wed Apr 17 14:28:21 2002
@@ -2,8 +2,6 @@
 
 DISTRIBUTION=	compat4x
 
-LIBCOMPATDIR=	${LIBDIR}/compat
-
 LIBS=	\
 	libc.so.4 \
 	libc_r.so.4 \

--TB36FDmn/VVEgNH/--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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