Apache OpenOffice (AOO) Bugzilla – Issue 48816
Fix on Master for 680m101 for cp1251.pyc breaks builds with system python.
Last modified: 2005-06-10 10:21:35 UTC
If building with SYSTEM_PYTHON="yes", the solver doesn't contain the solver/680/<whatever>/lib/python directory at all. instsetoo_native/util tries to copy a file (cp1251.py) from there to a local directory, to prevent a .pyc file to appear in the solver. This is not necessary with SYSTEM_PYTHON, and fails. Attaching patch to fix that.
Created attachment 25856 [details] Proposed fix
And maybe you want to see the error messages: /build/openoffice.org/openoffice.org2-1.9.101/ooo-build/build/src680-m101/instsetoo_native/util ------------- mkdir -p ../unxlngi6.pro/misc/openoffice/msi_templates mkdir -p ../unxlngi6.pro/misc/ooolangpack/msi_templates cp -ua ../inc_openoffice/windows/msi_templates ../unxlngi6.pro/misc/openoffice cp -ua ../inc_ooolangpack/windows/msi_templates ../unxlngi6.pro/misc/ooolangpack cp -f ../res/nologoinstall.bmp ../unxlngi6.pro/misc/openoffice/msi_templates/Binary/Image.bmp cp -f ../res/nologoinstall.bmp ../unxlngi6.pro/misc/ooolangpack/msi_templates/Binary/Image.bmp dmake: Error -- `/build/openoffice.org/openoffice.org2-1.9.101/ooo-build/build/src680-m101/solver/680/unxlngi6.pro/lib/python/encodings/cp1251.py' not found, and can't be made '---* tg_merge.mk *---' ERROR: Error 65280 occurred while making /build/openoffice.org/openoffice.org2-1.9.101/ooo-build/build/src680-m101/instsetoo_native/util
of @ mh: please have a look.
This one bit me, too... hence I'm in the CC.
*** Issue 50032 has been marked as a duplicate of this issue. ***
I'll take this one. Just for curiosity: why does cp1251.py cause problems but LOCALPYFILES not? I'd guess in case of SYSTEM_PYTHON==YES you do not have $(SOLARSHAREDBIN)$/pyuno$/%.py either ...
Thanks for your patch. I cannot apply it as it is because adding cp1251.py to LOCALPYFILES results in an error (as it is not located at $(SOLARSHAREDBIN)$/pyuno$/ where all other LOCALPYFILES are). But I'll conditionalize the rule for cp1251.py similar to what you proposed. See CWS rt10.
Fixed. instsetoo_native/makefile.mk now contains .IF "$(SYSTEM_PYTHON)" != "YES" $(BIN)$/cp1251.py : $(SOLARLIBDIR)$/python$/encodings$/cp1251.py @+$(COPY) $< $@ .ELSE $(BIN)$/cp1251.py : @+echo "Using system python - nothing more to do here" .ENDIF
please verify re-open issue and reassign to hjs@openoffice.org
reassign to hjs@openoffice.org
reset resolution to FIXED
.
seen on MWS