Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jan 2012 05:14:19 +0100
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Paul Schmehl <pschmehl_lists@tx.rr.com>
Cc:        Chris Rees <crees@freebsd.org>, Da Rock <freebsd-ports@herveybayaustralia.com.au>, freebsd-ports@freebsd.org, gljennjohn@googlemail.com
Subject:   Re: linux-f10-nss_ldap: my first port - be gentle :)
Message-ID:  <20120111051419.00000fbb@unknown>
In-Reply-To: <335FA2C29A6AD37CA8C7FE92@utd71538.utdallas.edu>
References:  <4F0446B7.4090703@herveybayaustralia.com.au> <20120104142757.1c77c347@ernst.jennejohn.org> <4F04E648.9090206@herveybayaustralia.com.au> <20120105121825.656677e4@ernst.jennejohn.org> <20120106221610.00005fbe@unknown> <CADLo83-YUtUgAw_r2QNpB2mPxbvPfV0vCRMih-ncAQBCWj73LQ@mail.gmail.com> <20120108160316.00003d59@unknown> <4F0A8164.9090502@herveybayaustralia.com.au> <20120110221115.00007dc1@unknown> <335FA2C29A6AD37CA8C7FE92@utd71538.utdallas.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 10 Jan 2012 15:30:53 -0600 Paul Schmehl
<pschmehl_lists@tx.rr.com> wrote:

> --On January 10, 2012 10:11:15 PM +0100 Alexander Leidinger 
> <Alexander@Leidinger.net> wrote:

> > I can't remember if we have the fedora archives in bsd.sites.mk (if
> > not, it would be worth to add it), and I'm too lazy ATM to search
> > for it. If we have them (and they are OK), it would be better to
> > use the bsd.sites.mk shortcodes for them. This would change
> > automatically the master sites for this port if they are
> > changed/improved in bsd.sites.mk.
> 
> Too lazy to do this?
> 
> # grep FEDORA /usr/ports/Mk/bsd.*
> /usr/ports/Mk/bsd.linux-rpm.mk:MASTER_SITES=
> ${MASTER_SITE_FEDORA_LINUX} /usr/ports/Mk/bsd.sites.mk:.if !defined(IGNORE_MASTER_SITE_FEDORA_LINUX)
> /usr/ports/Mk/bsd.sites.mk:MASTER_SITE_FEDORA_LINUX+= \

After a working day debugging an obscure performance issue, I was too
lazy to login into a FreeBSD machine and to do something like the
following in a linux-port directory:
---snip---
% for i in $(make -V MASTER_SITE_FEDORA_LINUX ); do; echo $i ; done |
grep archives
http://archives.fedoraproject.org/pub/archive/fedora/linux/core/%SUBDIR%/
---snip---

So we have the fedora archives inside, but the path is different. This
means either the MASTER_SITE stays at it is, or it can be changed to
include MASTER_SITE_FEDORA_LINUX with a suitable setting for SUBDIR
(SUBDIR=../releases/10/Everything/i386/os/Packages/). Setting SUBDIR
means that all listed master sites need to have the distfile in the
same location. As the pbone-one has a different path than the fedora
archive one, this is either not possible, or one of them should be
changed to point to the same subdir (in this case it only depends upon
Da Rock's own mirror).

> >> PKGNAMEPREFIX=    linux-f10-
> >> DISTNAME=        ${PORTNAME}-${NSS_LDAP_VERSION}-${RPMVERSION}
> >>
> >> MAINTAINER=        port_maintainer@herveybayaustralia.com.au
> >> COMMENT=        RFC 2307 NSS Module (Linux Fedora 10)
> >>
> >> LICENSE=        GPLv2
> >>
> >> NSS_LDAP_VERSION=264
> >>
> >> USE_LINUX_RPM=  yes
> >> USE_LINUX_PREFIX=yes
> >
> > Hmmm... I would expect that USE_LINUX_RPM automatically sets
> > USE_LINUX_PREFIX... to be verified.
> >
> 
> USE_LINUX_RPM implies the inclusion of bsd.linux-rpm.mk.
> bsd.linux-rpm.mk includes USE_LINUX= yes and USE_LINUX_PREFIX= yes.
> So putting USE_LINUX_PREFIX in the Makefile is redundant.

Thanks for verifying.

Bye,
Alexander.

-- 
http://www.Leidinger.net    Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org       netchild @ FreeBSD.org  : PGP ID = 72077137



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120111051419.00000fbb>