Bug#247241: FTBFS: no rule to make target build_tree when running 'debian/rules binary'
At Tue, 4 May 2004 18:44:58 +0200,
Jeroen van Wolffelaar wrote:
> On Mon, May 03, 2004 at 09:36:07PM -0400, Jurij Smakov wrote:
> > According to chapter 4.8 of Policy "The binary target must be all that
> > is necessary for the user to build the binary package(s) produced from
> > this source package."
>
> Also, according to the same section, the binary-{indep,arch} and binary
> targets must depend on the build target. The attached patch fixes this,
> which solves this bug. The binary target indirectly depends on build via
> binary-indep and binary-arch.
>
> --- debian/rules.old 2004-05-04 18:36:27.000000000 +0200
> +++ debian/rules 2004-05-04 18:38:38.000000000 +0200
> @@ -148,10 +148,10 @@
> rm -rf debian/include
>
> # Required Debian targets
> -binary-indep: testroot debian/control $(build-tree) $(patsubst %,$(stamp)install_%,$(GLIBC_PASSES)) $(patsubst %,$(stamp)binaryinst_%,$(DEB_INDEP_REGULAR_PACKAGES))
> +binary-indep: build testroot debian/control $(build-tree) $(patsubst %,$(stamp)install_%,$(GLIBC_PASSES)) $(patsubst %,$(stamp)binaryinst_%,$(DEB_INDEP_REGULAR_PACKAGES))
> # NOTE: Putting install_ stamps before binaryinst_ stamps in the list is the
> # wrong way to represent dependencies. Fix this.
> -binary-arch: testroot debian/control $(build-tree) \
> +binary-arch: build testroot debian/control $(build-tree) \
> $(patsubst %,$(stamp)install_%,$(GLIBC_PASSES)) \
> $(patsubst %,$(stamp)binaryinst_%,$(DEB_ARCH_REGULAR_PACKAGES)) \
> $(patsubst %,$(stamp)binaryinst_%,$(DEB_UDEB_PACKAGES))
Thanks, it's correct. I've put it in.
Be carefult that you should set "DEB_BUILD_OPTIONS=nocheck" environment
variable to build with debian/rules binary.
Regards,
-- gotom
Reply to: