Bug#131030: Please check this patch

2002-03-05 Thread Matt Kraai

On Tue, Mar 05, 2002 at 06:32:54PM -0700, Chris Tillman wrote:
> On Tue, Mar 05, 2002 at 08:12:16AM -0800, Matt Kraai wrote:
> > diff -u -r1.15 bootprep.sh
> > +++ bootprep.sh 2002/03/05 16:09:19
> > @@ -78,6 +78,10 @@
> >  sed 's:CONFIG_NFS_FS=y:CONFIG_NFS_FS=y \
> >  CONFIG_ROOT_NFS=y:' \
> >  .config.ipauto > .config
> > +
> > +# Set the subarch
> > +sed 's:EXTRAVERSION =:EXTRAVERSION = prep:' Makefile > Makefile.new
> > +mv Makefile.new Makefile
> >   
> >  # Build CD/net kernel boot image
> >  make oldconfig && make dep && make clean && make zImage.initrd
> 
> Thanks, Matt, shall I apply it?

I know that it builds, but I don't know if it works.  Go ahead
and commit it, and we can ask the submitter to try again after
the next build.

Matt



msg16735/pgp0.pgp
Description: PGP signature


Bug#131030: Please check this patch

2002-03-05 Thread Chris Tillman

On Tue, Mar 05, 2002 at 08:12:16AM -0800, Matt Kraai wrote:
> On Mon, Mar 04, 2002 at 03:41:54PM -0700, Chris Tillman wrote:
> > I saw your post in January where you checked and fixed up the kernel 
> > script bootprep.sh for boot-floppies. Would you check this patch which 
> > I think might close bug #131030?
> > 
> > I suppose bootprep.sh itself wouldn't need to change; I just thought 
> > it might be well to carry the changed variable name through.
> 
> This patch will try to grab kernel-source-2.2.20-prep.tar.gz,
> which doesn't exist.
> 
> I think the following patch is sufficient.
> 
> Matt
> 
> Index: bootprep.sh
> ===
> RCS file: /cvs/debian-boot/boot-floppies/bootprep.sh,v
> retrieving revision 1.15
> diff -u -r1.15 bootprep.sh
> --- bootprep.sh   2001/05/30 14:51:23 1.15
> +++ bootprep.sh   2002/03/05 16:09:19
> @@ -78,6 +78,10 @@
>  sed 's:CONFIG_NFS_FS=y:CONFIG_NFS_FS=y \
>  CONFIG_ROOT_NFS=y:' \
>  .config.ipauto > .config
> +
> +# Set the subarch
> +sed 's:EXTRAVERSION =:EXTRAVERSION = prep:' Makefile > Makefile.new
> +mv Makefile.new Makefile
>   
>  # Build CD/net kernel boot image
>  make oldconfig && make dep && make clean && make zImage.initrd

Thanks, Matt, shall I apply it?

-- 
*--v- Installing Debian GNU/Linux 3.0 v--*
|    |
|   debian-imac (potato):    |
|Chris Tillman[EMAIL PROTECTED]  |
|   May the Source be with you   |
**



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Bug#131030: Please check this patch

2002-03-05 Thread Matt Kraai

On Mon, Mar 04, 2002 at 03:41:54PM -0700, Chris Tillman wrote:
> I saw your post in January where you checked and fixed up the kernel 
> script bootprep.sh for boot-floppies. Would you check this patch which 
> I think might close bug #131030?
> 
> I suppose bootprep.sh itself wouldn't need to change; I just thought 
> it might be well to carry the changed variable name through.

This patch will try to grab kernel-source-2.2.20-prep.tar.gz,
which doesn't exist.

I think the following patch is sufficient.

Matt

Index: bootprep.sh
===
RCS file: /cvs/debian-boot/boot-floppies/bootprep.sh,v
retrieving revision 1.15
diff -u -r1.15 bootprep.sh
--- bootprep.sh 2001/05/30 14:51:23 1.15
+++ bootprep.sh 2002/03/05 16:09:19
@@ -78,6 +78,10 @@
 sed 's:CONFIG_NFS_FS=y:CONFIG_NFS_FS=y \
 CONFIG_ROOT_NFS=y:' \
 .config.ipauto > .config
