Bug#361362: [Pbuilder-maint] Bug#361362: pbuilder: DEB_BUILD_OPTIONS
not supported (?)
Junichi Uekawa
dancer at netfort.gr.jp
Sun Apr 9 01:33:05 UTC 2006
Hi,
> > You might want to try out
> >
> > sudo /usr/bin/env
> >
> > too.
> >
> > Sudo has changed behavior in 1.6.8p12-2.
>
> Yeah, I noticed that afterwards. I should have checked there before.
> Anyways, this means that now there is no way to pass DEB_BUILD_OPTIONS
> to dpkg-buildpackage out-of-the-box. Maybe it would be a wishlist on
> pbuilder to add such an option, or one on dpkg-buildpackage.
> What do you think ?
There are several options
1. document recommended sudo configuration so that users will add the
required sudo configuration to frequently-used environment
variables. DEB_BUILD_OPTIONS, PATH(for ccache).
pdebuild is currently broken by this sudo change, and at least
requires BUILDRESULTUID and BUILDRESULTGID env vars to pass through
sudo.
2. document that --configfile option is the recommended way for
specifying the environment variables, and provide a template
configfile which just sets DEB_BUILD_OPTIONS, with some
documentation.
3. add an -e/--set-envvar option mirroring that of debuild.
Frankly, pbuilder codewise, 1 is with the least impact. 2 requires
some change to pdebuild, 3 requires more changes and thorough testing.
regards,
junichi
--
dancer@{debian.org,netfort.gr.jp} Debian Project
More information about the Pbuilder-maint
mailing list