pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/45450: pkgtools/p5-pkgsrc-Dewey fails to build with non-standard $WRKOBJDIR
The following reply was made to PR pkg/45450; it has been noted by GNATS.
From: John Marino <netbsd%marino.st@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: pkg/45450: pkgtools/p5-pkgsrc-Dewey fails to build with
non-standard
$WRKOBJDIR
Date: Mon, 17 Oct 2011 10:53:56 +0200
On 10/13/2011 4:55 PM, David Holland wrote:
> The following reply was made to PR pkg/45450; it has been noted by GNATS.
>
> From: David Holland <dholland-pbugs%netbsd.org@localhost>
> (...)
> It's not sacred, it's just a special case, and it's never going to
> work. (Or at least, not until make's objdir handling misfeature is
> expunged, but that isn't happening anytime soon.)
>
> Something like
>
> .if ${.OBJDIR} != ${.CURDIR}
> .error "Hit an objdir, please don't do this"
> .endif
>
> will probably work, but the error isn't going to be comprehensible.
> Writing a test that will allow reporting what went wrong requires
> duplicating make's rather complicated objdir search logic, which isn't
> a very good idea.
>
> In the meantime, just change your WRKOBJDIR to /usr/obj/pkg. This will
> also help keep it from getting mixed up with object dirs from the base
> system build.
>
> --
> David A. Holland
> dholland%netbsd.org@localhost
Hi David,
I would advocate a simple check as you mention above, but with an error
that points to a paragraph on the pkgsrc guide (to be added) that
describes the objdir limitation. I stumbled upon this, so other users
may in the future as well.
That said, I've changed my objdir, so if such a check is not going to be
added for whatever reason, somebody can close pkg/45450.
Regards,
John
Home |
Main Index |
Thread Index |
Old Index