scratchbox2-2.0-gentoo.patch 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. diff --git a/Makefile b/Makefile
  2. index 23a13b3..c5b26cc 100644
  3. --- a/Makefile
  4. +++ b/Makefile
  5. @@ -59,7 +59,6 @@ subdirs = luaif preload utils
  6. -include config.mak
  7. -CFLAGS += -O2 -g -Wall -W
  8. CFLAGS += -I$(OBJDIR)/include -I$(SRCDIR)/include
  9. CFLAGS += -I$(SRCDIR)/luaif/lua-5.1.4/src
  10. CFLAGS += -D_GNU_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1
  11. @@ -145,6 +144,9 @@ install-noarch: regular
  12. else install -d -m 755 $(prefix)/share/man/man1 ; \
  13. fi
  14. $(Q)echo "$(PACKAGE_VERSION)" > $(prefix)/share/scratchbox2/version
  15. + $(Q)install -c -m 755 $(OBJDIR)/utils/sb2-show $(prefix)/bin/sb2-show
  16. + $(Q)install -c -m 755 $(OBJDIR)/utils/sb2-monitor $(prefix)/bin/sb2-monitor
  17. + $(Q)install -c -m 755 $(OBJDIR)/utils/sb2-interp-wrapper $(prefix)/bin/sb2-interp-wrapper
  18. $(Q)install -c -m 755 $(SRCDIR)/utils/sb2 $(prefix)/bin/sb2
  19. $(Q)install -c -m 755 $(SRCDIR)/utils/sb2-init $(prefix)/bin/sb2-init
  20. $(Q)install -c -m 755 $(SRCDIR)/utils/sb2-config $(prefix)/bin/sb2-config
  21. @@ -210,10 +212,10 @@ install-noarch: regular
  22. ifeq ($(MACH),x86_64)
  23. install: install-multilib
  24. else
  25. -install: do-install
  26. +install: install-singlelib
  27. endif
  28. -do-install: install-noarch
  29. +install-singlelib: install-noarch
  30. $(P)INSTALL
  31. @if [ -d $(prefix)/lib ] ; \
  32. then echo "$(prefix)/lib present" ; \
  33. @@ -221,9 +223,6 @@ do-install: install-noarch
  34. fi
  35. $(Q)install -d -m 755 $(prefix)/lib/libsb2
  36. $(Q)install -c -m 755 $(OBJDIR)/preload/libsb2.$(SHLIBEXT) $(prefix)/lib/libsb2/libsb2.so.$(PACKAGE_VERSION)
  37. - $(Q)install -c -m 755 $(OBJDIR)/utils/sb2-show $(prefix)/bin/sb2-show
  38. - $(Q)install -c -m 755 $(OBJDIR)/utils/sb2-monitor $(prefix)/bin/sb2-monitor
  39. - $(Q)install -c -m 755 $(OBJDIR)/utils/sb2-interp-wrapper $(prefix)/bin/sb2-interp-wrapper
  40. ifeq ($(OS),Linux)
  41. $(Q)/sbin/ldconfig -n $(prefix)/lib/libsb2
  42. endif
  43. @@ -232,9 +231,9 @@ multilib_prefix=$(prefix)
  44. install-multilib: multilib
  45. @$(MAKE) -C obj-32 --include-dir=.. -f ../Makefile SRCDIR=.. do-install-multilib bitness=32
  46. - @$(MAKE) -C obj-64 --include-dir=.. -f ../Makefile SRCDIR=.. do-install
  47. + @$(MAKE) -C obj-64 --include-dir=.. -f ../Makefile SRCDIR=.. do-install-multilib bitness=64
  48. -do-install-multilib:
  49. +do-install-multilib: install-noarch
  50. $(P)INSTALL
  51. @if [ -d $(multilib_prefix)/lib$(bitness) ] ; \
  52. then echo "$(prefix)/lib$(bitness) present" ; \
  53. diff --git a/utils/Makefile b/utils/Makefile
  54. index cf9b6c4..79304fc 100644
  55. --- a/utils/Makefile
  56. +++ b/utils/Makefile
  57. @@ -1,7 +1,7 @@
  58. # beware of namespace collisions, all subdir makefiles are included
  59. # into the top-level Makefile
  60. -$(D)/sb2-show: CFLAGS := $(CFLAGS) -Wall -W -Werror \
  61. +$(D)/sb2-show: CFLAGS := $(CFLAGS) -Wall -W \
  62. -I$(SRCDIR)/preload -Ipreload/ $(PROTOTYPEWARNINGS) \
  63. -I$(SRCDIR)/include
  64. @@ -12,7 +12,7 @@ $(D)/sb2-show: preload/libsb2.$(SHLIBEXT) $(D)/sb2-show.o
  65. $(Q)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
  66. -$(D)/sb2-monitor: CFLAGS := $(CFLAGS) -Wall -W -Werror \
  67. +$(D)/sb2-monitor: CFLAGS := $(CFLAGS) -Wall -W \
  68. -I$(SRCDIR)/preload -Ipreload/ $(PROTOTYPEWARNINGS) \
  69. -I$(SRCDIR)/include
  70. @@ -21,7 +21,7 @@ $(D)/sb2-monitor: $(D)/sb2-monitor.o
  71. $(P)LD
  72. $(Q)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
  73. -$(D)/sb2-interp-wrapper: CFLAGS := $(CFLAGS) -Wall -W -Werror \
  74. +$(D)/sb2-interp-wrapper: CFLAGS := $(CFLAGS) -Wall -W \
  75. -I$(SRCDIR)/preload -Ipreload/ $(PROTOTYPEWARNINGS) \
  76. -I$(SRCDIR)/include