logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

bitlbee-3.5-verbose-build.patch (5790B)


  1. Add a --verbose configure flag to enable verbose build output.
  2. --- bitlbee-3.5/configure
  3. +++ bitlbee-3.5/configure
  4. @@ -38,6 +38,7 @@
  5. twitter=1
  6. purple=0
  7. +verbose=0
  8. doc=1
  9. debug=0
  10. strip=0
  11. @@ -125,6 +126,8 @@
  12. --pidfile=... $pidfile
  13. --config=... $config
  14. +--verbose=0/1 Disable/enable verbose build $verbose
  15. +
  16. --msn=0/1 Disable/enable MSN part $msn
  17. --jabber=0/1 Disable/enable Jabber part $jabber
  18. --oscar=0/1 Disable/enable Oscar part (ICQ, AIM) $oscar
  19. @@ -282,6 +285,12 @@
  20. debug=1
  21. fi
  22. +if [ "$verbose" = "0" ]; then
  23. + echo 'VERBOSE=@' >> Makefile.settings
  24. +else
  25. + echo 'VERBOSE=' >> Makefile.settings
  26. +fi
  27. +
  28. if [ "$debug" = "1" ]; then
  29. echo 'DEBUG=1' >> Makefile.settings
  30. CFLAGS="$CFLAGS -g3 -DDEBUG -O0"
  31. --- bitlbee-3.5/lib/Makefile
  32. +++ bitlbee-3.5/lib/Makefile
  33. @@ -35,12 +35,12 @@
  34. lib.o: $(objects) $(subdirs)
  35. @echo '*' Linking lib.o
  36. - @$(LD) $(LFLAGS) $(objects) -o lib.o
  37. + $(VERBOSE) $(LD) $(LFLAGS) $(objects) -o lib.o
  38. $(objects): ../Makefile.settings Makefile
  39. $(objects): %.o: $(_SRCDIR_)%.c
  40. @echo '*' Compiling $<
  41. - @$(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
  42. + $(VERBOSE) $(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
  43. -include .depend/*.d
  44. --- bitlbee-3.5/Makefile
  45. +++ bitlbee-3.5/Makefile
  46. @@ -162,28 +162,28 @@
  47. tar czf $$x.tar.gz --exclude=debian --exclude=.git* --exclude=.depend $$x
  48. $(subdirs):
  49. - @$(MAKE) -C $@ $(MAKECMDGOALS)
  50. + $(MAKE) -C $@ $(MAKECMDGOALS)
  51. $(OTR_PI): %.so: $(_SRCDIR_)%.c
  52. @echo '*' Building plugin $@
  53. - @$(CC) $(CFLAGS) -fPIC -shared $(LDFLAGS) $< -o $@ $(OTRFLAGS)
  54. + $(VERBOSE) $(CC) $(CFLAGS) -fPIC -shared $(LDFLAGS) $< -o $@ $(OTRFLAGS)
  55. $(SKYPE_PI): $(_SRCDIR_)protocols/skype/skype.c
  56. @echo '*' Building plugin skype
  57. - @$(CC) $(CFLAGS) $(LDFLAGS) $(SKYPEFLAGS) $< -o $@
  58. + $(VERBOSE) $(CC) $(CFLAGS) $(LDFLAGS) $(SKYPEFLAGS) $< -o $@
  59. $(objects): %.o: $(_SRCDIR_)%.c
  60. @echo '*' Compiling $<
  61. - @$(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
  62. + $(VERBOSE) $(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
  63. $(objects): Makefile Makefile.settings config.h
  64. $(OUTFILE): $(objects) $(subdirs)
  65. @echo '*' Linking $(OUTFILE)
  66. - @$(CC) $(objects) $(subdirobjs) -o $(OUTFILE) $(LDFLAGS_BITLBEE) $(LDFLAGS) $(EFLAGS)
  67. + $(VERBOSE) $(CC) $(objects) $(subdirobjs) -o $(OUTFILE) $(LDFLAGS_BITLBEE) $(LDFLAGS) $(EFLAGS)
  68. ifneq ($(firstword $(STRIP)), \#)
  69. @echo '*' Stripping $(OUTFILE)
  70. - @-$(STRIP) $(OUTFILE)
  71. + $(VERBOSE) -$(STRIP) $(OUTFILE)
  72. endif
  73. ctags:
  74. --- bitlbee-3.5/protocols/jabber/Makefile
  75. +++ bitlbee-3.5/protocols/jabber/Makefile
  76. @@ -37,10 +37,10 @@
  77. $(objects): %.o: $(_SRCDIR_)%.c
  78. @echo '*' Compiling $<
  79. - @$(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
  80. + $(VERBOSE) $(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
  81. jabber_mod.o: $(objects)
  82. @echo '*' Linking jabber_mod.o
  83. - @$(LD) $(LFLAGS) $(objects) -o jabber_mod.o
  84. + $(VERBOSE) $(LD) $(LFLAGS) $(objects) -o jabber_mod.o
  85. -include .depend/*.d
  86. --- bitlbee-3.5/protocols/Makefile
  87. +++ bitlbee-3.5/protocols/Makefile
  88. @@ -42,18 +42,18 @@
  89. rm -rf .depend
  90. $(subdirs):
  91. - @$(MAKE) -C $@ $(MAKECMDGOALS)
  92. + $(MAKE) -C $@ $(MAKECMDGOALS)
  93. ### MAIN PROGRAM
  94. protocols.o: $(objects) $(subdirs)
  95. @echo '*' Linking protocols.o
  96. - @$(LD) $(LFLAGS) $(objects) $(subdirobjs) -o protocols.o
  97. + $(VERBOSE) $(LD) $(LFLAGS) $(objects) $(subdirobjs) -o protocols.o
  98. $(objects): ../Makefile.settings Makefile
  99. $(objects): %.o: $(_SRCDIR_)%.c
  100. @echo '*' Compiling $<
  101. - @$(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
  102. + $(VERBOSE) $(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
  103. -include .depend/*.d
  104. --- bitlbee-3.5/protocols/msn/Makefile
  105. +++ bitlbee-3.5/protocols/msn/Makefile
  106. @@ -37,10 +37,10 @@
  107. $(objects): %.o: $(_SRCDIR_)%.c
  108. @echo '*' Compiling $<
  109. - @$(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
  110. + $(VERBOSE) $(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
  111. msn_mod.o: $(objects)
  112. @echo '*' Linking msn_mod.o
  113. - @$(LD) $(LFLAGS) $(objects) -o msn_mod.o
  114. + $(VERBOSE) $(LD) $(LFLAGS) $(objects) -o msn_mod.o
  115. -include .depend/*.d
  116. --- bitlbee-3.5/protocols/oscar/Makefile
  117. +++ bitlbee-3.5/protocols/oscar/Makefile
  118. @@ -38,10 +38,10 @@
  119. $(objects): %.o: $(_SRCDIR_)%.c
  120. @echo '*' Compiling $<
  121. - @$(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
  122. + $(VERBOSE) $(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
  123. oscar_mod.o: $(objects)
  124. @echo '*' Linking oscar_mod.o
  125. - @$(LD) $(LFLAGS) $(objects) -o oscar_mod.o
  126. + $(VERBOSE) $(LD) $(LFLAGS) $(objects) -o oscar_mod.o
  127. -include .depend/*.d
  128. --- bitlbee-3.5/protocols/purple/Makefile
  129. +++ bitlbee-3.5/protocols/purple/Makefile
  130. @@ -38,10 +38,10 @@
  131. $(objects): %.o: $(_SRCDIR_)%.c
  132. @echo '*' Compiling $<
  133. - @$(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
  134. + $(VERBOSE) $(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
  135. purple_mod.o: $(objects)
  136. @echo '*' Linking purple_mod.o
  137. - @$(LD) $(LFLAGS) $(objects) -o purple_mod.o
  138. + $(VERBOSE) $(LD) $(LFLAGS) $(objects) -o purple_mod.o
  139. -include .depend/*.d
  140. --- bitlbee-3.5/protocols/twitter/Makefile
  141. +++ bitlbee-3.5/protocols/twitter/Makefile
  142. @@ -37,10 +37,10 @@
  143. $(objects): %.o: $(_SRCDIR_)%.c
  144. @echo '*' Compiling $<
  145. - @$(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
  146. + $(VERBOSE) $(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
  147. twitter_mod.o: $(objects)
  148. @echo '*' Linking twitter_mod.o
  149. - @$(LD) $(LFLAGS) $(objects) -o twitter_mod.o
  150. + $(VERBOSE) $(LD) $(LFLAGS) $(objects) -o twitter_mod.o
  151. -include .depend/*.d
  152. --- bitlbee-3.5/tests/Makefile
  153. +++ bitlbee-3.5/tests/Makefile
  154. @@ -20,8 +20,8 @@
  155. check: $(test_objs) $(addprefix ../, $(main_objs)) ../protocols/protocols.o ../lib/lib.o
  156. @echo '*' Linking $@
  157. - @$(CC) $(CFLAGS) -o $@ $^ $(LFLAGS) $(EFLAGS)
  158. + $(VERBOSE) $(CC) $(CFLAGS) -o $@ $^ $(LFLAGS) $(EFLAGS)
  159. %.o: $(_SRCDIR_)%.c
  160. @echo '*' Compiling $<
  161. - @$(CC) -c $(CFLAGS) $< -o $@
  162. + $(VERBOSE) $(CC) -c $(CFLAGS) $< -o $@