Re: Shouldn't "make replace" pull in pkgtools/pkg_tarup?

> BOOTSTRAP_DEPENDS means not the package itself require it,
> the Pkgsrc infrastructure require it.
Of course I understand it.
######################################################################
### bootstrap-depends (PUBLIC, pkgsrc/mk/depends/depends.mk)
######################################################################
### bootstrap-depends is a public target to install any missing
### dependencies needed during stages before the normal "depends"
### stage. These dependencies are listed in BOOTSTRAP_DEPENDS.
0 ~>grep BOOTSTRAP_DEPENDS /srv/pkgsrc/doc/pkgsrc.txt
1 ~>
> For example, I has used BOOTSTRAP_DEPENDS+=wget for some packages
> because of failed to fetch with tnftp (need http cookie).
This is for in-place package building. Right? In case of distbb,
tools like wget,rsync,sudo,screen etc. are installed to /usr/pkg_distbb and
are not touched at all while bulk building.
> pkg_tarup cannot be added to BOOTSTRAP_DEPENDS, because after enter
> "replace" target, the pkgsrc can detect of need of pkg_tarup,
> but it's too late, resolving dependency stage is already done.
I don't understand this. If tnftp and wget can be added BOOTSTRAP_DEPENDS,
why pkg_tarup cannot. 'make replace' is run after 'make depends'.
> On Tue, 28 Oct 2008 21:49:40 +0900, Aleksey Cheusov
> <cheusov%tut.by@localhost> wrote:
>> 3) Graph from 2) is incomplete. Dependencies from digest and checkperms
>> are missed. I'm aware about BOOTSTRAP_DEPENDS but this doesn't solve
>> the problem with 'make replace' that needs pkg_tarup _absent_
>> in BOOTSTRAP_DEPENDS. DISTBB is smart enough to run 'make replace'
>> (instead of make install) for packages like pkg_install.
> Why "make replace" is required for DISTBB?
It is not _required_ but _may_ be used instead of 'make install'
for bootstrap packages always installed and marked as "not for deletion".
>> 6) I don't think it is good idea to run digest, checkperms and
>> pkg_tarup from /usr/pkg_distbb
> The pkgsrc should handle build time tools dependency and
> package dependency (library dependency, runtime tools, and so on)
> separetely (HOST and TARGET?).
> It also improve cross build with pkgsrc...
I think crossbuilding is completely different and much harder question.
Currently distbb doesn't support crossbuilding.
Is pkgsrc ready for it?
0 ~>grep -i 'cross.*build' /srv/pkgsrc/doc/pkgsrc.txt
* pkgtools/libkver: Spoof kernel version for chrooted cross builds.
0 ~>
Is there roadmap/plan/future_API?
Should crossbuilding support be implemented in pkgsrc itself
or in the separate and completely independant projects like
bbf/pbulk/distbb etc. is another question.
--
Best regards, Aleksey Cheusov.