From max@ale.imgsrc.co.jp  Thu May  9 20:10:31 2002
Return-Path: <max@ale.imgsrc.co.jp>
Received: from white.imgsrc.co.jp (ns.imgsrc.co.jp [210.226.20.2])
	by hub.freebsd.org (Postfix) with ESMTP id 84AA237B403
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  9 May 2002 20:10:30 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
	by white.imgsrc.co.jp (Postfix) with ESMTP id A0E8E24D06
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 10 May 2002 12:10:29 +0900 (JST)
Received: from black.imgsrc.co.jp (black.imgsrc.co.jp [2001:218:422:2::130])
	by white.imgsrc.co.jp (Postfix) with ESMTP id 953E224D29
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 10 May 2002 12:10:18 +0900 (JST)
Received: from ale.imgsrc.co.jp (ale.imgsrc.co.jp [210.226.20.142])
	by black.imgsrc.co.jp (Postfix) with ESMTP id 166391E4811
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 10 May 2002 12:10:17 +0900 (JST)
Received: (from max@localhost)
	by ale.imgsrc.co.jp (8.12.3/8.12.3/Submit) id g4A3AI1x000343;
	Fri, 10 May 2002 12:10:18 +0900 (JST)
	(envelope-from max)
Message-Id: <200205100310.g4A3AI1x000343@ale.imgsrc.co.jp>
Date: Fri, 10 May 2002 12:10:18 +0900 (JST)
From: Masafumi NAKANE <max@freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: libiconv port cannot be built without root privilege	
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         37914
>Category:       ports
>Synopsis:       libiconv port cannot be built without root privilege
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    gnome
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 09 20:20:01 PDT 2002
>Closed-Date:    Tue May 14 22:32:12 PDT 2002
>Last-Modified:  Tue May 14 22:32:12 PDT 2002
>Originator:     Masafumi NAKANE
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
>Environment:
System: FreeBSD ale.imgsrc.co.jp 4.5-STABLE FreeBSD 4.5-STABLE #0: Thu Apr 25 18:39:22 JST 2002 max@amber.imgsrc.co.jp:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
	libiconv port tries to install some files during the build process, thus fails if run as regular user.
>How-To-Repeat:
	Build the libiconv port as a regular user.
>Fix:

	

The following patch fixes the build process, however, it is not tested
whether the libraries built with this patch applied actually works 
properly.


Index: files/patch-aa
===================================================================
RCS file: /home/ncvs/ports/converters/libiconv/files/patch-aa,v
retrieving revision 1.5
diff -u -r1.5 patch-aa
--- files/patch-aa	18 Mar 2002 09:43:24 -0000	1.5
+++ files/patch-aa	9 May 2002 08:25:23 -0000
@@ -1,9 +1,11 @@
-
-$FreeBSD: ports/converters/libiconv/files/patch-aa,v 1.5 2002/03/18 09:43:24 sobomax Exp $
-
---- Makefile.in.orig	Tue Feb 20 21:43:19 2001
-+++ Makefile.in	Sun Mar 17 11:01:20 2002
-@@ -31,7 +31,7 @@
+--- Makefile.in.orig	Wed Feb 21 04:43:19 2001
++++ Makefile.in	Thu May  9 17:20:17 2002
+@@ -27,11 +27,11 @@
+ 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
  	cd lib && $(MAKE) all
  	cd src && $(MAKE) all
  	cd man && $(MAKE) all
Index: files/patch-ad
===================================================================
RCS file: /home/ncvs/ports/converters/libiconv/files/patch-ad,v
retrieving revision 1.5
diff -u -r1.5 patch-ad
--- files/patch-ad	18 Mar 2002 09:43:24 -0000	1.5
+++ files/patch-ad	9 May 2002 08:26:04 -0000
@@ -1,8 +1,14 @@
-
-$FreeBSD: ports/converters/libiconv/files/patch-ad,v 1.5 2002/03/18 09:43:24 sobomax Exp $
-
---- lib/Makefile.in.orig	Thu Jun 28 01:37:49 2001
-+++ lib/Makefile.in	Sun Mar 17 11:34:57 2002
+--- lib/Makefile.in.orig	Thu Jun 28 07:37:49 2001
++++ lib/Makefile.in	Thu May  9 17:20:53 2002
+@@ -16,7 +16,7 @@
+ CFLAGS = @CFLAGS@
+ CPPFLAGS = @CPPFLAGS@
+ LDFLAGS = @LDFLAGS@
+-INCLUDES = -I. -I$(srcdir) -I../include -I$(srcdir)/../include
++INCLUDES = -I. -I$(srcdir) -I../include -I$(srcdir)/../include -I../libcharset/include
+ LIBTOOL = @LIBTOOL@
+ LIBTOOL_COMPILE = $(LIBTOOL) --mode=compile
+ LIBTOOL_LINK = $(LIBTOOL) --mode=link
 @@ -39,7 +39,7 @@
  
  # Before making a release, change this according to the libtool documentation,
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->gnome 
Responsible-Changed-By: ijliao 
Responsible-Changed-When: Thu May 9 22:02:01 PDT 2002 
Responsible-Changed-Why:  
over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37914 
State-Changed-From-To: open->closed 
State-Changed-By: marcus 
State-Changed-When: Tue May 14 22:31:39 PDT 2002 
State-Changed-Why:  
Fixed with the patches from 36810. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37914 
>Unformatted:
