public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
* packaging issues:  some serious, some not so serious
@ 2008-02-18 16:35 Robert P. J. Day
  2008-02-18 18:17 ` Sam Ravnborg
  0 siblings, 1 reply; 9+ messages in thread
From: Robert P. J. Day @ 2008-02-18 16:35 UTC (permalink / raw)
  To: kbuild devel list


  there are a few bugs in the packaging targets, both with local
packaging and remote packaging if you've used "O=" for your kernel
build.  first, let's consider local builds.

  consider the packaging makefile scripts/package/Makefile.  these
early lines look entirely superfluous (nothing uses the variable
TAR_IGNORE):

...
# Ignore the following files/directories during tar operation
TAR_IGNORE := --exclude SCCS --exclude BitKeeper --exclude .svn --exclude CVS
...

  next, related to my earlier email, if your kernel source happens to
be in its own filesystem so that there's a "lost+found" directory, any
"tar" operation is going to fail due to lack of permissions for that
directory:

$ make rpm-pkg
...
find: ./lost+found: Permission denied
...
tar: kernel-2.6.25rc200015g1309d4e/./lost+found: Cannot open:
Permission denied
tar: Error exit delayed from previous errors
make[1]: *** [rpm-pkg] Error 2
make: *** [rpm-pkg] Error 2
$

  it seems to be sufficient to apply the following patch:

diff --git a/scripts/package/Makefile b/scripts/package/Makefile
index 5e32607..d3307f1 100644
--- a/scripts/package/Makefile
+++ b/scripts/package/Makefile
@@ -39,7 +39,7 @@ $(objtree)/kernel.spec: $(MKSPEC) $(srctree)/Makefile
 rpm-pkg rpm: $(objtree)/kernel.spec FORCE
        $(MAKE) clean
        $(PREV) ln -sf $(srctree) $(KERNELPATH)
-       $(PREV) tar -cz $(RCS_TAR_IGNORE) -f $(KERNELPATH).tar.gz $(KERNELPATH)/.
+       $(PREV) tar -cz --exclude lost+found $(RCS_TAR_IGNORE) -f $(KERNELPATH).tar.gz $(KERNELPATH)/.
        $(PREV) rm $(KERNELPATH)

        set -e; \


but it's probable that a number of other operations need to take a
"lost+found" directory into account; that is, anything involving
"tar".

  observations on remote packaging to come.

rday
--


========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
    Have classroom, will lecture.

http://crashcourse.ca                          Waterloo, Ontario, CANADA
========================================================================

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-02-19 13:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-18 16:35 packaging issues: some serious, some not so serious Robert P. J. Day
2008-02-18 18:17 ` Sam Ravnborg
2008-02-18 18:20   ` Robert P. J. Day
2008-02-19  9:43   ` Robert P. J. Day
2008-02-19  9:52     ` Sam Ravnborg
2008-02-19 10:15       ` Robert P. J. Day
2008-02-19 11:49         ` Sam Ravnborg
2008-02-19 12:25           ` Robert P. J. Day
2008-02-19 13:13             ` Sam Ravnborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox