From: Anonymous on
Christopher Key <cjk32(a)cam.ac.uk> writes:

> A crude survey shows several ports with this problem, listed below.
> There appear to be three different solutions used in other ports:
> explicitly setting OPTIONSFILE, explicitly setting UNIQUENAME, and
> explicitly setting LATEST_LINK. If you can suggest which is the
> preferred solution, I'll put together a patch.

They all are workarounds. OPTIONSFILE should be defined *after*
including bsd.{apache,python,etc}.mk so that user can have different
options for different versions of apache/python/etc[1]. Same is true for
UNIQUENAME but it has users under Mk/ directory
(bsd.{databases,tcl}.mk), so it should be defined before them.

I don't know what workaround is preferred but I'd suggest
UNIQUENAME. It's easier to type and has same dependency on
PKGNAMEPREFIX.

[1] For www/mod_musicindex it would be
/var/db/ports/ap20-mod_musicindex/options
/var/db/ports/ap22-mod_musicindex/options

You can't install into same PREFIX because its DATADIR is not apache
version dependant. But many python ports work fine with same PREFIX.
>
> audio/mpdbrowser
> devel/py-gdata
> devel/py-twisted
> graphics/py-pycha
> news/py-pynzb
> security/py-keyring
> www/mod_accounting
> www/mod_dav
> www/mod_limitipconn
> www/mod_musicindex
> www/mod_security
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: "Philip M. Gollucci" on
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/19/10 20:05, Anonymous wrote:
> Christopher Key <cjk32(a)cam.ac.uk> writes:
>
>> A crude survey shows several ports with this problem, listed below.
>> There appear to be three different solutions used in other ports:
>> explicitly setting OPTIONSFILE, explicitly setting UNIQUENAME, and
>> explicitly setting LATEST_LINK. If you can suggest which is the
>> preferred solution, I'll put together a patch.
>
> They all are workarounds. OPTIONSFILE should be defined *after*
> including bsd.{apache,python,etc}.mk so that user can have different
> options for different versions of apache/python/etc[1]. Same is true for
> UNIQUENAME but it has users under Mk/ directory
> (bsd.{databases,tcl}.mk), so it should be defined before them.
>
> I don't know what workaround is preferred but I'd suggest
> UNIQUENAME. It's easier to type and has same dependency on
> PKGNAMEPREFIX.
>
> [1] For www/mod_musicindex it would be
> /var/db/ports/ap20-mod_musicindex/options
> /var/db/ports/ap22-mod_musicindex/options
>
> You can't install into same PREFIX because its DATADIR is not apache
> version dependant. But many python ports work fine with same PREFIX.
In the distant future versioned ports will version the DATADIR correctly
for apache related anyway.


- --
- ------------------------------------------------------------------------
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C
Philip M. Gollucci (pgollucci(a)p6m7g8.com) c: 703.336.9354
VP Apache Infrastructure; Member, Apache Software Foundation
Committer, FreeBSD Foundation
Consultant, P6M7G8 Inc.
Sr. System Admin, Ridecharge Inc.

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iD8DBQFMRNBedbiP+9ubjBwRAujrAJ9vOzkjbGH3WRrIMNHqBin9vf9NmACeLdFo
dUVG0AyBih6bBJRMvANRn5w=
=vGkB
-----END PGP SIGNATURE-----
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Christopher Key on
On 19/07/2010 21:05, Anonymous wrote:
> Christopher Key<cjk32(a)cam.ac.uk> writes:
>
>> A crude survey shows several ports with this problem, listed below.
> ...
>> If you can suggest which is the
>> preferred solution, I'll put together a patch.
>
> I don't know what workaround is preferred but I'd suggest
> UNIQUENAME. It's easier to type and has same dependency on
> PKGNAMEPREFIX.
>

Attached.
From: "Philip M. Gollucci" on
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/21/10 20:30, Christopher Key wrote:
> On 19/07/2010 21:05, Anonymous wrote:
>> Christopher Key<cjk32(a)cam.ac.uk> writes:
>>
>>> A crude survey shows several ports with this problem, listed below.
>> ...
>>> If you can suggest which is the
>>> preferred solution, I'll put together a patch.
>>
>> I don't know what workaround is preferred but I'd suggest
>> UNIQUENAME. It's easier to type and has same dependency on
>> PKGNAMEPREFIX.

The mod_* ports should not be py-* prefixed.

If you're going to do it, they should he ap${APACHE_VERSION}- prefixed.

Several ports show examples of this already. Also, AP_FAST_BUILD does
this for you.



- --
- ------------------------------------------------------------------------
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C
Philip M. Gollucci (pgollucci(a)p6m7g8.com) c: 703.336.9354
VP Apache Infrastructure; Member, Apache Software Foundation
Committer, FreeBSD Foundation
Consultant, P6M7G8 Inc.
Sr. System Admin, Ridecharge Inc.

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iD8DBQFMR1nmdbiP+9ubjBwRAkAAAKCBUzmWCcvji68JW8jInXEe+lFwIgCfbEfT
WdFLDLv4vO/18qvF2NuAqzg=
=PHi+
-----END PGP SIGNATURE-----
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Christopher Key on
On 21/07/2010 21:34, Philip M. Gollucci wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 07/21/10 20:30, Christopher Key wrote:
>> On 19/07/2010 21:05, Anonymous wrote:
>>> Christopher Key<cjk32(a)cam.ac.uk> writes:
>>>
>>>> A crude survey shows several ports with this problem, listed below.
>>> ...
>>>> If you can suggest which is the
>>>> preferred solution, I'll put together a patch.
>>> I don't know what workaround is preferred but I'd suggest
>>> UNIQUENAME. It's easier to type and has same dependency on
>>> PKGNAMEPREFIX.
> The mod_* ports should not be py-* prefixed.
>
> If you're going to do it, they should he ap${APACHE_VERSION}- prefixed.
>
> Several ports show examples of this already. Also, AP_FAST_BUILD does
> this for you.

Sorry, the attached should be a little more sane. The reason that this
needs to be done manually, and that ${APACHE_VERSION} or
${APACHE_PKGNAMEPREFIX} can't be used is that the options are read
before bsd.apache.mk is included.

Kind regards,

Christopher Key.