* [PATCH] don't delete debian directory in official debian builds
@ 2004-08-14 19:39 Andres Salomon
2004-08-15 7:15 ` Sam Ravnborg
0 siblings, 1 reply; 5+ messages in thread
From: Andres Salomon @ 2004-08-14 19:39 UTC (permalink / raw)
To: linux-kernel; +Cc: akpm
[-- Attachment #1.1: Type: text/plain, Size: 621 bytes --]
Hi,
Somewhere along the 2.6 series, there was a change made that causes
distclean to automatically delete the debian/ subdirectory from the top
of the kernel tree. This causes grief for the official debian kernel
packages; the debian directory shouldn't be deleted in the packages.
Please apply the attached patch; it causes the debian/ subdirectory to
only be deleted if there's no debian/official.
An even better solution would be to mark the debian directory as being
created by the kernel (touch debian/linus), and only delete it if the
kernel created it.
--
Andres Salomon <dilinger@voxel.net>
[-- Attachment #1.2: dont-delete-debian.patch --]
[-- Type: application/x-shellscript, Size: 739 bytes --]
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] don't delete debian directory in official debian builds
2004-08-14 19:39 [PATCH] don't delete debian directory in official debian builds Andres Salomon
@ 2004-08-15 7:15 ` Sam Ravnborg
2004-08-15 7:56 ` Andres Salomon
0 siblings, 1 reply; 5+ messages in thread
From: Sam Ravnborg @ 2004-08-15 7:15 UTC (permalink / raw)
To: Andres Salomon; +Cc: linux-kernel, akpm
On Sat, Aug 14, 2004 at 03:39:03PM -0400, Andres Salomon wrote:
> Hi,
>
> Somewhere along the 2.6 series, there was a change made that causes
> distclean to automatically delete the debian/ subdirectory from the top
> of the kernel tree. This causes grief for the official debian kernel
> packages; the debian directory shouldn't be deleted in the packages.
> Please apply the attached patch; it causes the debian/ subdirectory to
> only be deleted if there's no debian/official.
>
> An even better solution would be to mark the debian directory as being
> created by the kernel (touch debian/linus), and only delete it if the
> kernel created it.
Such special cases are not acceptable.
If this causes a problem then there are the following options:
1) Rename directory in debian or the kernel
2) Debian apply a patch to the kernel
Preference to 1).
Comments?
Sam
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] don't delete debian directory in official debian builds
2004-08-15 7:15 ` Sam Ravnborg
@ 2004-08-15 7:56 ` Andres Salomon
2004-08-15 8:15 ` Sam Ravnborg
0 siblings, 1 reply; 5+ messages in thread
From: Andres Salomon @ 2004-08-15 7:56 UTC (permalink / raw)
To: Sam Ravnborg; +Cc: linux-kernel, akpm
[-- Attachment #1: Type: text/plain, Size: 2569 bytes --]
On Sun, 2004-08-15 at 09:15 +0200, Sam Ravnborg wrote:
> On Sat, Aug 14, 2004 at 03:39:03PM -0400, Andres Salomon wrote:
> > Hi,
> >
> > Somewhere along the 2.6 series, there was a change made that causes
> > distclean to automatically delete the debian/ subdirectory from the top
> > of the kernel tree. This causes grief for the official debian kernel
> > packages; the debian directory shouldn't be deleted in the packages.
> > Please apply the attached patch; it causes the debian/ subdirectory to
> > only be deleted if there's no debian/official.
> >
> > An even better solution would be to mark the debian directory as being
> > created by the kernel (touch debian/linus), and only delete it if the
> > kernel created it.
>
> Such special cases are not acceptable.
>
This isn't a special case; this is debian using a directory for years,
and the kernel suddenly deciding to not only use the same directory, but
assume ownership of it and delete it when distcleaning. By providing a
rule that creates a debian package, you've managed to inconvenience the
people who actually create and maintain the main system your debian
package would run on. Please take this into consideration.
> If this causes a problem then there are the following options:
> 1) Rename directory in debian or the kernel
> 2) Debian apply a patch to the kernel
How about not deleting the directory if you haven't created it? Debian
already applies patches to the kernel, but we feed changes/fixes back to
linus and co; this is one of those fixes that should be in the main
kernel. If you're going to provide a make rule for *Debian*, then make
it consistent with Debian packaging standards. Otherwise, why even
bother? Debian has its own supported methods for creating kernel
packages (named, oddly enough, kernel-package).
Honestly, I'd rather see the deb rule removed completely; Debian and
Debian-derived distributions provide their own kernel packages. Users
who compile their own kernel have the option of using a Debian supported
method for building kernel packages (they can also simply copy images
around, without bothering w/ packages). Generating a package without
kernel-package is not supported; does it even handle grub and lilo
updates in postinst?
>
> Preference to 1).
I'm not quite sure what you mean w/ #1. You want Debian, which has used
the debian/ subdirectory for years, to use something else for its kernel
packages?
>
> Comments?
>
> Sam
--
Andres Salomon <dilinger@voxel.net>
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] don't delete debian directory in official debian builds
2004-08-15 7:56 ` Andres Salomon
@ 2004-08-15 8:15 ` Sam Ravnborg
2004-08-15 8:23 ` Andres Salomon
0 siblings, 1 reply; 5+ messages in thread
From: Sam Ravnborg @ 2004-08-15 8:15 UTC (permalink / raw)
To: Andres Salomon; +Cc: Sam Ravnborg, linux-kernel, akpm
On Sun, Aug 15, 2004 at 03:56:32AM -0400, Andres Salomon wrote:
> >
> > Preference to 1).
>
> I'm not quite sure what you mean w/ #1. You want Debian, which has used
> the debian/ subdirectory for years, to use something else for its kernel
> packages?
Let the kernel use a directory named 'deb' to match the deb-pkg target.
Sam
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] don't delete debian directory in official debian builds
2004-08-15 8:15 ` Sam Ravnborg
@ 2004-08-15 8:23 ` Andres Salomon
0 siblings, 0 replies; 5+ messages in thread
From: Andres Salomon @ 2004-08-15 8:23 UTC (permalink / raw)
To: Sam Ravnborg; +Cc: linux-kernel, akpm
[-- Attachment #1: Type: text/plain, Size: 560 bytes --]
On Sun, 2004-08-15 at 10:15 +0200, Sam Ravnborg wrote:
> On Sun, Aug 15, 2004 at 03:56:32AM -0400, Andres Salomon wrote:
> > >
> > > Preference to 1).
> >
> > I'm not quite sure what you mean w/ #1. You want Debian, which has used
> > the debian/ subdirectory for years, to use something else for its kernel
> > packages?
>
> Let the kernel use a directory named 'deb' to match the deb-pkg target.
That works for me. I assume the idea is to use $(SRCDIR)/deb/debian
instead of $(SRCDIR)/debian.
--
Andres Salomon <dilinger@voxel.net>
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-08-15 8:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-14 19:39 [PATCH] don't delete debian directory in official debian builds Andres Salomon
2004-08-15 7:15 ` Sam Ravnborg
2004-08-15 7:56 ` Andres Salomon
2004-08-15 8:15 ` Sam Ravnborg
2004-08-15 8:23 ` Andres Salomon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox