ports/107126: editors/openoffice.org-2 won't build if pkg_create not found

Peter Jeremy peterjeremy at optushome.com.au
Sat Dec 23 03:40:15 UTC 2006


>Number:         107126
>Category:       ports
>Synopsis:       editors/openoffice.org-2 won't build if pkg_create not found
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 23 03:40:12 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Peter Jeremy
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
n/a
>Environment:
System: FreeBSD jashank.vk2pj.dyndns.org 6.1-STABLE FreeBSD 6.1-STABLE #15: Wed Aug 2 18:35:57 EST 2006 root at jashank.vk2pj.dyndns.org:/usr/obj/usr/src/sys/jashank i386

>Description:
	The 'epm' project within the OOo build expects to find pkg_create in
	the $PATH.  However, pkg_create is normally in /usr/sbin - which is
	not part of the standard user $PATH.  (If ports/sysutils/pkg_install
	is installed then pkg_create will be in $LOCALBASE/sbin).
>How-To-Repeat:
	cd /usr/ports/editors/openoffice.org-2 && make
	using the standard user $PATH
>Fix:
	I used the following patch but this is not a general solution
	because it doesn't handle ports/sysutils/pkg_install.  A general
	fix would be to add $LOCALBASE/sbin:/usr/sbin to $PATH if they
	are not already present.
--- epm/epm-3.7.patch.orig	Tue Aug  1 22:20:23 2006
+++ epm/epm-3.7.patch	Sat Dec 23 07:00:30 2006
@@ -68,7 +68,11 @@
         fprintf(fp, "@exec /bin/chmod %04o %s\n", file->mode, file->dst);
       }
 ***************
-*** 330,337 ****
+*** 326,337 ****
+    if (Verbosity)
+      puts("Building FreeBSD pkg binary distribution...");
+  
+!   if (run_command(NULL, "pkg_create -p / -s %s -c %s -d %s -f %s %s",
                     current, commentname, descrname, plistname, name))
       return (1);
   
@@ -77,7 +81,11 @@
   
    /*
     * Remove temporary files...
---- 348,356 ----
+--- 344,356 ----
+    if (Verbosity)
+      puts("Building FreeBSD pkg binary distribution...");
+  
+!   if (run_command(NULL, "/usr/sbin/pkg_create -p / -s %s -c %s -d %s -f %s %s",
                     current, commentname, descrname, plistname, name))
       return (1);
   


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



More information about the freebsd-ports-bugs mailing list