Subject: Re: change to check/check-shlibs.mk breaks library path checks
To: None <tech-pkg@netbsd.org>
From: Blair Sadewitz <blair.sadewitz@gmail.com>
List: tech-pkg
Date: 03/25/2007 01:57:55
I did revert, and as far as I can tell, this is the cause of the problem.

I'm unfortunately not nearly as familiar with writing makefiles as I'd
like (I have a huge amount of BSD system administration experience,
but I never had to do much with the development side of things), but
my intuition was that it had to do with that regexp, as the leading /
was no longer prepended to it.

It is humbling to think that this whole time no libraries were being
checked and we only find out about this in an attempt to do the right
thing. ;)

I work on pkgsrc/NetBSD because I find learning about this really
enjoyable, so I'm going to see (as soon as I can find the time, as the
queue of things to do never grows smaller, heh, I've got so many
little NetBSD/pkgsrc related side-projects).

I'm not sure how to do this in a platform-independent way.  Therefore,
we either have to: (1) figure out an elegant OS-indepdent way to do
this or (2) include makefile rules with shell scripts which utilitize
the appropriate platform-specific tools in mk/platform.  As of now,
I'm voting for (2), at least given the amount of knowledge I have on
the subject.

It might be most productive if we consulted some people on
tech-toolchain about this.  I'm not sure that the gentoo solution is
adequate (I don't know much about linux distributions) or not, I have
to look into it, but it seems like a bit over-engineered to me.  It's
late, so I'll sleep on it and do some googling and let you know how it
goes.

Please do bear with me, for as I said before I am inexperienced
relative to a lot of people who work on pkgsrc with such matters (I
spent my time at college as a philosophy major, heh).  Right now I'm
also trying to get mesa to build properly with destdir support.  If
you want to have some real fun with GNU make, give that a shot. ;)
I'm attempting to just write my own makefiles because working with
theirs is just so annoying.

Let me know if you think of anything.

Regards,

--Blair






-- 
Support WFMU-FM: free-form radio for the masses!
<http://www.wfmu.org/>

"The frivolity and boredom which unsettle the established order, the
vague foreboding of something unknown, these are the heralds of
approaching change.  The gradual crumbling that left unaltered the
face of the whole is cut short by a sunburst which, in one flash,
illuminates the features of the new world."  --G.W.F. Hegel,
_Phenomenology of Spirit_ 5:11