Open Office build problem

Terry R. Friedrichsen terry at uplift.sunquest.com
Fri Dec 5 05:44:20 PST 2003


Building under FreeBSD 5.1, I encountered a problem with the use of "unzip"
under project moz:



#############################################################################

=============
Building project moz
=============
/usr/ports/editors/openoffice/work/oo_1.0.3_src/moz/zipped
unzip -o -d ../unxfbsd.pro/inc FREEBSDGCCIinc.zip && touch      ../unxfbsd.pro/misc/unpacked_moz_unzip_inc
unzip:  can't find ../unxfbsd.pro/inc, ../unxfbsd.pro/inc.zip or ../unxfbsd.pro/inc.ZIP, so there.
dmake:  Error code 76, while making '../unxfbsd.pro/misc/unpacked_moz_unzip_inc'
---* TG_SLO.MK *---

ERROR: Error 65280 occurred while making /usr/ports/editors/openoffice/work/oo_1.0.3_src/moz/zipped
dmake:  Error code 1, while making 'build_all'
---* TG_SLO.MK *---
*** Error code 255

Stop in /usr/ports/editors/openoffice.

#############################################################################



This is due to a bug in unzip.  Despite the man page's insistence that the
"-d" option can appear before the zipfile specification, it doesn't work
there.  Placing the "-d" option at the end of the unzip command worked.  I
made the following modification to moz/zipped/makefile.mk:



#############################################################################

diff makefile.mk.orig makefile.mk
89c89
<       +unzip -o -d $(LB) $(OS)$(COM)$(CPU)lib.zip && unzip -o -d $(LB) $(OS)$(COM)$(CPU)runtime.zip && $(TOUCH) $@
---
>       +unzip -o $(OS)$(COM)$(CPU)lib.zip -d $(LB) && unzip -o $(OS)$(COM)$(CPU)runtime.zip -d $(LB) && $(TOUCH) $@
93c93
<       +unzip -o -d $(INCCOM) $(OS)$(COM)$(CPU)inc.zip && $(TOUCH)     $@
---
>       +unzip -o $(OS)$(COM)$(CPU)inc.zip -d $(INCCOM) && $(TOUCH)     $@
99c99
<       +unzip -o -d $(LB) $(OS)$(COM)$(CPU)lib.zip && \
---
>       +unzip -o $(OS)$(COM)$(CPU)lib.zip -d $(LB) && \
103c103
<       +unzip -o -d $(INCCOM) $(OS)$(COM)$(CPU)inc.zip && $(TOUCH)     $@
---
>       +unzip -o $(OS)$(COM)$(CPU)inc.zip -d $(INCCOM) && $(TOUCH)     $@

#############################################################################



This is just FYI.  It's actually unzip's problem.

Terry R. Friedrichsen

terry at uplift.sunquest.com


More information about the freebsd-openoffice mailing list