Hi Joerg Budischewski,

I created an issue 100492 and set as dependency to 92413.

From: Joerg Budischewski <[email protected]>
Subject: [porting-dev] python26 - looking for porters (issue 92413)
Date: Wed, 18 Mar 2009 21:45:56 +0100

> I would welcome any porter to support the effort for the other
> platforms.

I ported to FreeBSD7 i386.

> what needs to be done:
> * checkout python26 cws
done
> * configure ( PYTHONHOME env variable is removed from set_soenv.in)
yes, it was removed.
> * in case you reuse a dev300_m41 original build, ensure, that all python
> * stuff is erased from solver (python.exe, inc/python, lib/python, etc.)
i did a clean build.
> * otherwise you will get strange errors
> * build the cws. You will probably get problems during building the
done.
> * python module. Solve them.
done. patch-python26
> * after that, build the rest (you may get additional problems in the
> * pyuno module, solve them)
done.
> * QA-1:
> build the testtools module and switch to
> testtools/source/bridgetest/pyuno and run
>
> dmake runtest
here is my reslut on FBSD7. I think it's correct. I'm happy if you have a look.

dmake runtest
start test with  dmake runtest
-------------
cd ../../../unxfbsdi.pro/lib && setenv FOO 
file:///work/python26/openoffice.org-3-devel/work/python26/testtools/source/bridgetest/pyuno/../../../unxfbsdi.pro/lib
 &&            setenv UNO_TYPES pyuno_regcomp.rdb && setenv UNO_SERVICES 
pyuno_regcomp.rdb && python main.py
testStandard (importer.ImporterTestCase) ... ok
testDynamicComponentRegistration (importer.ImporterTestCase) ... ok
testErrors (core.TestCase) ... ok
testBaseTypes (core.TestCase) ... ok
testOutparam (core.TestCase) ... ok
testStruct (core.TestCase) ... ok
testType (core.TestCase) ... ok
testEnum (core.TestCase) ... ok
testBool (core.TestCase) ... ok
testChar (core.TestCase) ... ok
testUnicode (core.TestCase) ... ok
testConstant (core.TestCase) ... ok
testExceptions (core.TestCase) ... ok
testInterface (core.TestCase) ... ok
testByteSequence (core.TestCase) ... ok
testInvoke (core.TestCase) ... ok
testStandard (impl.TestCase) ... ok
testUrlHelper (impl.TestHelperCase) ... ok
testInspect (impl.TestHelperCase) ... ok
testListener (impl.TestHelperCase) ... ok
testCurrentContext (impl.TestHelperCase) ... ok

----------------------------------------------------------------------
Ran 21 tests in 0.084s

OK
cd ../../../unxfbsdi.pro/lib && setenv FOO 
file:///work/python26/openoffice.org-3-devel/work/python26/testtools/source/bridgetest/pyuno/../../../unxfbsdi.pro/lib
 &&            setenv UNO_TYPES pyuno_regcomp.rdb && setenv UNO_SERVICES 
pyuno_regcomp.rdb &&  regcomp -register -br pyuno_regcomp.rdb -r dummy.rdb \
                        -l com.sun.star.loader.Python -c 
vnd.openoffice.pymodule:samplecomponent
vnd.openoffice.pymodule:samplecomponent
register component 'vnd.openoffice.pymodule:samplecomponent' in registry 
'dummy.rdb' succesful!
cd ../../../unxfbsdi.pro/lib && setenv FOO 
file:///work/python26/openoffice.org-3-devel/work/python26/testtools/source/bridgetest/pyuno/../../../unxfbsdi.pro/lib
 &&            setenv UNO_TYPES pyuno_regcomp.rdb && setenv UNO_SERVICES 
pyuno_regcomp.rdb &&  regcomp -register -br pyuno_regcomp.rdb -r dummy2.rdb \
                        -l com.sun.star.loader.Python -c 
vnd.sun.star.expand:\$FOO/samplecomponent.py
vnd.sun.star.expand:$FOO/samplecomponent.py
register component 'vnd.sun.star.expand:$FOO/samplecomponent.py' in registry 
'dummy2.rdb' succesful!

> * QA-2:
> install the office, start python from the program directory and type
>
> import uno

again, my result on FBSD7. I think it's correct. I'm happy if you have
a look.
% ./openoffice.org3/program/python
Python 2.6.1 (r261:67515, Mar 23 2009, 21:39:00)
[GCC 4.2.1 20070719  [FreeBSD]] on freebsd7
Type "help", "copyright", "credits" or "license" for more information.
>>> import uno
>>>

> * QA-3:
> Start the office, choose Tools/Macros/Run macro ..., click on
> "OpenOffice.org Macros", you should then have a pythonSamples Library
> at the bottom of the list.
I found it, so it's okay.

Best,
-- Nakata Maho http://accc.riken.jp/maho/ , http://ja.openoffice.org/
   Nakata Maho's PGP public keys: http://accc.riken.jp/maho/maho.pgp.txt

Attachment: pgptoD0gU6fvz.pgp
Description: PGP signature

Reply via email to