Subject: Re: Re: {pkgsrc-users} Error building misc/openoffice2 with
To: Brian de Alwis <bsd@cs.ubc.ca>
From: Joel CARNAT <joel@carnat.net>
List: pkgsrc-users
Date: 03/15/2007 22:24:12
--kfjH4zxOES6UT95V
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

OK. Do you know a pkgsrc example of such a thing ?
Because I looked at gcc and python and didn't understood how to handle
both version. Should it be handle like www/firefox-bin and its
MOZILLA_USE_LINUX variable ?

TIA,
	Jo

On Thu, Mar 15 2007 - 14:27, Brian de Alwis wrote:
> www/firefox2/buildlink3.mk was a mistake and should be removed.
> www/firefox/buildlink3.mk should handle both firefox 1.X and 2.X.
>=20
> Brian.
>=20
> On 2007.03.15 14:41:22 +0100, Joel CARNAT wrote:
> > Hi,
> >=20
> > as I am already using www/firefox2, I modified misc/openoffice2 files as
> > follow:
> > *****************************************************************
> > --- options.mk.orig     2007-03-13 21:16:51.000000000 +0100
> > +++ options.mk  2007-03-13 21:22:36.000000000 +0100
> > @@ -4,5 +4,5 @@
> >  PKG_SUPPORTED_OPTIONS=3D         cups gnome gtk2 # kde
> >  PKG_OPTIONS_REQUIRED_GROUPS=3D   browser lang
> > -PKG_OPTIONS_GROUP.browser=3D     firefox firefox-gtk1 seamonkey seamon=
key-gtk1
> > +PKG_OPTIONS_GROUP.browser=3D     firefox firefox2 firefox-gtk1 seamonk=
ey
> > seamonkey-gtk1
> >  OO_SUPPORTED_LANGUAGES=3D                en-US af as-IN be-BY bg br bs=
 ca
> > cs cy da de \
> >                                 el en-GB en-ZA eo es et fa fi fr ga gu-=
IN
> > he \
> > @@ -28,4 +28,9 @@
> >  .endif
> >=20
> > +.if !empty(PKG_OPTIONS:Mfirefox2)
> > +.include "../../www/firefox2/buildlink3.mk"
> > +CONFIGURE_ARGS+=3D       --with-system-mozilla --with-firefox
> > +.endif
> > +
> >  .if !empty(PKG_OPTIONS:Mfirefox-gtk1)
> >  .include "../../www/firefox-gtk1/buildlink3.mk"
> > *****************************************************************
> >=20
> > When compilling OOo, I get the following error:
> > =3D> Required installed package firefox2>=3D2.0: NOT found
> > =3D> Verifying package for ../../www/firefox2
> > ERROR: [depends.mk] A package matching ``firefox2>=3D2.0'' should
> > ERROR:     be installed, but one cannot be found.  Perhaps there is a
> > ERROR:     stale work directory for ../../www/firefox2?
> > *** Error code 1
> >=20
> > Stop.
> > make: stopped in /home/cvs/pkgsrc/misc/openoffice2
> > *** Error code 1
> >=20
> > This seem to be because www/firefox2 is registered as firefox-2.x:
> > #  pkg_info | grep firefox
> > firefox-2.0.0.2     Lightweight gecko-based web browser
> >=20
> > I'm not sure what has to be modified (and how).
> > >From what I understood buildlink3 refers to firefox2 but Makefile refe=
rs
> > to www/firefox. Is it www/firefox2/buildlink3.mk file or
> > www/firefox2/Makefile ?
> >=20
> > TIA,
> >      Jo
>=20
> --=20
>   Brian de Alwis | Software Practices Lab | UBC | http://www.cs.ubc.ca/~b=
sd/
>       "Amusement to an observing mind is study." - Benjamin Disraeli

--kfjH4zxOES6UT95V
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (NetBSD)

iD8DBQFF+bl80/VH7L7F7Y4RAqPeAJ0dC8XoKUy85Sh+chH4kGxMy5NvgACeOzIc
869id2vronKuTLtXEk527HE=
=/sGh
-----END PGP SIGNATURE-----

--kfjH4zxOES6UT95V--