* added the Unlicense as valid in misc/share/REGISTER
[t2sde.git] / package / init / minit / hotfix.patch
blobf460ece4c7fbf9c5b7269c1071db7898e81fc1ea
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../minit/compile.patch
5 # Copyright (C) 2004 - 2005 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
16 --- ./Makefile.orig 2005-04-08 19:24:04.000000000 +0200
17 +++ ./Makefile 2005-04-11 15:03:26.000000000 +0200
18 @@ -46,7 +46,7 @@
19 serdo: serdo.o
21 shutdown: shutdown.o split.o openreadclose.o opendevconsole.o
22 - $(DIET) $(CROSS)$(CC) $(LDFLAGS) -o shutdown $^
23 + $(DIET) $(CROSS)$(CC) $(LDFLAGS) -o shutdown $^ $(LDLIBS)
25 %.o: %.c
26 $(DIET) $(CROSS)$(CC) $(CFLAGS) -c $<
27 @@ -65,7 +65,7 @@
28 $(DIET) $(CROSS)$(CC) $(CFLAGS) -o $@ $^
30 hard-reboot: hard-reboot.c
31 - $(DIET) $(CROSS)$(CC) $(CFLAGS) -o $@ $^
32 + $(DIET) $(CROSS)$(CC) $(CFLAGS) -o $@ $^ $(LDLIBS)
34 write_proc: write_proc.c
35 $(DIET) $(CROSS)$(CC) $(CFLAGS) -o $@ $^
36 --- ./serdo.c.orig 2005-02-26 18:00:22.000000000 +0100
37 +++ ./serdo.c 2005-04-11 14:59:39.000000000 +0200
38 @@ -11,6 +11,8 @@
39 char* envp[MAXENV+2];
40 int envc;
42 +extern char **environ;
44 int continueonerror;
46 int envset(char* s) {
47 --- minit-0.10/minit.c.vanilla 2005-04-11 15:24:23.000000000 +0200
48 +++ minit-0.10/minit.c 2005-04-11 15:24:10.000000000 +0200
49 @@ -26,6 +26,8 @@
50 #undef MALLOC_TEST
51 #endif
53 +#undef MALLOC_TEST
55 #ifdef MALLOC_TEST
56 extern void* __libc_malloc(size_t size);
57 extern void* __libc_realloc(void* x,size_t size);
58 --- minit-0.10/Makefile.vanilla 2005-04-11 15:24:23.000000000 +0200
59 +++ minit-0.10/Makefile 2005-04-11 15:24:10.000000000 +0200
60 @@ -83,6 +83,7 @@
61 install -m 644 hard-reboot.8 minit-list.8 minit-shutdown.8 minit-update.8 minit.8 msvc.8 pidfilehack.8 serdo.8 $(DESTDIR)$(MANDIR)/man8
63 install-fifos:
64 + -rm -f $(DESTDIR)/etc/minit/in $(DESTDIR)/etc/minit/out
65 -mkfifo -m 600 $(DESTDIR)/etc/minit/in $(DESTDIR)/etc/minit/out
67 install: install-files install-fifos