Date: Sat, 6 Apr 2002 22:10:10 +0900 (JST) From: KOMATSU Shinichiro <koma2@jiro.c.u-tokyo.ac.jp> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/36810: unbreak converters/libiconv when built by non-root user Message-ID: <20020406131011.ABFB41905@taro.c.u-tokyo.ac.jp>
next in thread | raw e-mail | index | archive | help
>Number: 36810 >Category: ports >Synopsis: unbreak converters/libiconv when built by non-root user >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sat Apr 06 05:20:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: KOMATSU Shinichiro >Release: FreeBSD 4.5-RELEASE-p2 i386 >Organization: >Environment: FreeBSD 4.5-RELEASE-p2 i386 >Description: converters/libiconv cannot be built by non-root user. These patches fix this problem. Added files: files/patch-libcharset::makefile.in files/patch-makefile.in >How-To-Repeat: Do this by non-root user: % cd /usr/ports/converters/libiconv % make ...[snip]... cd lib && make all cd lib && make install-lib libdir='/usr/ports/converters/libiconv/work/libiconv-1.7/lib' includedir='/usr/ports/converters/libiconv/work/libiconv-1.7/lib' /bin/sh ./../autoconf/mkinstalldirs /usr/ports/converters/libiconv/work/libiconv-1.7/lib /bin/sh ../libtool --mode=install install -c -m 444 libcharset.la /usr/ports/converters/libiconv/work/libiconv-1.7/lib/libcharset.la install -c -m 444 .libs/libcharset.so.1 /usr/ports/converters/libiconv/work/libiconv-1.7/lib/libcharset.so.1 (cd /usr/ports/converters/libiconv/work/libiconv-1.7/lib && rm -f libcharset.so && ln -s libcharset.so.1 libcharset.so) (cd /usr/ports/converters/libiconv/work/libiconv-1.7/lib && rm -f libcharset.so && ln -s libcharset.so.1 libcharset.so) install -c -m 444 .libs/libcharset.a /usr/ports/converters/libiconv/work/libiconv-1.7/lib/libcharset.a ranlib /usr/ports/converters/libiconv/work/libiconv-1.7/lib/libcharset.a chmod 644 /usr/ports/converters/libiconv/work/libiconv-1.7/lib/libcharset.a libtool: install: warning: remember to run `libtool --finish /usr/local/lib' /bin/sh ./../autoconf/mkinstalldirs /usr/local/libdata test -f /usr/local/libdata/charset.alias && orig=/usr/local/libdata/charset.alias || orig=charset.alias; sed -f ref-add.sed $orig > /usr/local/libdata/t-charset.alias; install -c -m 444 /usr/local/libdata/t-charset.alias /usr/local/libdata/charset.alias; rm -f /usr/local/libdata/t-charset.alias cannot create /usr/local/libdata/t-charset.alias: permission denied *** Error code 2 Stop in /usr/ports/converters/libiconv/work/libiconv-1.7/libcharset/lib. *** Error code 1 Stop in /usr/ports/converters/libiconv/work/libiconv-1.7/libcharset. *** Error code 1 Stop in /usr/ports/converters/libiconv/work/libiconv-1.7. *** Error code 1 Stop in /usr/ports/converters/libiconv. *** Error code 1 Stop in /usr/ports/converters/libiconv. *** Error code 1 Stop in /usr/ports/converters/libiconv. >Fix: diff --exclude=*.log* --exclude=*CVS* -urN libiconv.old/files/patch-libcharset::makefile.in libiconv/files/patch-libcharset::makefile.in --- libiconv.old/files/patch-libcharset::makefile.in Thu Jan 1 09:00:00 1970 +++ libiconv/files/patch-libcharset::makefile.in Sat Apr 6 21:27:23 2002 @@ -0,0 +1,11 @@ +--- libcharset/Makefile.in.orig Mon May 21 23:48:37 2001 ++++ libcharset/Makefile.in Sat Apr 6 21:25:39 2002 +@@ -38,7 +38,7 @@ + # Installs the library and include files only. Typically called with only + # $(libdir) and $(includedir) - don't use $(prefix) and $(exec_prefix) here. + install-lib : all force +- cd lib && $(MAKE) install-lib libdir='$(libdir)' includedir='$(includedir)' ++ cd lib && $(MAKE) install-lib libdir='$(libdir)' includedir='$(includedir)' sysconfdir='$(sysconfdir)' + $(MKINSTALLDIRS) $(includedir) + $(INSTALL_DATA) include/libcharset.h $(includedir)/libcharset.h + diff --exclude=*.log* --exclude=*CVS* -urN libiconv.old/files/patch-makefile.in libiconv/files/patch-makefile.in --- libiconv.old/files/patch-makefile.in Thu Jan 1 09:00:00 1970 +++ libiconv/files/patch-makefile.in Sat Apr 6 21:22:08 2002 @@ -0,0 +1,11 @@ +--- Makefile.in.orig Sat Apr 6 21:20:47 2002 ++++ Makefile.in Sat Apr 6 21:18:03 2002 +@@ -27,7 +27,7 @@ + SHELL = /bin/sh + + all : force +- builddir="`pwd`"; cd libcharset && $(MAKE) all && $(MAKE) install-lib libdir="$$builddir/lib" includedir="$$builddir/lib" ++ builddir="`pwd`"; cd libcharset && $(MAKE) all && $(MAKE) install-lib libdir="$$builddir/lib" includedir="$$builddir/lib" sysconfdir="$$builddir/lib" + cd lib && $(MAKE) all + cd src && $(MAKE) all + cd man && $(MAKE) all >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020406131011.ABFB41905>