Date: Fri, 5 Dec 2003 06:44:04 -0700 (MST) From: "Terry R. Friedrichsen" <terry@uplift.sunquest.com> To: openoffice@freebsd.org Subject: Open Office build problem Message-ID: <200312051344.hB5Di4Z8006084@uplift.sunquest.com>
next in thread | raw e-mail | index | archive | help
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@uplift.sunquest.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312051344.hB5Di4Z8006084>
