[wellylug] ok debian fans, here's a question for you :)

Sam Cannell sam.cannell at gmail.com
Mon Jun 28 15:15:52 NZST 2004


Hi Damon,

If all you need to do is alter the ./configure options that are used
when building OOo, then I believe the following is the procedure. 
Note that I've never done this, so it might break horribly. :)

* Make sure you have some deb-src lines in your /etc/apt/sources.list:
deb-src ftp://ftp.nz.debian.org/debian/ testing main contrib non-free
deb-src ftp://ftp.nz.debian.org/debian-non-US/ testing/non-US main
contrib non-free
deb-src ftp://ftp.nz.debian.org/debian-security/ testing/updates main
contrib non-free

* Run 'apt-get update'

* Make a temporary directory for your package modification

* In your temporary directory, run 'apt-get source openoffice.org'

* Enter the directory 'openoffice.org-x.y.z' that was created during
the previous step.

* Under the 'openoffice.org-x.y.z' directory, there should be a
'debian' directory.  In the 'debian' directory will be a file called
'rules'.  Open it in an editor.

* In that file will be the logic to generate the list of flags that
get passed to ./configure.  Tweak it as you need to.  (I see there's a
section somewhere down the file with references to both python and
CONFIGURE_FLAGS... I only skimmed through the file though.)

* In the 'openoffice-x.y.z' directory, run 'dpkg-buildpackage'.  It
may error out saying you have unmet build dependancies; resolve these,
then try running dpkg-buildpackage again.

I think that'll do it.  However, like I said, it's not something I've
ever tried doing, and I might be getting it all terribly wrong. :)

Hope this helps,

Sam

On Mon, 28 Jun 2004 14:54:55 +1200, Damon Lynch <damon at photo.geek.nz> wrote:
> 
> I need to be able to reconfigure the deb of OpenOffice 1.1.1 so it
> includes the python that comes with the regular tarball downloaded from
> from the OOo site.  The regular tarball comes with a special copy of
> python 2.2.2 in conjunction with pyUNO, which is useful for (among other
> things) command line automation of OOo.  The system python is not
> recommended for this, and I don't want to use it.
> 
> Is this possible with debian?  If so--and I'm assuming I need the source
> deb for OOo--what switch do I give it when rebuilding to say "hey don't
> exclude python and pyuno"?
> 
> Thanks
> Damon




More information about the wellylug mailing list