[Glibc-bsd-commits] r1490 - in trunk/kfreebsd-6/debian: . patches
Robert Millan
rmh at costa.debian.org
Tue Apr 25 20:45:32 UTC 2006
Author: rmh
Date: 2006-04-25 20:45:31 +0000 (Tue, 25 Apr 2006)
New Revision: 1490
Added:
trunk/kfreebsd-6/debian/patches/009_disable_duped_modules.diff
Modified:
trunk/kfreebsd-6/debian/changelog
Log:
Disable build of modules that are already part of the kernel image. This gives the .deb a size loss of ~1600 KB (~4 MB once installed).
Modified: trunk/kfreebsd-6/debian/changelog
===================================================================
--- trunk/kfreebsd-6/debian/changelog 2006-04-25 19:15:04 UTC (rev 1489)
+++ trunk/kfreebsd-6/debian/changelog 2006-04-25 20:45:31 UTC (rev 1490)
@@ -51,16 +51,19 @@
* Upstream now builds with "-O2 -frename-registers" so let's do that
as well.
- arch/*/*.config
+ * Disable build of modules that are already part of the kernel image.
+ This gives the .deb a size loss of ~1600 KB (~4 MB once installed).
+ - patches/009_disable_duped_modules.diff
[ Aurelien Jarno ]
- * Fix a remote denial of service in NFS server (FreeBSD-SA-06:10.nfs /
+ * Fix a remote denial of service in NFS server (FreeBSD-SA-06:10.nfs /
CVE-2006-0900).
* Fix an IPsec replay attack vulnerability (FreeBSD-SA-06:11.ipsec /
CVE-2006-0905).
* Fix an FPU information disclosure on AMD processors (FreeBSD-SA-06:14.fpu /
- CVE-2006-1056).
+ CVE-2006-1056).
- -- Robert Millan <rmh at aybabtu.com> Fri, 3 Mar 2006 12:48:33 +0100
+ -- Robert Millan <rmh at aybabtu.com> Tue, 25 Apr 2006 22:44:45 +0200
kfreebsd-5 (5.3-6) unstable; urgency=low
Added: trunk/kfreebsd-6/debian/patches/009_disable_duped_modules.diff
===================================================================
--- trunk/kfreebsd-6/debian/patches/009_disable_duped_modules.diff 2006-04-25 19:15:04 UTC (rev 1489)
+++ trunk/kfreebsd-6/debian/patches/009_disable_duped_modules.diff 2006-04-25 20:45:31 UTC (rev 1490)
@@ -0,0 +1,146 @@
+diff -ur sys/conf.old/Makefile.alpha sys/conf/Makefile.alpha
+--- sys/conf.old/Makefile.alpha 2006-04-25 18:41:51.000000000 +0200
++++ sys/conf/Makefile.alpha 2006-04-25 18:51:49.000000000 +0200
+@@ -28,6 +28,8 @@
+ .endif
+ .include "$S/conf/kern.pre.mk"
+
++%WITHOUT_MODULES
++
+ %BEFORE_DEPEND
+
+ %OBJS
+diff -ur sys/conf.old/Makefile.amd64 sys/conf/Makefile.amd64
+--- sys/conf.old/Makefile.amd64 2006-04-25 18:41:51.000000000 +0200
++++ sys/conf/Makefile.amd64 2006-04-25 18:51:49.000000000 +0200
+@@ -38,6 +38,8 @@
+
+ MKMODULESENV+= MACHINE=amd64
+
++%WITHOUT_MODULES
++
+ %BEFORE_DEPEND
+
+ %OBJS
+diff -ur sys/conf.old/Makefile.arm sys/conf/Makefile.arm
+--- sys/conf.old/Makefile.arm 2006-04-25 18:41:51.000000000 +0200
++++ sys/conf/Makefile.arm 2006-04-25 18:51:49.000000000 +0200
+@@ -44,6 +44,9 @@
+ .if !defined(DEBUG)
+ CFLAGS += -mno-apcs-frame
+ .endif
++
++%WITHOUT_MODULES
++
+ %BEFORE_DEPEND
+
+ %OBJS
+diff -ur sys/conf.old/Makefile.i386 sys/conf/Makefile.i386
+--- sys/conf.old/Makefile.i386 2006-04-25 18:41:51.000000000 +0200
++++ sys/conf/Makefile.i386 2006-04-25 18:51:49.000000000 +0200
+@@ -32,6 +32,8 @@
+
+ MKMODULESENV+= MACHINE=i386
+
++%WITHOUT_MODULES
++
+ %BEFORE_DEPEND
+
+ %OBJS
+diff -ur sys/conf.old/Makefile.ia64 sys/conf/Makefile.ia64
+--- sys/conf.old/Makefile.ia64 2006-04-25 18:41:51.000000000 +0200
++++ sys/conf/Makefile.ia64 2006-04-25 18:51:49.000000000 +0200
+@@ -38,6 +38,8 @@
+
+ ASM_CFLAGS= -x assembler-with-cpp -Wa,-x -DLOCORE ${CFLAGS}
+
++%WITHOUT_MODULES
++
+ %BEFORE_DEPEND
+
+ %OBJS
+diff -ur sys/conf.old/Makefile.pc98 sys/conf/Makefile.pc98
+--- sys/conf.old/Makefile.pc98 2006-04-25 18:41:51.000000000 +0200
++++ sys/conf/Makefile.pc98 2006-04-25 18:51:49.000000000 +0200
+@@ -32,6 +32,8 @@
+
+ MKMODULESENV+= MACHINE=pc98
+
++%WITHOUT_MODULES
++
+ %BEFORE_DEPEND
+
+ %OBJS
+diff -ur sys/conf.old/Makefile.powerpc sys/conf/Makefile.powerpc
+--- sys/conf.old/Makefile.powerpc 2006-04-25 18:41:51.000000000 +0200
++++ sys/conf/Makefile.powerpc 2006-04-25 18:51:49.000000000 +0200
+@@ -37,6 +37,8 @@
+ CFLAGS+= -fno-omit-frame-pointer
+ .endif
+
++%WITHOUT_MODULES
++
+ %BEFORE_DEPEND
+
+ %OBJS
+diff -ur sys/conf.old/Makefile.sparc64 sys/conf/Makefile.sparc64
+--- sys/conf.old/Makefile.sparc64 2006-04-25 18:41:51.000000000 +0200
++++ sys/conf/Makefile.sparc64 2006-04-25 18:51:49.000000000 +0200
+@@ -32,6 +32,8 @@
+
+ MDOBJS= exception.o interrupt.o
+
++%WITHOUT_MODULES
++
+ %BEFORE_DEPEND
+
+ %OBJS
+diff -ur usr.sbin/config.old/mkmakefile.c usr.sbin/config/mkmakefile.c
+--- usr.sbin/config.old/mkmakefile.c 2006-04-25 18:44:15.000000000 +0200
++++ usr.sbin/config/mkmakefile.c 2006-04-25 18:51:59.000000000 +0200
+@@ -70,6 +70,7 @@
+ static void do_rules(FILE *);
+ static void do_xxfiles(char *, FILE *);
+ static void do_objs(FILE *);
++static void do_without_modules(FILE *);
+ static void do_before_depend(FILE *);
+ static int opteq(const char *, const char *);
+ static void read_files(void);
+@@ -150,6 +151,8 @@
+ }
+ if (eq(line, "%BEFORE_DEPEND\n"))
+ do_before_depend(ofp);
++ else if (eq(line, "%WITHOUT_MODULES\n"))
++ do_without_modules(ofp);
+ else if (eq(line, "%OBJS\n"))
+ do_objs(ofp);
+ else if (strncmp(line, "%FILES.", 7) == 0)
+@@ -618,6 +621,28 @@
+ }
+
+ static void
++do_without_modules(FILE *fp)
++{
++ struct device *dp;
++ int lpos, len;
++ char *cp, *sp;
++
++ fprintf(fp, "MKMODULESENV+= WITHOUT_MODULES=\"");
++ lpos = 34;
++ STAILQ_FOREACH(dp, &dtab, d_next) {
++ sp = dp->d_name;
++ cp = sp + (len = strlen(sp)) - 1;
++ if (len + lpos > 72) {
++ lpos = 8;
++ fprintf(fp, "\\\n\t");
++ }
++ fprintf(fp, "%s ", sp);
++ lpos += len + 1;
++ }
++ fprintf(fp, "\"\n");
++}
++
++static void
+ do_xxfiles(char *tag, FILE *fp)
+ {
+ struct file_list *tp;
More information about the Glibc-bsd-commits
mailing list