From nobody@FreeBSD.org  Thu Jan 14 23:39:19 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 2DF5F1065676
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 14 Jan 2010 23:39:19 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 1C3448FC15
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 14 Jan 2010 23:39:19 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o0ENdI0V093048
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 14 Jan 2010 23:39:18 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o0ENdI37093040;
	Thu, 14 Jan 2010 23:39:18 GMT
	(envelope-from nobody)
Message-Id: <201001142339.o0ENdI37093040@www.freebsd.org>
Date: Thu, 14 Jan 2010 23:39:18 GMT
From: Andrey Kosachenko <Andrey.Kosachenko@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] port editors/openoffice.org-3 fails to build on 9.0-Current
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         142843
>Category:       ports
>Synopsis:       [patch] port editors/openoffice.org-3 fails to build on 9.0-Current
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    openoffice
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 14 23:40:00 UTC 2010
>Closed-Date:    Thu Apr 01 00:49:47 UTC 2010
>Last-Modified:  Thu Apr  1 00:50:02 UTC 2010
>Originator:     Andrey Kosachenko
>Release:        9.0-Current
>Organization:
>Environment:
FreeBSD rock.intra 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Sun Jan  3 17:03:30 UTC 2010     root@rock.intra:/usr/obj/usr/src/sys/ROCK-SMP-ULE-20100103  amd64
>Description:
port editors/openoffice.org-3 fails to build on FreeBSD 9.0-Current systems.

Deeper investigation shown the reason: unzip from base system is used with unsupported options combination whereas usage of uznip from archivers/uznip is expected. I.e:

[root@rock][/usr/ports/editors/openoffice.org-3/work/OOO310_m19]source FreeBSDAMDEnv.Set
[root@rock][/usr/ports/editors/openoffice.org-3/work/OOO310_m19]cd odk/
[root@rock][/usr/ports/editors/openoffice.org-3/work/OOO310_m19/odk]build --from odk
...
/usr/ports/editors/openoffice.org-3/work/OOO310_m19/odk/pack/gendocu
mkdir -p ../../unxfbsdx.pro/misc/java_src/
/usr/local/bin/gcp /usr/ports/editors/openoffice.org-3/work/OOO310_m19/solver/310/unxfbsdx.pro/bin/juh_src.zip ../../unxfbsdx.pro/misc/java_src/juh_src.zip
cd ../../unxfbsdx.pro/misc/java_src && unzip -quo juh_src.zip
unzip: -n, -o and -u are contradictory
dmake:  Error code 1, while making '../../unxfbsdx.pro/misc/java_src/juh_src.zip'
dmake:  '../../unxfbsdx.pro/misc/java_src/juh_src.zip' removed.

ERROR: Error 65280 occurred while making /usr/ports/editors/openoffice.org-3/work/OOO310_m19/odk/pack/gendocu
rmdir /tmp/62023

according to 'man 1 unzip' (section HISTORY)  starting from FreeBSD 8.0 unzip appeared in the base system. Though not tested, but it is possible that issue is reproducible on 8.X as well.
>How-To-Repeat:
sudo make -C /usr/ports/editors/openoffice.org-3 build

.. <skipped> ...

1 module(s):
        odk
need(s) to be rebuilt

Reason(s):

ERROR: error 65280 occurred while making /usr/ports/editors/openoffice.org-3/work/OOO310_m19/odk/pack/gendocu

Attention: if you build and deliver the above module(s) you may prolongue your the build issuing command "build --from odk"

rmdir /tmp/21398
*** Error code 1

Stop in /usr/ports/editors/openoffice.org-3.
>Fix:
There is a simple patch which is supposed to fix the issue.

Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	Makefile.patch
#
echo x - Makefile.patch
sed 's/^X//' >Makefile.patch << '510beb51362fa3774a3169b33b47ec43'
X--- Makefile.orig	2010-01-14 21:52:41.000000000 +0000
X+++ Makefile	2010-01-14 23:10:13.000000000 +0000
X@@ -106,7 +106,7 @@
X 		PATH=${WRKSRC}/solenv/bin:$$PATH
X 
X BUILD_DEPENDS+=	zip:${PORTSDIR}/archivers/zip \
X-		unzip:${PORTSDIR}/archivers/unzip \
X+		${LOCALBASE}/bin/unzip:${PORTSDIR}/archivers/unzip \
X 		gcp:${PORTSDIR}/sysutils/coreutils \
X 		gpatch:${PORTSDIR}/devel/patch \
X 		${SITE_PERL}/Archive/Zip.pm:${PORTSDIR}/archivers/p5-Archive-Zip \
X@@ -196,6 +196,7 @@
X pre-configure:
X #Workaround for gperf. #i85469#
X 	@${LN} -sf ${LOCALBASE}/bin/gperf ${WRKSRC}/solenv/bin/gperf
X+	@${LN} -sf ${LOCALBASE}/bin/unzip ${WRKSRC}/solenv/bin/unzip
X 
X do-build:
X 	@cd ${WRKSRC} ; ./bootstrap
510beb51362fa3774a3169b33b47ec43
exit



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->openoffice 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Jan 14 23:40:10 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=142843 
State-Changed-From-To: open->closed 
State-Changed-By: maho 
State-Changed-When: Thu Apr 1 00:49:36 UTC 2010 
State-Changed-Why:  
committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=142843 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/142843: commit references a PR
Date: Thu,  1 Apr 2010 00:48:53 +0000 (UTC)

 maho        2010-04-01 00:48:45 UTC
 
   FreeBSD ports repository
 
   Modified files:
     editors/openoffice.org-2 Makefile 
     editors/openoffice.org-3 Makefile 
     editors/openoffice.org-3-RC Makefile 
     editors/openoffice.org-3-devel Makefile 
     editors/openoffice.org-vcltesttool Makefile 
   Log:
   Fix build on 9.0-Current.
   
   PR:             142843
   Submitted by:   Andrey Kosachenko <Andrey.Kosachenko@gmail.com>
   Feature safe:   yes
   
   Revision  Changes    Path
   1.326     +7 -1      ports/editors/openoffice.org-2/Makefile
   1.422     +2 -1      ports/editors/openoffice.org-3-RC/Makefile
   1.473     +2 -1      ports/editors/openoffice.org-3-devel/Makefile
   1.331     +2 -1      ports/editors/openoffice.org-3/Makefile
   1.390     +2 -1      ports/editors/openoffice.org-vcltesttool/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
