[Midnightbsd-users] ugly method to test port dependencies
Stevan Tiefert
stevan_tiefert_midnight at yahoo.de
Wed Aug 15 14:17:07 EDT 2007
Chris Reinhardt wrote:
> On 8/15/07, Stevan Tiefert <stevan_tiefert_midnight at yahoo.de> wrote:
>> Hello list,
>>
>> I am asking if my method of finding port dependencies is usable. I think
>> it is :-)
>>
>> I do a
>>
>> pkg_delete \*
>>
>> then I delete the Distfiles and Packages or packages directory.
>>
>> On this I got mports to do all from the beginning. My naked system. The
>> problem of not using cached precompiled packages appeared during libXft.
>> During make libXft recognized that Xrender.h (xorg-libraries was not
>> installed) was not on my system. Then I had to compile xorg-libraries
>> manually before compiling libXft. When I deleted everything with
>> pkg_delete \* and made a make install and using the precompiled cached
>> packages the error didn't appeared. That is the reason why the Packages
>> or packages directory should be deleted.
>>
>> Then I perform a make install and then I wait until it succed or an
>> error appears...
>>
>> I know it is slow because of not using precompiled packages, but I think
>> it is than possible to find every missing dependencies.
>>
>> With regards and awaiting your respons
>
> I'm not entirely sure what your question is, but I'll share a few
> thoughts on the cached-install concept.
>
> Basically, I'm not sure it is going to stay. It was originally added
> because someone (I forget who, could very well be me) said, "Hey we
> could do this!" As time has gone by, it has been shown to have
> problems in several edge cases. I'm not sure if you've run into one
> of those, but it sounds like it.
>
> cached-install is an optimization that most people don't need. It
> only saves you time if you are installing and deinstalling software
> often. Most people install something and /use/ it. Most
> optimizations are really just cheats, and this is no exception.
>
Hello Chris,
I wanted only to discuss about a method to find missing dependencies.
Then I thought a little bit and I decided it would be the best to use a
naked system. That means no ports installed. The reason why I am using
pkg_delete \*. Then to install via make a port and see what happens.
Now then I was making libXft something interessting happened. The cached
tbz port of libXft didn't needed the existence of Xrender.h
(xorg-libraries), but the make install needed xorg-libraries. After
creating a tbz-file it wasn't needed anymore.
I don't know if the xorg-libraries is a missing dependency or not? I
would think, yes, because without it will not build. But when it is
build the dependency is not needed in the Makefile.
The next thinking problem is: I found many ports (I am running a build
server) which needs xorg-libraries to be compiled. But they are normally
running under X and to run X you will install xorg-meta-port. That
brings me to the question: is xorg-libraries a missing dependency for
audio/nas? Because without xorg-libraries it will not compile or is it
not because , if you want to run you need xorg?
I was only searching for a way to control if a port is running. Becauxe
you have no pointyhat, I had to do it on a naked (no ports installed) on
a build server for each package separately. But cached packages are for
this sort of debbuging not good, they will not clarify if another user
will get no problems...
With regards
Stevan Tiefert
More information about the Midnightbsd-users
mailing list