Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed source package creation.

  • Loading branch information...
commit 634d704721f03ba388f654b76517aa96ef6d2c0d 1 parent f3b62e2
Varialus authored

Showing 41 changed files with 6 additions and 2,543 deletions. Show diff stats Hide diff stats

  1. +6 7 README
  2. +0 39 kdragonflybsd-3/debian/patches/001_misc.diff
  3. +0 52 kdragonflybsd-3/debian/patches/002_maxpathlen.diff
  4. +0 65 kdragonflybsd-3/debian/patches/003_glibc_dev_aicasm.diff
  5. +0 32 kdragonflybsd-3/debian/patches/004_xargs.diff
  6. +0 14 kdragonflybsd-3/debian/patches/005_linux_cflags.diff
  7. +0 66 kdragonflybsd-3/debian/patches/006_mips_i8259_alloc.diff
  8. +0 57 kdragonflybsd-3/debian/patches/007_clone_signals.diff
  9. +0 139 kdragonflybsd-3/debian/patches/009_disable_duped_modules.diff
  10. +0 54 kdragonflybsd-3/debian/patches/101_nullfs_vsock.diff
  11. +0 32 kdragonflybsd-3/debian/patches/107_mount_update.diff
  12. +0 43 kdragonflybsd-3/debian/patches/108_teken_utf8_table.diff
  13. +0 12 kdragonflybsd-3/debian/patches/109_linprocfs_non_x86.diff
  14. +0 11 kdragonflybsd-3/debian/patches/110_disable_trampoline_flavour.diff
  15. +0 29 kdragonflybsd-3/debian/patches/201_pseudofs.diff
  16. +0 29 kdragonflybsd-3/debian/patches/901_disable_optimization_2.diff
  17. +0 11 kdragonflybsd-3/debian/patches/902_version.diff
  18. +0 180 kdragonflybsd-3/debian/patches/903_disable_non-free_drivers.diff
  19. +0 75 kdragonflybsd-3/debian/patches/904_dev_full.diff
  20. +0 51 kdragonflybsd-3/debian/patches/906_grow_sysv_ipc_limits.diff
  21. +0 13 kdragonflybsd-3/debian/patches/908_linprocfs_is_not_proc.diff
  22. +0 20 kdragonflybsd-3/debian/patches/910_GENERIC_hints.diff
  23. +0 116 kdragonflybsd-3/debian/patches/913_uudecode.diff
  24. +0 75 kdragonflybsd-3/debian/patches/914_psm.diff
  25. +0 20 kdragonflybsd-3/debian/patches/915_ip6.v6only.diff
  26. +0 16 kdragonflybsd-3/debian/patches/916_NKPT_amd64.diff
  27. +0 11 kdragonflybsd-3/debian/patches/917_disable_kgssapi.diff
  28. +0 33 kdragonflybsd-3/debian/patches/918_unix_socket_overflow.diff
  29. +0 34 kdragonflybsd-3/debian/patches/919_delete_key.diff
  30. +0 31 kdragonflybsd-3/debian/patches/950_no_stack_protector.diff
  31. +0 337 kdragonflybsd-3/debian/patches/999_config.diff
  32. +0 242 kdragonflybsd-3/debian/patches/999_firmware.diff
  33. +0 128 kdragonflybsd-3/debian/patches/EN-12_02.ipv6refcount.patch
  34. +0 32 kdragonflybsd-3/debian/patches/SA-12_04.sysret.patch
  35. +0 21 kdragonflybsd-3/debian/patches/amd64_increase_DFLDSIZ.diff
  36. +0 259 kdragonflybsd-3/debian/patches/fix_VOP_VPTOCNP_bypass_for_nullfs.diff
  37. +0 21 kdragonflybsd-3/debian/patches/improve_tmpfs_mem_info.diff
  38. +0 55 kdragonflybsd-3/debian/patches/pf_counter_initialization_SVN236364.diff
  39. +0 15 kdragonflybsd-3/debian/patches/remove_tmpfs_warning.diff
  40. +0 44 kdragonflybsd-3/debian/patches/series
  41. +0 22 kdragonflybsd-3/debian/patches/svn239447_SCTP_DoS.patch
13 README
... ... @@ -1,5 +1,4 @@
1 1 ToDo:
2   - - Make the kernel source package extract and apply debian patches automatically.
3 2 - Make the kernel compile.
4 3 - Make related packages compile, including the Hammer and Hammer2 file systems.
5 4 - Try to use the kernel with the Hammer or Hammer2 filesystem.
@@ -23,9 +22,9 @@ http://ftp.nl.debian.org/debian/dists/squeeze/main/installer-kfreebsd-amd64/curr
23 22 - Using aptitude is preferred over 'apt-get install' for binary package management but apt-get lends itself to written instructions.
24 23 - sudo apt-get build-dep kfreebsd-9
25 24 - Only do the following 'apt-get install' until 'apt-get build-dep' for kfreebsd-9 includes them, the fix for which is on my ToDo list above.
26   - - sudo apt-get install fakeroot subversion kernel_wedge
  25 + - sudo apt-get install fakeroot subversion kernel_wedge devscripts
27 26 - Only do the following 'apt-get install' until 'apt-get build-dep' for kdragonflybsd-3 includes them, the fix for which is on my ToDo list above.
28   - - sudo apt-get install fakeroot git kernel_wedge
  27 + - sudo apt-get install fakeroot git kernel_wedge devscripts
29 28 - mkdir ~/kbsd-build-comparison
30 29 - cd kbsd-build-comparison
31 30 - mkdir freebsd
@@ -38,7 +37,8 @@ In one of two console terminals:
38 37 - ./debian/rules get-orig-source
39 38 - touch ./debian/control
40 39 - fakeroot ./debian/rules control
41   - - Figure out what prerequisites need to be run before running dpkg-buildpackage.
  40 + - Copy contents of kfreebsd-9_9.0.orig.tar.gz into kfreebsd-9/debian/
  41 + - debuild -S -us -uc
42 42 - dpkg-buildpackage
43 43 - Fix errors.
44 44 - Commit to git and push to github.
@@ -52,9 +52,8 @@ In the other console terminal:
52 52 - cd DragonFlyBSD/kdragonflybsd-3/
53 53 - ./debian/rules get-orig-source
54 54 - fakeroot ./debian/rules control
55   - - Figure out what prerequisites need to be run before running dpkg-buildpackage.
56   - - Fix errors.
57   - - Commit to git and push to github.
  55 + - Copy contents of kdragonflybsd-3_3.0.3.orig.tar.gz into kdragonflybsd-9/debian/
  56 + - debuild -S -us -uc
