ports/138762: [PATCH] devel/apr: fix build as unprivileged user

Mel Flynn mel at rachie.is-a-geek.net
Sat Sep 12 15:50:05 UTC 2009


>Number:         138762
>Category:       ports
>Synopsis:       [PATCH] devel/apr: fix build as unprivileged user
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 12 15:50:04 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Mel Flynn
>Release:        FreeBSD 8.0-BETA4 i386
>Organization:
>Environment:
System: FreeBSD smoochies.rachie.is-a-geek.net 8.0-BETA4 FreeBSD 8.0-BETA4 #14 r196875M: Mon Sep 7 18:00:45 CEST 2009 mel at smoochies.rachie.is-a-geek.net:/usr/obj/usr/src/sys/HPDV9000 i386                                                                                         


        
>Description:
- libtool files on FreeBSD are installed read-only
- apr's buildconf script copies the libtool files then tries a shell redirect 
  into the copied files.
- Because an unprivileged user is not allowed to do that, build fails down the road.

Priority set high, as this should IMO be in 8.0-RELEASE ports.
>How-To-Repeat:
As unprivileged user make -C /usr/ports/devel/apr build

>Fix:

	

--- patch-apr begins here ---
--- /dev/null   2009-08-12 08:33:00.000000000 -0800
+++ devel/apr/files/patch-buildconf     2009-08-12 08:32:46.000000000 -0800
@@ -0,0 +1,11 @@
+--- apr-1.3.8/buildconf.orig    2009-08-12 08:28:47.000000000 -0800
++++ apr-1.3.8/buildconf 2009-08-12 08:31:45.000000000 -0800
+@@ -71,6 +71,7 @@
+
+ echo "buildconf: Using libtool.m4 at ${ltfile}."
+
++rm -f build/libtool.m4
+ cat $ltfile | sed -e 's/LIBTOOL=\(.*\)top_build/LIBTOOL=\1apr_build/' > build/libtool.m4
+
+ # libtool.m4 from 1.6 requires ltsugar.m4
+
--- patch-apr ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list