OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.3 KiB

  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 - 2006 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
  20. shutdown: shutdown.o split.o openreadclose.o opendevconsole.o
  21. - $(DIET) $(CROSS)$(CC) $(LDFLAGS) -o shutdown $^
  22. + $(DIET) $(CROSS)$(CC) $(LDFLAGS) -o shutdown $^ $(LDLIBS)
  23. %.o: %.c
  24. $(DIET) $(CROSS)$(CC) $(CFLAGS) -c $<
  25. @@ -65,7 +65,7 @@
  26. $(DIET) $(CROSS)$(CC) $(CFLAGS) -o $@ $^
  27. hard-reboot: hard-reboot.c
  28. - $(DIET) $(CROSS)$(CC) $(CFLAGS) -o $@ $^
  29. + $(DIET) $(CROSS)$(CC) $(CFLAGS) -o $@ $^ $(LDLIBS)
  30. write_proc: write_proc.c
  31. $(DIET) $(CROSS)$(CC) $(CFLAGS) -o $@ $^
  32. --- ./serdo.c.orig 2005-02-26 18:00:22.000000000 +0100
  33. +++ ./serdo.c 2005-04-11 14:59:39.000000000 +0200
  34. @@ -11,6 +11,8 @@
  35. char* envp[MAXENV+2];
  36. int envc;
  37. +extern char **environ;
  38. +
  39. int continueonerror;
  40. int envset(char* s) {
  41. --- minit-0.10/minit.c.vanilla 2005-04-11 15:24:23.000000000 +0200
  42. +++ minit-0.10/minit.c 2005-04-11 15:24:10.000000000 +0200
  43. @@ -26,6 +26,8 @@
  44. #undef MALLOC_TEST
  45. #endif
  46. +#undef MALLOC_TEST
  47. +
  48. #ifdef MALLOC_TEST
  49. extern void* __libc_malloc(size_t size);
  50. extern void* __libc_realloc(void* x,size_t size);
  51. --- minit-0.10/Makefile.vanilla 2005-04-11 15:24:23.000000000 +0200
  52. +++ minit-0.10/Makefile 2005-04-11 15:24:10.000000000 +0200
  53. @@ -83,6 +83,7 @@
  54. 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
  55. install-fifos:
  56. + -rm -f $(DESTDIR)/etc/minit/in $(DESTDIR)/etc/minit/out
  57. -mkfifo -m 600 $(DESTDIR)/etc/minit/in $(DESTDIR)/etc/minit/out
  58. install: install-files install-fifos