58 57 - dpkg-buildpackage
59 58 - Fix errors.
60 59 - Commit to git and push to github.
39 kdragonflybsd-3/debian/patches/001_misc.diff
... ... @@ -1,39 +0,0 @@
1   -
2   -Sent to dragonflybsd-hackers (2011-07-05)
3   -
4   ---- a/sys/conf/kern.mk
5   -+++ b/sys/conf/kern.mk
6   -@@ -1,12 +1,23 @@
7   - # $DragonFlyBSD$
8   -
9   -+.if !defined(OPSYS)
10   -+OPSYS!= uname -s
11   -+.endif
12   -+
13   - #
14   - # Warning flags for compiling the kernel and components of the kernel:
15   - #
16   -+.if ${OPSYS} == "DragonFlyBSD"
17   -+# DragonFlyBSD extension, not available in upstream GCC
18   -+format_extensions= -fformat-extensions
19   -+no_align_long_strings= -mno-align-long-strings
20   -+.endif
21   -+
22   - CWARNFLAGS?= -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \
23   - -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \
24   -- -Wundef -Wno-pointer-sign -fformat-extensions \
25   -+ -Wundef -Wno-pointer-sign ${format_extensions} \
26   - -Wmissing-include-dirs -fdiagnostics-show-option
27   -+
28   - #
29   - # The following flags are next up for working on:
30   - # -Wextra
31   -@@ -32,7 +43,7 @@
32   - #
33   - .if ${MACHINE_CPUARCH} == "i386"
34   - .if ${CC:T:Mclang} != "clang"
35   --CFLAGS+= -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-sse
36   -+CFLAGS+= ${no_align_long_strings} -mpreferred-stack-boundary=2 -mno-sse
37   - .else
38   - CFLAGS+= -mno-aes -mno-avx
39   - .endif
52 kdragonflybsd-3/debian/patches/002_maxpathlen.diff
... ... @@ -1,52 +0,0 @@
1   ---- a/usr.sbin/config/main.c
2   -+++ b/usr.sbin/config/main.c
3   -@@ -60,6 +60,10 @@
4   - #include "config.h"
5   - #include "configvers.h"
6   -
7   -+#ifndef MAXPATHLEN
8   -+#define MAXPATHLEN 4096
9   -+#endif
10   -+
11   - #ifndef TRUE
12   - #define TRUE (1)
13   - #endif
14   ---- a/usr.sbin/config/mkmakefile.c
15   -+++ b/usr.sbin/config/mkmakefile.c
16   -@@ -50,6 +50,10 @@
17   - #include "config.h"
18   - #include "configvers.h"
19   -
20   -+#ifndef MAXPATHLEN
21   -+#define MAXPATHLEN 4096
22   -+#endif
23   -+
24   - #define next_word(fp, wd) \
25   - { char *word = get_word(fp); \
26   - if (word == (char *)EOF) \
27   ---- a/usr.sbin/config/mkoptions.c
28   -+++ b/usr.sbin/config/mkoptions.c
29   -@@ -48,6 +48,10 @@
30   - #include "config.h"
31   - #include "y.tab.h"
32   -
33   -+#ifndef MAXPATHLEN
34   -+#define MAXPATHLEN 4096
35   -+#endif
36   -+
37   - static struct users {
38   - int u_default;
39   - int u_min;
40   ---- a/sys/dev/aic7xxx/aicasm/aicasm_scan.l
41   -+++ b/sys/dev/aic7xxx/aicasm/aicasm_scan.l
42   -@@ -57,6 +57,10 @@
43   - #include "aicasm_symbol.h"
44   - #include "aicasm_gram.h"
45   -
46   -+#ifndef PATH_MAX
47   -+#define PATH_MAX 4096
48   -+#endif
49   -+
50   - /* This is used for macro body capture too, so err on the large size. */
51   - #define MAX_STR_CONST 4096
52   - static char string_buf[MAX_STR_CONST];
65 kdragonflybsd-3/debian/patches/003_glibc_dev_aicasm.diff
... ... @@ -1,65 +0,0 @@
1   -
2   -Partially sent to dragonflybsd-hackers (2011-07-02)
3   -
4   ---- a/sys/dev/aic7xxx/aicasm/Makefile
5   -+++ b/sys/dev/aic7xxx/aicasm/Makefile
6   -@@ -3,6 +3,10 @@
7   - #
8   - # $DragonFlyBSD$
9   -
10   -+.if !defined(OPSYS)
11   -+OPSYS!= uname -s
12   -+.endif
13   -+
14   - PROG= aicasm
15   -
16   - CSRCS= aicasm.c aicasm_symbol.c
17   -@@ -14,8 +18,9 @@
18   - SRCS= ${GENHDRS} ${CSRCS} ${YSRCS} ${LSRCS}
19   - CLEANFILES+= ${GENHDRS} ${YSRCS:R:C/(.*)/\1.output/g}
20   - DPADD= ${LIBL}
21   --LDADD= -ll
22   -+LDADD= -ll -ldb -lbsd
23   - WARNS?= 5
24   -+NO_WERROR?= 1
25   -
26   - # Correct path for kernel builds
27   - # Don't rely on the kernel's .depend file
28   -@@ -24,8 +29,15 @@
29   - DEPENDFILE= .depend_aicasm
30   - .endif
31   -
32   -+LIBBSD_CFLAGS!= pkg-config --cflags libbsd-overlay
33   -+CFLAGS+= ${LIBBSD_CFLAGS}
34   -+
35   -+# This would discard implicit include flags in upstream GCC
36   -+.if ${OPSYS} == "DragonFlyBSD"
37   - NOSTDINC= -nostdinc
38   - CFLAGS+= ${NOSTDINC} -I/usr/include -I.
39   -+.endif
40   -+
41   - .ifdef MAKESRCPATH
42   - CFLAGS+= -I${MAKESRCPATH}
43   - .endif
44   ---- a/sys/dev/aic7xxx/aicasm/aicasm_gram.y
45   -+++ b/sys/dev/aic7xxx/aicasm/aicasm_gram.y
46   -@@ -1529,7 +1529,7 @@
47   - }
48   -
49   - static void
50   --add_macro_arg(const char *argtext, int argnum __unused)
51   -+add_macro_arg(const char *argtext, int argnum)
52   - {
53   - struct macro_arg *marg;
54   - int retval;
55   ---- a/sys/dev/aic7xxx/aicasm/aicasm_symbol.c
56   -+++ b/sys/dev/aic7xxx/aicasm/aicasm_symbol.c
57   -@@ -44,7 +44,7 @@
58   -
59   - #include <sys/types.h>
60   - #include <sys/param.h>
61   --#ifdef BSD
62   -+#if defined(BSD) && !defined(__GNU__)
63   - #include <db.h>
64   - #else
65   - #include <db_185.h>
32 kdragonflybsd-3/debian/patches/004_xargs.diff
... ... @@ -1,32 +0,0 @@
1   -
2   -xargs -I works here, although it's not exactly the same.
3   --J option requested to findutils maintainers:
4   -
5   -http://savannah.gnu.org/patch/?4916
6   -
7   ---- a/sys/conf/kmod.mk
8   -+++ b/sys/conf/kmod.mk
9   -@@ -217,7 +217,7 @@
10   - grep -v '^#' < ${EXPORT_SYMS} > export_syms
11   - .endif
12   - awk -f ${SYSDIR}/conf/kmod_syms.awk ${.TARGET} \
13   -- export_syms | xargs -J% ${OBJCOPY} % ${.TARGET}
14   -+ export_syms | xargs -I% ${OBJCOPY} % ${.TARGET}
15   - .endif
16   - .endif
17   - .if !defined(DEBUG_FLAGS) && ${__KLD_SHARED} == no
18   ---- a/sys/contrib/dev/acpica/acpica_prep.sh
19   -+++ b/sys/contrib/dev/acpica/acpica_prep.sh
20   -@@ -60,10 +60,10 @@
21   - # copy files
22   - echo copying full dirs
23   - for i in ${fulldirs}; do
24   -- find ${wrk} -name ${i} -type d -print | xargs -J % mv % ${dst}
25   -+ find ${wrk} -name ${i} -type d -print | xargs -I % mv % ${dst}
26   - done
27   - echo copying remaining files
28   --find ${wrk} -type f -print | xargs -J % mv % ${dst}
29   -+find ${wrk} -type f -print | xargs -I % mv % ${dst}
30   -
31   - # canonify include paths
32   - for H in ${src_headers}; do
14 kdragonflybsd-3/debian/patches/005_linux_cflags.diff
... ... @@ -1,14 +0,0 @@
1   -
2   -Submitted to dragonflybsd-hackers on 2011-07-04
3   -
4   ---- a/sys/sys/cdefs.h
5   -+++ b/sys/sys/cdefs.h
6   -@@ -349,7 +349,7 @@
7   - #endif
8   -
9   - /* Compiler-dependent macros that rely on DragonFlyBSD-specific extensions. */
10   --#if __DragonFlyBSD_cc_version >= 300001 && defined(__GNUC__) && !defined(__INTEL_COMPILER)
11   -+#if defined(__DragonFlyBSD_cc_version) && __DragonFlyBSD_cc_version >= 300001 && defined(__GNUC__) && !defined(__INTEL_COMPILER)
12   - #define __printf0like(fmtarg, firstvararg) \
13   - __attribute__((__format__ (__printf0__, fmtarg, firstvararg)))
14   - #else
66 kdragonflybsd-3/debian/patches/006_mips_i8259_alloc.diff
... ... @@ -1,66 +0,0 @@
1   ---- a/sys/mips/malta/gt_pci.c
2   -+++ b/sys/mips/malta/gt_pci.c
3   -@@ -59,6 +59,7 @@
4   - #include <machine/bus.h>
5   - #include <machine/cpu.h>
6   - #include <machine/pmap.h>
7   -+#include <machine/timerreg.h>
8   -
9   - #include <mips/malta/maltareg.h>
10   -
11   -@@ -401,7 +402,42 @@
12   - }
13   -
14   - /* Initialize memory and i/o rmans. */
15   -- device_add_child(dev, "pci", busno);
16   -+ {
17   -+ device_t child;
18   -+ int rid;
19   -+ void *res;
20   -+
21   -+ child = device_add_child(dev, "pci", busno);
22   -+
23   -+ res = bus_alloc_resource(child, SYS_RES_IOPORT, &rid, IO_ICU1, IO_ICU1 + IO_ICUSIZE, IO_ICUSIZE, RF_ACTIVE);
24   -+ if (res == NULL)
25   -+ device_printf(child, "cannot allocate registers for i8259 controller #1\n");
26   -+
27   -+ res = bus_alloc_resource(child, SYS_RES_IOPORT, &rid, IO_ICU2, IO_ICU2 + IO_ICUSIZE, IO_ICUSIZE, RF_ACTIVE);
28   -+ if (res == NULL)
29   -+ device_printf(child, "cannot allocate registers for i8259 controller #2\n");
30   -+
31   -+ res = bus_alloc_resource(child, SYS_RES_IOPORT, &rid, IO_TIMER1, IO_TIMER1 + IO_TIMERSIZE, IO_TIMERSIZE, RF_ACTIVE);
32   -+ if (res == NULL)
33   -+ device_printf(child, "cannot allocate registers for i8254 controllers\n");
34   -+
35   -+ res = bus_alloc_resource(child, SYS_RES_IOPORT, &rid, MALTA_SMSC_KYBD_ADR, MALTA_SMSC_KYBD_ADR + 1, 1, RF_ACTIVE);
36   -+ if (res == NULL)
37   -+ device_printf(child, "cannot allocate registers for keyboard controller\n");
38   -+
39   -+ res = bus_alloc_resource(child, SYS_RES_IOPORT, &rid, MALTA_SMSC_KYBD_ADR + 4, MALTA_SMSC_KYBD_ADR + 4 + 1, 1, RF_ACTIVE);
40   -+ if (res == NULL)
41   -+ device_printf(child, "cannot allocate registers for keyboard controller\n");
42   -+
43   -+ res = bus_alloc_resource(child, SYS_RES_IOPORT, &rid, MALTA_RTCADR, MALTA_RTCADR + 2, 2, RF_ACTIVE);
44   -+ if (res == NULL)
45   -+ device_printf(child, "cannot allocate registers for RTC controller\n");
46   -+
47   -+ res = bus_alloc_resource(child, SYS_RES_IOPORT, &rid, 0x81, 0x81 + 1, 1, RF_ACTIVE);
48   -+ if (res == NULL)
49   -+ device_printf(child, "cannot allocate registers for DMA controller\n");
50   -+ }
51   -+
52   - return (bus_generic_attach(dev));
53   - }
54   -
55   ---- a/sys/mips/include/timerreg.h
56   -+++ b/sys/mips/include/timerreg.h
57   -@@ -49,6 +49,9 @@
58   - #define TIMER_CNTR2 (IO_TIMER1 + TIMER_REG_CNTR2)
59   - #define TIMER_MODE (IO_TIMER1 + TIMER_REG_MODE)
60   -
61   -+/* 3 timers, 4 registers each. */
62   -+#define IO_TIMERSIZE 3 * 4
63   -+
64   - #define timer_spkr_acquire() \
65   - acquire_timer2(TIMER_SEL2 | TIMER_SQWAVE | TIMER_16BIT)
66   - #define timer_spkr_release() \
57 kdragonflybsd-3/debian/patches/007_clone_signals.diff
... ... @@ -1,57 +0,0 @@
1   -
2   -Starting with r223966 in 9-CURRENT, a new interface is available
3   -(RFTSIGZMB). It is supported in eglibc 2.13-11 or later. Use this
4   -patch if you need support for older eglibc.
5   -
6   ---- a/sys/kern/kern_fork.c
7   -+++ b/sys/kern/kern_fork.c
8   -@@ -480,7 +480,13 @@
9   - if (flags & RFTSIGZMB)
10   - p2->p_sigparent = RFTSIGNUM(flags);
11   - else if (flags & RFLINUXTHPN)
12   -- p2->p_sigparent = SIGUSR1;
13   -+ {
14   -+ int sig;
15   -+ sig = RFTHPNSIGNUM(flags);
16   -+ if (sig == 0) sig = SIGUSR1;
17   -+ if (sig == SIGCHLD) sig = 0;
18   -+ p2->p_sigparent = sig;
19   -+ }
20   - else
21   - p2->p_sigparent = SIGCHLD;
22   -
23   -@@ -723,12 +729,16 @@
24   - static struct timeval lastfail;
25   -
26   - /* Check for the undefined or unimplemented flags. */
27   -- if ((flags & ~(RFFLAGS | RFTSIGFLAGS(RFTSIGMASK))) != 0)
28   -+ if ((flags & ~(RFFLAGS | RFTSIGFLAGS(RFTSIGMASK) | (RFTHPNMASK << RFTHPNSHIFT))) != 0)
29   - return (EINVAL);
30   -
31   -- /* Signal value requires RFTSIGZMB. */
32   -- if ((flags & RFTSIGFLAGS(RFTSIGMASK)) != 0 && (flags & RFTSIGZMB) == 0)
33   -- return (EINVAL);
34   -+ /* Signal value requires either RFTSIGZMB or RFLINUXTHPN. */
35   -+ if ((flags & RFTSIGZMB) == 0 && (flags & RFLINUXTHPN) == 0) {
36   -+ if ((flags & RFTSIGFLAGS(RFTSIGMASK)) != 0)
37   -+ return (EINVAL);
38   -+ if ((flags & (RFTHPNMASK << RFTHPNSHIFT)) != 0)
39   -+ return (EINVAL);
40   -+ }
41   -
42   - /* Can't copy and clear. */
43   - if ((flags & (RFFDG|RFCFDG)) == (RFFDG|RFCFDG))
44   ---- a/sys/sys/unistd.h
45   -+++ b/sys/sys/unistd.h
46   -@@ -191,6 +191,11 @@
47   - RFTHREAD | RFSIGSHARE | RFLINUXTHPN | RFSTOPPED | RFHIGHPID | RFTSIGZMB | \
48   - RFPPWAIT)
49   -
50   -+#define RFTHPNSHIFT 24 /* reserve bits 24-30 */
51   -+#define RFTHPNMASK 0x7F /* for compatibility with linuxthreads/clone() */
52   -+ /* allow to specify "clone exit parent notification" signal */
53   -+#define RFTHPNSIGNUM(flags) (((flags) >> RFTHPNSHIFT) & RFTHPNMASK)
54   -+
55   - #endif /* __BSD_VISIBLE */
56   -
57   - #endif /* !_SYS_UNISTD_H_ */
139 kdragonflybsd-3/debian/patches/009_disable_duped_modules.diff
... ... @@ -1,139 +0,0 @@
1   -
2   -Status: in upstream BTS
3   -
4   ---- a/sys/conf/Makefile.amd64
5   -+++ b/sys/conf/Makefile.amd64
6   -@@ -48,6 +48,8 @@
7   - ASM_CFLAGS+= ${.IMPSRC:T:Mmpboot.S:C/^.+$/-no-integrated-as/}
8   - .endif
9   -
10   -+%WITHOUT_MODULES
11   -+
12   - %BEFORE_DEPEND
13   -
14   - %OBJS
15   ---- a/sys/conf/Makefile.arm
16   -+++ b/sys/conf/Makefile.arm
17   -@@ -124,6 +124,8 @@
18   -
19   - MKMODULESENV+= MACHINE=${MACHINE}
20   -
21   -+%WITHOUT_MODULES
22   -+
23   - %BEFORE_DEPEND
24   -
25   - %OBJS
26   ---- a/sys/conf/Makefile.i386
27   -+++ b/sys/conf/Makefile.i386
28   -@@ -40,6 +40,8 @@
29   - ASM_CFLAGS+= ${.IMPSRC:T:Mmpboot.s:C/^.+$/-no-integrated-as/}
30   - .endif
31   -
32   -+%WITHOUT_MODULES
33   -+
34   - %BEFORE_DEPEND
35   -
36   - %OBJS
37   ---- a/sys/conf/Makefile.ia64
38   -+++ b/sys/conf/Makefile.ia64
39   -@@ -36,6 +36,8 @@
40   -
41   - ASM_CFLAGS= -x assembler-with-cpp -Wa,-x -DLOCORE ${CFLAGS}
42   -
43   -+%WITHOUT_MODULES
44   -+
45   - %BEFORE_DEPEND
46   -
47   - %OBJS
48   ---- a/sys/conf/Makefile.mips
49   -+++ b/sys/conf/Makefile.mips
50   -@@ -70,6 +70,8 @@
51   - ${OBJCOPY} -S -O binary ${KERNEL_KO}.tramp.noheader \
52   - ${KERNEL_KO}.tramp.bin \
53   -
54   -+%WITHOUT_MODULES
55   -+
56   - %BEFORE_DEPEND
57   -
58   - %OBJS
59   ---- a/sys/conf/Makefile.pc98
60   -+++ b/sys/conf/Makefile.pc98
61   -@@ -34,6 +34,8 @@
62   -
63   - MKMODULESENV+= MACHINE=${MACHINE}
64   -
65   -+%WITHOUT_MODULES
66   -+
67   - %BEFORE_DEPEND
68   -
69   - %OBJS
70   ---- a/sys/conf/Makefile.powerpc
71   -+++ b/sys/conf/Makefile.powerpc
72   -@@ -42,6 +42,8 @@
73   - CFLAGS+= -fno-omit-frame-pointer
74   - .endif
75   -
76   -+%WITHOUT_MODULES
77   -+
78   - %BEFORE_DEPEND
79   -
80   - %OBJS
81   ---- a/sys/conf/Makefile.sparc64
82   -+++ b/sys/conf/Makefile.sparc64
83   -@@ -32,6 +32,8 @@
84   -
85   - MDOBJS= exception.o interrupt.o
86   -
87   -+%WITHOUT_MODULES
88   -+
89   - %BEFORE_DEPEND
90   -
91   - %OBJS
92   ---- a/usr.sbin/config/mkmakefile.c
93   -+++ b/usr.sbin/config/mkmakefile.c
94   -@@ -70,6 +70,7 @@
95   - static void do_rules(FILE *);
96   - static void do_xxfiles(char *, FILE *);
97   - static void do_objs(FILE *);
98   -+static void do_without_modules(FILE *);
99   - static void do_before_depend(FILE *);
100   - static int opteq(const char *, const char *);
101   - static void read_files(void);
102   -@@ -161,6 +162,8 @@
103   - }
104   - if (eq(line, "%BEFORE_DEPEND\n"))
105   - do_before_depend(ofp);
106   -+ else if (eq(line, "%WITHOUT_MODULES\n"))
107   -+ do_without_modules(ofp);
108   - else if (eq(line, "%OBJS\n"))
109   - do_objs(ofp);
110   - else if (strncmp(line, "%FILES.", 7) == 0)
111   -@@ -647,6 +650,28 @@
112   - }
113   -
114   - static void
115   -+do_without_modules(FILE *fp)
116   -+{
117   -+ struct device *dp;
118   -+ int lpos, len;
119   -+ char *cp, *sp;
120   -+
121   -+ fprintf(fp, "MKMODULESENV+= WITHOUT_MODULES=\"");
122   -+ lpos = 34;
123   -+ STAILQ_FOREACH(dp, &dtab, d_next) {
124   -+ sp = dp->d_name;
125   -+ cp = sp + (len = strlen(sp)) - 1;
126   -+ if (len + lpos > 72) {
127   -+ lpos = 8;
128   -+ fprintf(fp, "\\\n\t");
129   -+ }
130   -+ fprintf(fp, "%s ", sp);
131   -+ lpos += len + 1;
132   -+ }
133   -+ fprintf(fp, "\"\n");
134   -+}
135   -+
136   -+static void
137   - do_xxfiles(char *tag, FILE *fp)
138   - {
139   - struct file_list *tp;
54 kdragonflybsd-3/debian/patches/101_nullfs_vsock.diff
... ... @@ -1,54 +0,0 @@
1   -
2   -Obtained from kern/159663
3   -
4   ---- a/sys/fs/nullfs/null_vnops.c
5   -+++ b/sys/fs/nullfs/null_vnops.c
6   -@@ -365,16 +365,38 @@
7   - vrele(lvp);
8   - } else {
9   - error = null_nodeget(dvp->v_mount, lvp, &vp);
10   -- if (error)
11   -+ if (error) {
12   - vput(lvp);
13   -- else
14   -+ } else if (vp->v_type == VSOCK) {
15   -+ vref(lvp);
16   -+ vrele(vp);
17   -+ *ap->a_vpp = lvp;
18   -+ } else {
19   - *ap->a_vpp = vp;
20   -+ }
21   - }
22   - }
23   - return (error);
24   - }
25   -
26   - static int
27   -+null_create(struct vop_create_args *ap)
28   -+{
29   -+ struct vnode *vp, *lvp;
30   -+ int retval;
31   -+
32   -+ retval = null_bypass(&ap->a_gen);
33   -+ vp = *ap->a_vpp;
34   -+ if (retval == 0 && vp->v_type == VSOCK) {
35   -+ lvp = NULLVPTOLOWERVP(vp);
36   -+ vref(lvp);
37   -+ vrele(vp);
38   -+ *ap->a_vpp = lvp;
39   -+ }
40   -+ return (retval);
41   -+}
42   -+
43   -+static int
44   - null_open(struct vop_open_args *ap)
45   - {
46   - int retval;
47   -@@ -826,6 +848,7 @@
48   - .vop_accessx = null_accessx,
49   - .vop_advlockpurge = vop_stdadvlockpurge,
50   - .vop_bmap = VOP_EOPNOTSUPP,
51   -+ .vop_create = null_create,
52   - .vop_getattr = null_getattr,
53   - .vop_getwritemount = null_getwritemount,
54   - .vop_inactive = null_inactive,
32 kdragonflybsd-3/debian/patches/107_mount_update.diff
... ... @@ -1,32 +0,0 @@
1   -
2   -Revision 220937 in upstream removed a similar kludge, which had become
3   -unnecessary in some cases but not in the one that concerns us (see
4   -comment below).
5   -
6   ---- a/sys/kern/vfs_mount.c
7   -+++ b/sys/kern/vfs_mount.c
8   -@@ -639,6 +639,24 @@
9   - }
10   -
11   - /*
12   -+ * If MNT_RDONLY was not specified as a mount option, and we
13   -+ * are trying to update a mount-point from "ro", it means
14   -+ * read-write mode is desired by userland even if "rw" or
15   -+ * "noro" weren't specified explicitly. Add "noro" here to
16   -+ * make that happen.
17   -+ */
18   -+ if (!(fsflags & MNT_RDONLY)) {
19   -+ struct vfsopt *noro_opt;
20   -+ noro_opt = malloc(sizeof(struct vfsopt), M_MOUNT, M_WAITOK);
21   -+ noro_opt->name = strdup("noro", M_MOUNT);
22   -+ noro_opt->value = NULL;
23   -+ noro_opt->len = 0;
24   -+ noro_opt->pos = -1;
25   -+ noro_opt->seen = 1;
26   -+ TAILQ_INSERT_TAIL(optlist, noro_opt, link);
27   -+ }
28   -+
29   -+ /*
30   - * Be ultra-paranoid about making sure the type and fspath
31   - * variables will fit in our mp buffers, including the
32   - * terminating NUL.
43 kdragonflybsd-3/debian/patches/108_teken_utf8_table.diff
... ... @@ -1,43 +0,0 @@
1   ---- a/sys/dev/syscons/scterm-teken.c
2   -+++ b/sys/dev/syscons/scterm-teken.c
3   -@@ -424,10 +424,18 @@
4   - { 0x00b6, 0x14, 0x00 }, { 0x00b7, 0xfa, 0x00 },
5   - { 0x00ba, 0xa7, 0x00 }, { 0x00bb, 0xaf, 0x00 },
6   - { 0x00bc, 0xac, 0x00 }, { 0x00bd, 0xab, 0x00 },
7   -- { 0x00bf, 0xa8, 0x00 }, { 0x00c4, 0x8e, 0x01 },
8   -- { 0x00c6, 0x92, 0x00 }, { 0x00c7, 0x80, 0x00 },
9   -- { 0x00c9, 0x90, 0x00 }, { 0x00d1, 0xa5, 0x00 },
10   -- { 0x00d6, 0x99, 0x00 }, { 0x00dc, 0x9a, 0x00 },
11   -+ { 0x00bf, 0xa8, 0x00 }, { 0x00c0, 0x41, 0x00 },
12   -+ { 0x00c1, 0x41, 0x00 }, { 0x00c2, 0x41, 0x00 },
13   -+ { 0x00c4, 0x8e, 0x01 }, { 0x00c6, 0x92, 0x00 },
14   -+ { 0x00c7, 0x80, 0x00 }, { 0x00c8, 0x45, 0x00 },
15   -+ { 0x00c9, 0x90, 0x00 }, { 0x00ca, 0x45, 0x00 },
16   -+ { 0x00cb, 0x45, 0x00 }, { 0x00cc, 0x49, 0x00 },
17   -+ { 0x00cd, 0x49, 0x00 }, { 0x00ce, 0x49, 0x00 },
18   -+ { 0x00cf, 0x49, 0x00 }, { 0x00d1, 0xa5, 0x00 },
19   -+ { 0x00d2, 0x4f, 0x00 }, { 0x00d3, 0x4f, 0x00 },
20   -+ { 0x00d4, 0x4f, 0x00 }, { 0x00d6, 0x99, 0x00 },
21   -+ { 0x00d9, 0x55, 0x00 }, { 0x00da, 0x55, 0x00 },
22   -+ { 0x00db, 0x55, 0x00 }, { 0x00dc, 0x9a, 0x00 },
23   - { 0x00df, 0xe1, 0x00 }, { 0x00e0, 0x85, 0x00 },
24   - { 0x00e1, 0xa0, 0x00 }, { 0x00e2, 0x83, 0x00 },
25   - { 0x00e4, 0x84, 0x00 }, { 0x00e5, 0x86, 0x00 },
26   -@@ -442,6 +450,7 @@
27   - { 0x00f8, 0xed, 0x00 }, { 0x00f9, 0x97, 0x00 },
28   - { 0x00fa, 0xa3, 0x00 }, { 0x00fb, 0x96, 0x00 },
29   - { 0x00fc, 0x81, 0x00 }, { 0x00ff, 0x98, 0x00 },
30   -+ { 0x013f, 0x4c, 0x00 }, { 0x0140, 0x6c, 0x00 },
31   - { 0x0192, 0x9f, 0x00 }, { 0x0393, 0xe2, 0x00 },
32   - { 0x0398, 0xe9, 0x00 }, { 0x03a3, 0xe4, 0x00 },
33   - { 0x03a6, 0xe8, 0x00 }, { 0x03a9, 0xea, 0x00 },
34   -@@ -490,7 +499,8 @@
35   - { 0x2584, 0xdc, 0x00 }, { 0x2588, 0xdb, 0x00 },
36   - { 0x258c, 0xdd, 0x00 }, { 0x2590, 0xde, 0x00 },
37   - { 0x2591, 0xb0, 0x02 }, { 0x25a0, 0xfe, 0x00 },
38   -- { 0x25ac, 0x16, 0x00 }, { 0x25b2, 0x1e, 0x00 },
39   -+ { 0x25ac, 0x16, 0x00 },
40   -+ { 0x25ae, 0xdb, 0x00 }, { 0x25b2, 0x1e, 0x00 },
41   - { 0x25ba, 0x10, 0x00 }, { 0x25bc, 0x1f, 0x00 },
42   - { 0x25c4, 0x11, 0x00 }, { 0x25cb, 0x09, 0x00 },
43   - { 0x25d8, 0x08, 0x00 }, { 0x25d9, 0x0a, 0x00 },
12 kdragonflybsd-3/debian/patches/109_linprocfs_non_x86.diff
... ... @@ -1,12 +0,0 @@
1   ---- a/sys/conf/options.mips
2   -+++ b/sys/conf/options.mips
3   -@@ -56,6 +56,9 @@
4   - TICK_USE_YAMON_FREQ opt_global.h
5   - TICK_USE_MALTA_RTC opt_global.h
6   -
7   -+LINPROCFS opt_dontuse.h
8   -+LINSYSFS opt_dontuse.h
9   -+
10   - #
11   - # The highest memory address that can be used by the kernel in units of KB.
12   - #
11 kdragonflybsd-3/debian/patches/110_disable_trampoline_flavour.diff
... ... @@ -1,11 +0,0 @@
1   ---- a/sys/conf/Makefile.mips
2   -+++ b/sys/conf/Makefile.mips
3   -@@ -61,7 +61,7 @@
4   - # XXX hardcoded kernel entry point
5   - ASM_CFLAGS+=${CFLAGS} -D_LOCORE -DLOCORE
6   -
7   --KERNEL_EXTRA=trampoline
8   -+#KERNEL_EXTRA=trampoline
9   - trampoline: ${KERNEL_KO}.tramp.bin
10   - ${KERNEL_KO}.tramp.bin: ${KERNEL_KO} $S/$M/$M/elf_trampoline.c \
11   - $S/$M/$M/inckern.S
29 kdragonflybsd-3/debian/patches/201_pseudofs.diff
... ... @@ -1,29 +0,0 @@
1   -
2   -dirty workaround for #650667
3   -http://www.dragonflybsd.org/cgi/query-pr.cgi?pr=163076
4   -
5   ---- a/sys/fs/pseudofs/pseudofs_vnops.c
6   -+++ b/sys/fs/pseudofs/pseudofs_vnops.c
7   -@@ -640,7 +640,7 @@
8   - if (buflen > MAXPHYS + 1)
9   - buflen = MAXPHYS + 1;
10   -
11   -- sb = sbuf_new(sb, NULL, buflen, 0);
12   -+ sb = sbuf_new(sb, NULL, MAXPHYS + 1, 0);
13   - if (sb == NULL) {
14   - error = EIO;
15   - goto ret;
16   -@@ -654,7 +654,12 @@
17   - }
18   -
19   - sbuf_finish(sb);
20   -- error = uiomove_frombuf(sbuf_data(sb), sbuf_len(sb), uio);
21   -+
22   -+ if (buflen > sbuf_len(sb))
23   -+ buflen = sbuf_len(sb);
24   -+ else
25   -+ buflen--;
26   -+ error = uiomove_frombuf(sbuf_data(sb), buflen, uio);
27   - sbuf_delete(sb);
28   - ret:
29   - vn_lock(vn, locked | LK_RETRY);
29 kdragonflybsd-3/debian/patches/901_disable_optimization_2.diff
... ... @@ -1,29 +0,0 @@
1   -
2   -Regretably, with GCC 4.4 or later this is the only flag combination
3   -I could find that doesn't cause kernel panics CPU triple-faults or
4   -other kind of severe breakage.
5   -
6   ---- a/sys/conf/kern.pre.mk
7   -+++ b/sys/conf/kern.pre.mk
8   -@@ -41,6 +41,9 @@
9   - .if !empty(COPTFLAGS:M-O[23s]) && empty(COPTFLAGS:M-fno-strict-aliasing)
10   - COPTFLAGS+= -fno-strict-aliasing
11   - .endif
12   -+.if !empty(COPTFLAGS:M-O[23s])
13   -+COPTFLAGS+= -O1
14   -+.endif
15   - .if !defined(NO_CPU_COPTFLAGS)
16   - COPTFLAGS+= ${_CPUCFLAGS}
17   - .endif
18   ---- a/sys/conf/kmod.mk
19   -+++ b/sys/conf/kmod.mk
20   -@@ -91,6 +91,9 @@
21   - .if !empty(CFLAGS:M-O[23s]) && empty(CFLAGS:M-fno-strict-aliasing)
22   - CFLAGS+= -fno-strict-aliasing
23   - .endif
24   -+.if !empty(CFLAGS:M-O[23s])
25   -+CFLAGS+= -O1
26   -+.endif
27   - WERROR?= -Werror
28   - CFLAGS+= ${WERROR}
29   - CFLAGS+= -D_KERNEL
11 kdragonflybsd-3/debian/patches/902_version.diff
... ... @@ -1,11 +0,0 @@
1   ---- a/sys/conf/newvers.sh
2   -+++ b/sys/conf/newvers.sh
3   -@@ -132,7 +132,7 @@
4   - cat << EOF > vers.c
5   - $COPYRIGHT
6   - #define SCCSSTR "@(#)${VERSION} #${v}${svn}${git}: ${t}"
7   --#define VERSTR "${VERSION} #${v}${svn}${git}: ${t}\\n ${u}@${h}:${d}\\n"
8   -+#define VERSTR "#${v} ${t}\\n"
9   - #define RELSTR "${RELEASE}"
10   -
11   - char sccs[sizeof(SCCSSTR) > 128 ? sizeof(SCCSSTR) : 128] = SCCSSTR;
180 kdragonflybsd-3/debian/patches/903_disable_non-free_drivers.diff
... ... @@ -1,180 +0,0 @@
1   ---- a/sys/conf/files.i386
2   -+++ b/sys/conf/files.i386
3   -@@ -46,27 +46,6 @@
4   - no-obj no-implicit-rule before-depend \
5   - clean "ukbdmap.h"
6   - #
7   --nvenetlib.o optional nve pci \
8   -- dependency "$S/contrib/dev/nve/i386/nvenetlib.o.bz2.uu" \
9   -- compile-with "uudecode $S/contrib/dev/nve/i386/nvenetlib.o.bz2.uu ; bzip2 -df nvenetlib.o.bz2" \
10   -- no-implicit-rule
11   --#
12   --os+%DIKED-nve.h optional nve pci \
13   -- dependency "$S/contrib/dev/nve/os.h" \
14   -- compile-with "sed -e 's/^.*#include.*phy\.h.*$$//' $S/contrib/dev/nve/os.h > os+%DIKED-nve.h" \
15   -- no-implicit-rule no-obj before-depend \
16   -- clean "os+%DIKED-nve.h"
17   --#
18   --hptmvraid.o optional hptmv \
19   -- dependency "$S/dev/hptmv/i386-elf.raid.o.uu" \
20   -- compile-with "uudecode < $S/dev/hptmv/i386-elf.raid.o.uu" \
21   -- no-implicit-rule
22   --#
23   --hptrr_lib.o optional hptrr \
24   -- dependency "$S/dev/hptrr/i386-elf.hptrr_lib.o.uu" \
25   -- compile-with "uudecode < $S/dev/hptrr/i386-elf.hptrr_lib.o.uu" \
26   -- no-implicit-rule
27   --#
28   - compat/linprocfs/linprocfs.c optional linprocfs
29   - compat/linsysfs/linsysfs.c optional linsysfs
30   - compat/linux/linux_emul.c optional compat_linux
31   -@@ -174,14 +153,6 @@
32   - dev/glxiic/glxiic.c optional glxiic
33   - dev/glxsb/glxsb.c optional glxsb
34   - dev/glxsb/glxsb_hash.c optional glxsb
35   --dev/hptmv/entry.c optional hptmv
36   --dev/hptmv/mv.c optional hptmv
37   --dev/hptmv/gui_lib.c optional hptmv
38   --dev/hptmv/hptproc.c optional hptmv
39   --dev/hptmv/ioctl.c optional hptmv
40   --dev/hptrr/hptrr_os_bsd.c optional hptrr
41   --dev/hptrr/hptrr_osm_bsd.c optional hptrr
42   --dev/hptrr/hptrr_config.c optional hptrr
43   - dev/hwpmc/hwpmc_amd.c optional hwpmc
44   - dev/hwpmc/hwpmc_intel.c optional hwpmc
45   - dev/hwpmc/hwpmc_core.c optional hwpmc
46   -@@ -214,7 +185,6 @@
47   - dev/mse/mse.c optional mse
48   - dev/mse/mse_isa.c optional mse isa
49   - dev/nfe/if_nfe.c optional nfe pci
50   --dev/nve/if_nve.c optional nve pci
51   - dev/nvram/nvram.c optional nvram isa
52   - dev/pcf/pcf_isa.c optional pcf
53   - dev/random/nehemiah.c optional random
54   ---- a/sys/i386/conf/GENERIC
55   -+++ b/sys/i386/conf/GENERIC
56   -@@ -132,8 +132,6 @@
57   - device asr # DPT SmartRAID V, VI and Adaptec SCSI RAID
58   - device ciss # Compaq Smart RAID 5*
59   - device dpt # DPT Smartcache III, IV - See NOTES for options
60   --device hptmv # Highpoint RocketRAID 182x
61   --device hptrr # Highpoint RocketRAID 17xx, 22xx, 23xx, 25xx
62   - device iir # Intel Integrated RAID
63   - device ips # IBM (Adaptec) ServeRAID
64   - device mly # Mylex AcceleRAID/eXtremeRAID
65   ---- a/sys/modules/Makefile
66   -+++ b/sys/modules/Makefile
67   -@@ -109,8 +109,6 @@
68   - hifn \
69   - hme \
70   - ${_hptiop} \
71   -- ${_hptmv} \
72   -- ${_hptrr} \
73   - hwpmc \
74   - ${_i2c} \
75   - ${_ibcs2} \
76   -@@ -230,7 +228,6 @@
77   - ntfs \
78   - ntfs_iconv \
79   - nullfs \
80   -- ${_nve} \
81   - ${_nvram} \
82   - ${_nwfs} \
83   - ${_nxge} \
84   -@@ -508,8 +505,6 @@
85   - _dpt= dpt
86   - _ex= ex
87   - _hptiop= hptiop
88   --_hptmv= hptmv
89   --_hptrr= hptrr
90   - _ichwd= ichwd
91   - _ida= ida
92   - _iir= iir
93   -@@ -525,7 +520,6 @@
94   - _ixgbe= ixgbe
95   - _mly= mly
96   - _nfe= nfe
97   --_nve= nve
98   - _nvram= nvram
99   - _nxge= nxge
100   - _tpm= tpm
101   -@@ -581,8 +575,6 @@
102   - _exca= exca
103   - _ext2fs= ext2fs
104   - _hptiop= hptiop
105   --_hptmv= hptmv
106   --_hptrr= hptrr
107   - _i2c= i2c
108   - _ichwd= ichwd
109   - _ida= ida
110   -@@ -613,7 +605,6 @@
111   - .endif
112   - _ndis= ndis
113   - _nfe= nfe
114   --_nve= nve
115   - _nvram= nvram
116   - _nxge= nxge
117   - .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
118   ---- a/sys/amd64/conf/GENERIC
119   -+++ b/sys/amd64/conf/GENERIC
120   -@@ -126,8 +126,6 @@
121   - #device asr # DPT SmartRAID V, VI and Adaptec SCSI RAID
122   - device ciss # Compaq Smart RAID 5*
123   - device dpt # DPT Smartcache III, IV - See NOTES for options
124   --device hptmv # Highpoint RocketRAID 182x
125   --device hptrr # Highpoint RocketRAID 17xx, 22xx, 23xx, 25xx
126   - device iir # Intel Integrated RAID
127   - device ips # IBM (Adaptec) ServeRAID
128   - device mly # Mylex AcceleRAID/eXtremeRAID
129   ---- a/sys/conf/files.amd64
130   -+++ b/sys/conf/files.amd64
131   -@@ -47,26 +47,6 @@
132   - no-obj no-implicit-rule before-depend \
133   - clean "ukbdmap.h"
134   - #
135   --nvenetlib.o optional nve pci \
136   -- dependency "$S/contrib/dev/nve/amd64/nvenetlib.o.bz2.uu" \
137   -- compile-with "uudecode $S/contrib/dev/nve/amd64/nvenetlib.o.bz2.uu ; bzip2 -df nvenetlib.o.bz2" \
138   -- no-implicit-rule
139   --#
140   --os+%DIKED-nve.h optional nve pci \
141   -- dependency "$S/contrib/dev/nve/os.h" \
142   -- compile-with "sed -e 's/^.*#include.*phy\.h.*$$//' $S/contrib/dev/nve/os.h > os+%DIKED-nve.h" \
143   -- no-implicit-rule no-obj before-depend \
144   -- clean "os+%DIKED-nve.h"
145   --#
146   --hptmvraid.o optional hptmv \
147   -- dependency "$S/dev/hptmv/amd64-elf.raid.o.uu" \
148   -- compile-with "uudecode < $S/dev/hptmv/amd64-elf.raid.o.uu" \
149   -- no-implicit-rule
150   --hptrr_lib.o optional hptrr \
151   -- dependency "$S/dev/hptrr/amd64-elf.hptrr_lib.o.uu" \
152   -- compile-with "uudecode < $S/dev/hptrr/amd64-elf.hptrr_lib.o.uu" \
153   -- no-implicit-rule
154   --#
155   - amd64/acpica/acpi_machdep.c optional acpi
156   - amd64/acpica/acpi_switch.S optional acpi
157   - acpi_wakecode.o optional acpi \
158   -@@ -187,14 +167,6 @@
159   - dev/fdc/fdc_acpi.c optional fdc
160   - dev/fdc/fdc_isa.c optional fdc isa
161   - dev/fdc/fdc_pccard.c optional fdc pccard
162   --dev/hptmv/entry.c optional hptmv
163   --dev/hptmv/mv.c optional hptmv
164   --dev/hptmv/gui_lib.c optional hptmv
165   --dev/hptmv/hptproc.c optional hptmv
166   --dev/hptmv/ioctl.c optional hptmv
167   --dev/hptrr/hptrr_os_bsd.c optional hptrr
168   --dev/hptrr/hptrr_osm_bsd.c optional hptrr
169   --dev/hptrr/hptrr_config.c optional hptrr
170   - dev/hwpmc/hwpmc_amd.c optional hwpmc
171   - dev/hwpmc/hwpmc_intel.c optional hwpmc
172   - dev/hwpmc/hwpmc_core.c optional hwpmc
173   -@@ -206,7 +178,6 @@
174   - dev/lindev/full.c optional lindev
175   - dev/lindev/lindev.c optional lindev
176   - dev/nfe/if_nfe.c optional nfe pci
177   --dev/nve/if_nve.c optional nve pci
178   - dev/nvram/nvram.c optional nvram isa
179   - dev/qlxgb/qla_dbg.c optional qlxgb pci
180   - dev/qlxgb/qla_hw.c optional qlxgb pci
75 kdragonflybsd-3/debian/patches/904_dev_full.diff
... ... @@ -1,75 +0,0 @@
1   -
2   -Status: FIONBIO/FIOASYNC is in http://www.dragonflybsd.org/cgi/query-pr.cgi?pr=138526
3   - /dev/full already rejected in upstream (kern/68961)
4   -
5   ---- a/sys/dev/null/null.c
6   -+++ b/sys/dev/null/null.c
7   -@@ -45,9 +45,11 @@
8   -
9   - /* For use with destroy_dev(9). */
10   - static struct cdev *null_dev;
11   -+static struct cdev *full_dev;
12   - static struct cdev *zero_dev;
13   -
14   - static d_write_t null_write;
15   -+static d_write_t full_write;
16   - static d_ioctl_t null_ioctl;
17   - static d_read_t zero_read;
18   -
19   -@@ -59,6 +61,14 @@
20   - .d_name = "null",
21   - };
22   -
23   -+static struct cdevsw full_cdevsw = {
24   -+ .d_version = D_VERSION,
25   -+ .d_read = (d_read_t *)nullop,
26   -+ .d_write = full_write,
27   -+ .d_ioctl = null_ioctl,
28   -+ .d_name = "full",
29   -+};
30   -+
31   - static struct cdevsw zero_cdevsw = {
32   - .d_version = D_VERSION,
33   - .d_read = zero_read,
34   -@@ -78,11 +88,25 @@
35   -
36   - /* ARGSUSED */
37   - static int
38   -+full_write(struct cdev *dev __unused, struct uio *uio, int flags __unused)
39   -+{
40   -+ uio->uio_resid = 0;
41   -+
42   -+ return (ENOSPC);
43   -+}
44   -+
45   -+#include <sys/filio.h>
46   -+/* ARGSUSED */
47   -+static int
48   - null_ioctl(struct cdev *dev __unused, u_long cmd, caddr_t data __unused,
49   - int flags __unused, struct thread *td)
50   - {
51   - int error;
52   -
53   -+ if (cmd == FIONBIO)
54   -+ return 0;
55   -+ if ((cmd == FIOASYNC) && ((*(int *)data) == 0))
56   -+ return 0;
57   - if (cmd != DIOCSKERNELDUMP)
58   - return (ENOIOCTL);
59   - error = priv_check(td, PRIV_SETDUMPER);
60   -@@ -122,12 +146,15 @@
61   - printf("null: <null device, zero device>\n");
62   - null_dev = make_dev_credf(MAKEDEV_ETERNAL_KLD, &null_cdevsw, 0,
63   - NULL, UID_ROOT, GID_WHEEL, 0666, "null");
64   -+ full_dev = make_dev_credf(MAKEDEV_ETERNAL_KLD, &full_cdevsw, 0,
65   -+ NULL, UID_ROOT, GID_WHEEL, 0666, "full");
66   - zero_dev = make_dev_credf(MAKEDEV_ETERNAL_KLD, &zero_cdevsw, 0,
67   - NULL, UID_ROOT, GID_WHEEL, 0666, "zero");
68   - break;
69   -
70   - case MOD_UNLOAD:
71   - destroy_dev(null_dev);
72   -+ destroy_dev(full_dev);
73   - destroy_dev(zero_dev);
74   - break;
75   -
51 kdragonflybsd-3/debian/patches/906_grow_sysv_ipc_limits.diff
... ... @@ -1,51 +0,0 @@
1   -Status: Rejected in upstream (kern/77353)
2   -
3   -postgresql documentation encourages to grow SysV IPC limits on *BSD systems
4   -(which obviously applies to GNU/k*BSD ones too):
5   -
6   -<quote>
7   - The options SYSVSHM and SYSVSEM need to be enabled when the kernel is compiled. (They are by default.) The maximum size of shared memory is determined by the option SHMMAXPGS (in pages). The following shows an example of how to set the various parameters:
8   -
9   -options SYSVSHM
10   -options SHMMAXPGS=4096
11   -options SHMSEG=256
12   -
13   -options SYSVSEM
14   -options SEMMNI=256
15   -options SEMMNS=512
16   -options SEMMNU=256
17   -options SEMMAP=256
18   -
19   - (On NetBSD and OpenBSD the key word is actually option singular.)
20   -
21   - You might also want to configure your kernel to lock shared memory into RAM and prevent it from being paged out to swap. Use the sysctl setting kern.ipc.shm_use_phys.
22   -</quote>
23   -
24   ---- a/sys/amd64/conf/GENERIC
25   -+++ b/sys/amd64/conf/GENERIC
26   -@@ -55,6 +55,11 @@
27   - options SYSVSHM # SYSV-style shared memory
28   - options SYSVMSG # SYSV-style message queues
29   - options SYSVSEM # SYSV-style semaphores
30   -+options SHMMAXPGS=4096
31   -+options SHMSEG=256
32   -+options SEMMNI=256
33   -+options SEMMNS=512
34   -+options SEMMNU=256
35   - options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
36   - options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed.
37   - options KBD_INSTALL_CDEV # install a CDEV entry in /dev
38   ---- a/sys/i386/conf/GENERIC
39   -+++ b/sys/i386/conf/GENERIC
40   -@@ -56,6 +56,11 @@
41   - options SYSVSHM # SYSV-style shared memory
42   - options SYSVMSG # SYSV-style message queues
43   - options SYSVSEM # SYSV-style semaphores
44   -+options SHMMAXPGS=4096