+
+# Set the subarch
+sed 's:EXTRAVERSION =:EXTRAVERSION = prep:' Makefile > Makefile.new
+mv Makefile.new Makefile
  
 # Build CD/net kernel boot image
 make oldconfig && make dep && make clean && make zImage.initrd



msg16669/pgp0.pgp
Description: PGP signature


Bug#131030: Please check this patch

2002-03-04 Thread Chris Tillman


I saw your post in January where you checked and fixed up the kernel 
script bootprep.sh for boot-floppies. Would you check this patch which 
I think might close bug #131030?

I suppose bootprep.sh itself wouldn't need to change; I just thought 
it might be well to carry the changed variable name through.

Index: bootprep.sh
===
RCS file: /cvs/debian-boot/boot-floppies/bootprep.sh,v
retrieving revision 1.15
diff -u -r1.15 bootprep.sh
--- bootprep.sh 2001/05/30 14:51:23 1.15
+++ bootprep.sh 2002/03/05 05:18:58
@@ -6,11 +6,11 @@
  
 # Usage message 
 if [ $# -lt 2 ]; then
-echo "usage: "$0" archive kver" 1>&2
+echo "usage: "$0" archive prepkver" 1>&2
 cat 1>&2 << EOF
  
 archive: the directory where Debian binary packages will be downloaded
-   kver: kernel version
+   prepkver: kernel version
 EOF
  
 exit -1
@@ -20,7 +20,7 @@
 archive=$1
 
 # set this to the kernel version
-kver=$2
+prepkver=$2
 
 #---
 # build PReP bootable images
@@ -35,21 +35,21 @@
 make_tmpdir $builddir
 
 # Extract kernel source and patches 
-THEPKG=$(grab_paths kernel-source-$kver)
+THEPKG=$(grab_paths kernel-source-$prepkver)
 dpkg --extract $THEPKG $builddir
-THEPKG=$(grab_paths kernel-patch-$kver-powerpc)
+THEPKG=$(grab_paths kernel-patch-$prepkver-powerpc)
 dpkg --extract $THEPKG $builddir
 
 # Unpack kernel source 
 cd $builddir/usr/src
-if [ -f kernel-source-${kver}.tar.gz ]; then
-  tar zxf kernel-source-$kver.tar.gz
+if [ -f kernel-source-${prepkver}.tar.gz ]; then
+  tar zxf kernel-source-$prepkver.tar.gz
 else
-  tar x --bzip2 -f kernel-source-$kver.tar.bz2
+  tar x --bzip2 -f kernel-source-$prepkver.tar.bz2
 fi
 
 # Patch kernel source - FIXME: allow for other patches
-cd kernel-source-$kver
+cd kernel-source-$prepkver
 # this patch may be getting applied twice.  Comment
 # this out if you get messages about patches being already
 # applied.
Index: config
===
RCS file: /cvs/debian-boot/boot-floppies/config,v
retrieving revision 1.137
diff -u -r1.137 config
--- config  2002/03/04 01:02:48 1.137
+++ config  2002/03/05 05:18:58
@@ -28,6 +28,7 @@
 endif
 ifeq "$(architecture)" "powerpc"
 kver   := 2.2.20
+prepkver:= 2.2.20-prep
 pcmcia_kver := 2.2.20-pmac
 apuskver   := 2.2.10
 # NewWorld powermacs really need a 2.4 kernel
Index: make/powerpc.rules
===
RCS file: /cvs/debian-boot/boot-floppies/make/powerpc.rules,v
retrieving revision 1.3
diff -u -r1.3 powerpc.rules
--- make/powerpc.rules  2001/12/19 00:44:21 1.3
+++ make/powerpc.rules  2002/03/05 05:18:58
@@ -6,7 +6,7 @@
 #---
 
 bootprep.bin bootprepfull.bin: bootprep.sh rootprep.bin
-   $(ROOTCMD) ./bootprep.sh $(archive) $(kver)
+   $(ROOTCMD) ./bootprep.sh $(archive) $(prepkver)
 ##
 ## XXX: apus isn't keeping up with the other powerpc kernels
 ##

-- 

*--v- Installing Debian GNU/Linux 3.0 v--*
|    |
|   debian-imac (potato):    |
|Chris Tillman[EMAIL PROTECTED]  |
|   May the Source be with you   |
**



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]