On 10/04/2011 02:31 PM, Marc Espie wrote:
On Tue, Oct 04, 2011 at 02:11:13PM -0400, David Cantrell wrote:
On 10/04/2011 01:39 PM, Antoine Jacoutot wrote:
On Tue, 4 Oct 2011, David Cantrell wrote:

I'm working on a local port where the source archive is not available via
anything other than svn.  I'm trying to use pre-fetch to see if a checkout of
the release I want already exists in /usr/ports/distfiles and if not, check it
out.  I'm trying something like this:

Why don't you create a tarball of the checkout and host it?

That's not really the solution I'm after.  The project itself does
not have a release engineer and I'm not looking to become one for
it.  I am just trying to put together a local port that some other
coworkers can use to build packages of a specific checkout from the
svn repo.

Don't use pre-fetch, it's heavily deprecated. In fact, don't override
any of pre-fetch, do-fetch, post-fetch.

Noted. Please remove information about overriding *-fetch from the bsd.port.mk man page.

I have code around here somewhere that actually turns these (and other
targets that shouldn't *ever* get used into fatal errors.

I do see that in 4.9, the system prevents you from overriding do-fetch. But pre-fetch and post-fetch are still honored.

Release engineer or not, we really only support tarballs. make one, get
a shell script to make one, or whatever.

OK. But this is probably something worth thinking about for future development. I've noticed many upstream projects eliminating tarballs in favor of telling you a git tag to use 'git archive --format=tar' on. While it may not be something anyone cares about for the main ports tree, having the functionality there for people who keep things in /usr/ports/mystuff would probably be useful.

I wouldn't mind helping with this either, as it's something I see myself needing more and more.

As far as exists(): it's frowned upon, since it gets evaluated *each
time* the Makefile gets used. In most circumstances, it's ways better
to use test in the shell fragment associated to a given target.

Oh well, was trying to use more of make's internal functions than I guess I could reliably count on.

Thanks,

--
David Cantrell <david.l.cantr...@gmail.com>
WH6DSN | http://blog.burdell.org/

Reply via email to