Re: Bug#279678: kernel-source-2.6.9: make mrproper fails
reassign 279678 kernel-package
tag 279678 +patch
On Mon, Nov 08, 2004 at 03:00:13PM +0900, Horms wrote:
> On Fri, Nov 05, 2004 at 07:46:03AM -0500, Leif W wrote:
> > ----- Original Message -----
> > From: "Horms" <email@example.com>
> > To: "Leif W" <firstname.lastname@example.org>; <email@example.com>
> > Sent: Thursday, November 04, 2004 23:34
> > Subject: Re: Bug#279678: kernel-source-2.6.9: make mrproper fails
> > > On Thu, Nov 04, 2004 at 10:41:54AM -0500, Leif W wrote:
> > > > Package: kernel-source-2.6.9
> > > > Version: 2.6.9-1
> > > > Severity: important
> > > >
> > > >
> > > > -> make mrproper
> > > > scripts/Makefile.clean:10: scripts/package/Makefile: No such file or
> > directory
> > > > make: *** No rule to make target `scripts/package/Makefile'.
> > Stop.
> > > > make: *** [scripts/package] Error 2
> > > > make: *** [_mrproper_scripts] Error 2
> > >
> > > Could you please give some indication of what directory you are
> > running
> > > this command in?
> > Sorry, but I felt it was fairly self-explanatory, so removed most of my
> > prompt for brevity. It's the standard toplevel location which has
> > worked for me for the past 7.5 years with various kernels and
> > distributions. ;-) In this particular case,
> > "/usr/src/kernel-source-2.6.9/" which is the toplevel source directory
> > for the kernel tree as extracted from the kernel-source-2.6.9.tar.bz2
> > archive, obtained from Debian through the "unstable" distribution.
> > Please let me know if there is any further information that is required,
> > or if you would like me to try some modifications. Not sure exactly
> > where to start, so I would need a hint. I am likely capable of Makefile
> > and shell script modifications, and of course creating unified diffs and
> > applying patches.
> Thanks for the additional information. There does indeed seem to be a
> bit of a problem there. The tarball seems to include
> scripts/package/builddeb.dist and scripts/package/Makefile.dist
> instead of scripts/package/builddeb and scripts/package/Makefile.
> Persumably the result of some quirk a patch applied to the tarball
> before it was uploaded to d.o. I will take a look into it.
> In the mean time running the following should allow your build to work.
> mv scripts/package/builddeb.dist scripts/package/builddeb
> mv scripts/package/Makefile.dist scripts/package/Makefile
I took a closer look into this and it seems to be related to
an unfortunate interaction between the kernel's Makefile
and Debian's make-kpkg. The attached patch should resolve
the problem by creating a non-empty scripts/package/Makefile -
empty files are purged by a make distclean, which is called
by make-kpkg as part of the build process.
I have reassigned the bug to kernel-package accordingly.
Manoj has already take a look at this and aggreed to the fix
--- /usr/share/kernel-package/rules.dist 2004-11-08 15:36:31.000000000 +0900
+++ /usr/share/kernel-package/rules 2004-11-08 15:37:05.000000000 +0900
@@ -1576,7 +1576,7 @@
mv -f scripts/package/builddeb scripts/package/builddeb.dist
test ! -e scripts/package/Makefile || \
(mv -f scripts/package/Makefile scripts/package/Makefile.dist && \
- touch scripts/package/Makefile)
+ echo "# Dummy file " > scripts/package/Makefile)
@test -f $(DEBDIR)/rules || \
echo Error: Could not find $(DEBDIR)/rules
-test ! -f stamp-debian && test ! -f debian/official && \