singular-4.0.3-fix-resources-name.patch 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. From a3a6a07858b7e91c4c8a3c8d07e53957a8547af2 Mon Sep 17 00:00:00 2001
  2. From: Hans Schoenemann <hannes@mathematik.uni-kl.de>
  3. Date: Thu, 1 Sep 2016 10:48:08 +0200
  4. Subject: [PATCH] change library name: libresources -> libsingular_resources
  5. ---
  6. Singular/Makefile.am | 4 ++--
  7. autogen.sh | 1 +
  8. factory/configure.ac | 8 ++++----
  9. gfanlib/configure.ac | 2 +-
  10. libpolys/configure.ac | 8 ++++----
  11. m4/options.m4 | 10 +++++-----
  12. resources/Makefile.am | 18 +++++++++---------
  13. resources/configure.ac | 6 +++---
  14. resources/feFopen.cc | 2 +-
  15. resources/feResource.cc | 2 +-
  16. resources/omFindExec.c | 2 +-
  17. resources/resources.pc.in | 17 -----------------
  18. resources/singular_resources.pc.in | 17 +++++++++++++++++
  19. 13 files changed, 49 insertions(+), 48 deletions(-)
  20. delete mode 100644 resources/resources.pc.in
  21. create mode 100644 resources/singular_resources.pc.in
  22. diff --git a/Singular/Makefile.am b/Singular/Makefile.am
  23. index e2bcc23..be84a08 100644
  24. --- a/Singular/Makefile.am
  25. +++ b/Singular/Makefile.am
  26. @@ -176,7 +176,7 @@ ESingular_CPPFLAGS = ${AM_CPPFLAGS} -DESINGULAR -DPROTO
  27. # ESingular_LDFLAGS = -static ${AM_LDFLAGS}
  28. ESingular_LDADD = ${top_builddir}/libpolys/reporter/libreporter.la \
  29. ${top_builddir}/libpolys/misc/libmisc.la ${top_builddir}/omalloc/libomalloc.la \
  30. -${top_builddir}/resources/libresources.la
  31. +${top_builddir}/resources/libsingular_resources.la
  32. ESingular_SOURCES = emacs.cc fegetopt.c fegetopt.h feOptES.inc feOpt.cc
  33. @@ -186,7 +186,7 @@ TSingular_CPPFLAGS = ${AM_CPPFLAGS} -DTSINGULAR -DPROTO
  34. # TSingular_LDFLAGS = -static ${AM_LDFLAGS}
  35. TSingular_LDADD = ${top_builddir}/libpolys/reporter/libreporter.la \
  36. ${top_builddir}/libpolys/misc/libmisc.la ${top_builddir}/omalloc/libomalloc.la \
  37. -${top_builddir}/resources/libresources.la
  38. +${top_builddir}/resources/libsingular_resources.la
  39. TSingular_SOURCES = emacs.cc fegetopt.c fegetopt.h feOptTS.inc feOpt.cc
  40. # utils.cc utils.h
  41. diff --git a/autogen.sh b/autogen.sh
  42. index d027997..0d09c08 100755
  43. --- a/autogen.sh
  44. +++ b/autogen.sh
  45. @@ -4,6 +4,7 @@ cd `dirname "$0"`
  46. # -d --warnings=all
  47. autoreconf -v -f -i
  48. +find . -name configure -exec sed -i "s/-g -O2/-g/g" {} \; -print
  49. cd -
  50. diff --git a/factory/configure.ac b/factory/configure.ac
  51. index 7ea255b..a9caf73 100644
  52. --- a/factory/configure.ac
  53. +++ b/factory/configure.ac
  54. @@ -120,10 +120,10 @@ AM_CONDITIONAL(
  55. [WITH_PARSER_FOR_CANONICAL_FORM],
  56. [test "x$enable_streamio" = xyes])
  57. -AC_ARG_VAR( [RESOURCES_INCLUDES], [INCLUDES for libresources] )
  58. -AC_ARG_VAR( [RESOURCES_LIBS], [LIBS for libresources] )
  59. +AC_ARG_VAR( [RESOURCES_INCLUDES], [INCLUDES for libsingular_resources] )
  60. +AC_ARG_VAR( [RESOURCES_LIBS], [LIBS for libsingular_resources] )
  61. -AC_MSG_CHECKING(whether libresources should be used)
  62. +AC_MSG_CHECKING(whether libsingular_resources should be used)
  63. if test "x$with_Singular" = xyes;
  64. then
  65. AC_MSG_RESULT(yes)
  66. @@ -134,7 +134,7 @@ then
  67. AC_MSG_CHECKING([ RESOURCES_LIBS?..])
  68. AC_MSG_RESULT(${RESOURCES_LIBS:-unset})
  69. - PKG_REQUIRE="$PKG_REQUIRE resources"
  70. + PKG_REQUIRE="$PKG_REQUIRE singular_resources"
  71. AC_SUBST(PKG_REQUIRE)
  72. else
  73. AC_MSG_RESULT(no)
  74. diff --git a/gfanlib/configure.ac b/gfanlib/configure.ac
  75. index 015134c..d3d2cd7 100644
  76. --- a/gfanlib/configure.ac
  77. +++ b/gfanlib/configure.ac
  78. @@ -2,7 +2,7 @@
  79. # Process this file with autoconf to produce a configure script.
  80. AC_PREREQ([2.63])
  81. -AC_INIT([libgfan], [0.1], [ren@mathematik.uni-kl.de])
  82. +AC_INIT([libgfan], [0.6], [ren@mathematik.uni-kl.de])
  83. AC_CONFIG_MACRO_DIR([../m4])
  84. AC_CONFIG_AUX_DIR([../build-aux])
  85. AC_CONFIG_SRCDIR([gfanlib.h])
  86. diff --git a/libpolys/configure.ac b/libpolys/configure.ac
  87. index 049e44d..4b2f1ae 100644
  88. --- a/libpolys/configure.ac
  89. +++ b/libpolys/configure.ac
  90. @@ -90,10 +90,10 @@ SING_CHECK_OMALLOC()
  91. ENABLE_RESOURCES="yes"
  92. -AC_ARG_VAR( [RESOURCES_INCLUDES], [INCLUDES for libresources] )
  93. -AC_ARG_VAR( [RESOURCES_LIBS], [LIBS for libresources] )
  94. +AC_ARG_VAR( [RESOURCES_INCLUDES], [INCLUDES for libsingular_resources] )
  95. +AC_ARG_VAR( [RESOURCES_LIBS], [LIBS for libsingular_resources] )
  96. -AC_MSG_CHECKING(whether libresources should be used)
  97. +AC_MSG_CHECKING(whether libsingular_resources should be used)
  98. if test "x$ENABLE_RESOURCES" = xyes;
  99. then
  100. @@ -105,7 +105,7 @@ then
  101. AC_MSG_CHECKING([ RESOURCES_LIBS?..])
  102. AC_MSG_RESULT(${RESOURCES_LIBS:-unset})
  103. - PKG_REQUIRE="$PKG_REQUIRE resources"
  104. + PKG_REQUIRE="$PKG_REQUIRE singular_resources"
  105. AC_SUBST(PKG_REQUIRE)
  106. else
  107. AC_MSG_RESULT(no)
  108. diff --git a/m4/options.m4 b/m4/options.m4
  109. index 31b86e4..066dc4d 100644
  110. --- a/m4/options.m4
  111. +++ b/m4/options.m4
  112. @@ -150,19 +150,19 @@ AC_DEFUN([SING_USE_OMALLOC],
  113. AC_DEFUN([SING_USE_RESOURCES],
  114. [
  115. - AC_ARG_ENABLE(resources,
  116. - [AS_HELP_STRING([--disable-resources], [do NOT use libresources within the factory])],
  117. + AC_ARG_ENABLE(singular_resources,
  118. + [AS_HELP_STRING([--disable-singular_resources], [do NOT use libsingular_resources within the factory])],
  119. [if test "x$enableval" = "xyes"; then
  120. ENABLE_RESOURCES=yes
  121. fi],
  122. ENABLE_RESOURCES=yes)
  123. - AC_MSG_CHECKING(whether to use libresources in factory and co.)
  124. + AC_MSG_CHECKING(whether to use libsingular_resources in factory and co.)
  125. if test "x$ENABLE_RESOURCES" = xyes; then
  126. AC_MSG_RESULT(yes)
  127. RESOURCES_INCLUDES="-I$ac_abs_top_srcdir "
  128. - RESOURCES_LIBS="$ac_abs_top_builddir/resources/libresources.la"
  129. + RESOURCES_LIBS="$ac_abs_top_builddir/resources/libsingular_resources.la"
  130. AC_SUBST(RESOURCES_INCLUDES)
  131. AC_SUBST(RESOURCES_LIBS)
  132. @@ -171,7 +171,7 @@ AC_DEFUN([SING_USE_RESOURCES],
  133. ac_configure_args="$ac_configure_args $ENABLE_ARG"
  134. - PKG_REQUIRE="$PKG_REQUIRE resources"
  135. + PKG_REQUIRE="$PKG_REQUIRE singular_resources"
  136. AC_SUBST(PKG_REQUIRE)
  137. else
  138. AC_MSG_RESULT(no)
  139. diff --git a/resources/Makefile.am b/resources/Makefile.am
  140. index fa69ccc..934175b 100644
  141. --- a/resources/Makefile.am
  142. +++ b/resources/Makefile.am
  143. @@ -1,24 +1,24 @@
  144. ACLOCAL_AMFLAGS = -I ../m4
  145. -libresources_LTLIBRARIES = libresources.la
  146. +libsingular_resources_LTLIBRARIES = libsingular_resources.la
  147. -libresourcesdir = $(libdir)
  148. +libsingular_resourcesdir = $(libdir)
  149. AM_CPPFLAGS = -I${top_srcdir} -I${top_builddir}
  150. SOURCES = omFindExec.c feResource.cc feFopen.cc
  151. -libresources_la_SOURCES = $(SOURCES)
  152. +libsingular_resources_la_SOURCES = $(SOURCES)
  153. -libresources_la_LDFLAGS = -release ${PACKAGE_VERSION}
  154. +libsingular_resources_la_LDFLAGS = -release ${PACKAGE_VERSION}
  155. -libresources_includedir =$(includedir)/resources
  156. +libsingular_resources_includedir =$(includedir)/resources
  157. -libresources_include_HEADERS = omFindExec.h feResource.h feFopen.h
  158. +libsingular_resources_include_HEADERS = omFindExec.h feResource.h feFopen.h
  159. -nodist_libresources_include_HEADERS = resourcesconfig.h
  160. -DISTCLEANFILES = $(nodist_libresources_include_HEADERS)
  161. +nodist_libsingular_resources_include_HEADERS = singular_resourcesconfig.h
  162. +DISTCLEANFILES = $(nodist_libsingular_resources_include_HEADERS)
  163. pkgconfigdir = $(libdir)/pkgconfig
  164. -pkgconfig_DATA = resources.pc
  165. +pkgconfig_DATA = singular_resources.pc
  166. diff --git a/resources/configure.ac b/resources/configure.ac
  167. index bc5f294..212a1d5 100644
  168. --- a/resources/configure.ac
  169. +++ b/resources/configure.ac
  170. @@ -1,4 +1,4 @@
  171. -AC_INIT([resources], [4.0.3])
  172. +AC_INIT([singular_resources], [4.0.3])
  173. AC_CONFIG_MACRO_DIR([../m4])
  174. AC_CONFIG_AUX_DIR([../build-aux])
  175. @@ -14,7 +14,7 @@ dnl Check if build env is sane
  176. AM_SANITY_CHECK
  177. # Add pre'prefixed config
  178. -AX_PREFIX_CONFIG_H([resourcesconfig.h],[],[_config.h])
  179. +AX_PREFIX_CONFIG_H([singular_resourcesconfig.h],[],[_config.h])
  180. SING_RESET_FLAGS()
  181. SING_CHECK_SET_ARGS()
  182. @@ -70,5 +70,5 @@ AX_RECURSIVE_EVAL([[$]datadir], [config_datadir])
  183. AX_NORMALIZE_PATH([config_datadir],['/'])
  184. AC_DEFINE_UNQUOTED([DATA_DIR],"$config_datadir",[datadir])
  185. -AC_CONFIG_FILES([resources.pc Makefile])
  186. +AC_CONFIG_FILES([singular_resources.pc Makefile])
  187. AC_OUTPUT
  188. diff --git a/resources/feFopen.cc b/resources/feFopen.cc
  189. index 98cfd44..10800a0 100644
  190. --- a/resources/feFopen.cc
  191. +++ b/resources/feFopen.cc
  192. @@ -1,4 +1,4 @@
  193. -#include "resourcesconfig.h"
  194. +#include "singular_resourcesconfig.h"
  195. #include "feResource.h"
  196. #include "feFopen.h"
  197. diff --git a/resources/feResource.cc b/resources/feResource.cc
  198. index 49a6855..a3accf9 100644
  199. --- a/resources/feResource.cc
  200. +++ b/resources/feResource.cc
  201. @@ -5,7 +5,7 @@
  202. * ABSTRACT: management of resources
  203. */
  204. -#include "resourcesconfig.h"
  205. +#include "singular_resourcesconfig.h"
  206. #include "feResource.h"
  207. #include "omFindExec.h"
  208. diff --git a/resources/omFindExec.c b/resources/omFindExec.c
  209. index e79f2c8..1d5852a 100644
  210. --- a/resources/omFindExec.c
  211. +++ b/resources/omFindExec.c
  212. @@ -6,7 +6,7 @@
  213. *******************************************************************/
  214. -#include "resourcesconfig.h"
  215. +#include "singular_resourcesconfig.h"
  216. #if defined(HAVE_UNISTD_H) && defined(STDC_HEADERS)
  217. diff --git a/resources/resources.pc.in b/resources/resources.pc.in
  218. deleted file mode 100644
  219. index d040056..0000000
  220. --- a/resources/resources.pc.in
  221. +++ /dev/null
  222. @@ -1,17 +0,0 @@
  223. -prefix=@prefix@
  224. -exec_prefix=@exec_prefix@
  225. -libdir=@libdir@
  226. -includedir=@includedir@
  227. -
  228. -Name: @PACKAGE@
  229. -Description: The Singular resources manager
  230. -Version: @PACKAGE_VERSION@
  231. -URL: https://github.com/Singular/Sources/tree/spielwiese/@PACKAGE@
  232. -
  233. -# Requires:
  234. -# Conflicts:
  235. -
  236. -Cflags: -I${includedir} @SINGULAR_CFLAGS@
  237. -Libs: -L${libdir} -l@PACKAGE@
  238. -# Libs.private:
  239. -
  240. diff --git a/resources/singular_resources.pc.in b/resources/singular_resources.pc.in
  241. new file mode 100644
  242. index 0000000..d040056
  243. --- /dev/null
  244. +++ b/resources/singular_resources.pc.in
  245. @@ -0,0 +1,17 @@
  246. +prefix=@prefix@
  247. +exec_prefix=@exec_prefix@
  248. +libdir=@libdir@
  249. +includedir=@includedir@
  250. +
  251. +Name: @PACKAGE@
  252. +Description: The Singular resources manager
  253. +Version: @PACKAGE_VERSION@
  254. +URL: https://github.com/Singular/Sources/tree/spielwiese/@PACKAGE@
  255. +
  256. +# Requires:
  257. +# Conflicts:
  258. +
  259. +Cflags: -I${includedir} @SINGULAR_CFLAGS@
  260. +Libs: -L${libdir} -l@PACKAGE@
  261. +# Libs.private:
  262. +