On Mon, Oct 20, 2003 at 06:32:42PM +0200, Bill Allombert wrote:
> On Mon, Oct 20, 2003 at 03:30:52PM +0100, Andrew Suffield wrote:
> > > The defect is that build-indep is made as root. The advantage over
> > > Andrew solution is to not make build-arch as root.
> >
> > We haven't built packages as root for years. This argument seems
> > pretty irrelevant.
>
> Buildd do build packages as root, AFAIK
They don't. I don't think any of them do.
> and there are precisely the
> targeted audience. Also policy don't mandate packages being buildable
> under fakeroot.
Building under fakeroot is mandatory because the buildds use it. I'm
not sure why this is relevant, though.
> > > > > Ultimately we should either deprecate the build* targets, or make
> > > > > build-{arch,indep} mandatory and deprecate build.
> > >
> > > Again there are other possibilities, like using make variable for the
> > > transition.
> >
> > I say this is impossible, on account of it being precisely equivalent
> > to using the build* targets. Describe such a possibility in detail if
> > you think otherwise.
>
> I don't pretend to implement policy as its stand now, but to
> provide an alternative which is backward compatible.
>
> Here a refinement the proposal in <nkDa6B.A.CvH.1lmk_@murphy>:
>
> Add at the top of debian/rules
>
> BUILD=build-arch build-indep
>
> and changes build target to depend on
>
> build: $(BUILD)
>
> At this point build-arch is emulated by runinng
>
> debian/rules build BUILD=build-arch
>
> and build-indep by
>
> debian/rules build BUILD=build-indep
>
> so far it is the cleanest solution.
Aside from anything else, the people who want debian/rules to be
something other than a makefile will object.
I also fail to see how it is any way superior to adding build-arch and
build-indep to all remaining rules files and then switching
dpkg-buildpackage and policy over. Note that it will break in pretty
much the same way as #216492 (subject of this thread) if the rules
file has not been converted to your scheme.
--
.''`. ** Debian GNU/Linux ** | Andrew Suffield
: :' : http://www.debian.org/ |
`. `' |
`- -><- |
Attachment:
signature.asc
Description: Digital signature