public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-db/qdbm/files/
@ 2017-03-30 14:32 Akinori Hattori
  0 siblings, 0 replies; 2+ messages in thread
From: Akinori Hattori @ 2017-03-30 14:32 UTC (permalink / raw
  To: gentoo-commits

commit:     bbde584218ddabc4661228d65f0e139ce1c7daba
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 30 14:17:18 2017 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Thu Mar 30 14:17:18 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbde5842

dev-db/qdbm: update patches

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 dev-db/qdbm/files/qdbm-perl.patch    | 24 ++++++++++++----
 dev-db/qdbm/files/qdbm-ruby19.patch  | 56 +++++++++++++++++++++---------------
 dev-db/qdbm/files/qdbm-runpath.patch | 24 ++++++----------
 3 files changed, 60 insertions(+), 44 deletions(-)

diff --git a/dev-db/qdbm/files/qdbm-perl.patch b/dev-db/qdbm/files/qdbm-perl.patch
index d46f9b3f236..1a7ca6a70dc 100644
--- a/dev-db/qdbm/files/qdbm-perl.patch
+++ b/dev-db/qdbm/files/qdbm-perl.patch
@@ -1,22 +1,34 @@
-diff -ur qdbm-1.8.62.orig/perl/Makefile.in qdbm-1.8.62/perl/Makefile.in
---- qdbm-1.8.62.orig/perl/Makefile.in
-+++ qdbm-1.8.62/perl/Makefile.in
+--- a/perl/Makefile.in
++++ b/perl/Makefile.in
+@@ -25,10 +25,10 @@
+ DESTDIR =
+ 
+ # Building binaries
+-CC = gcc
++CC = @CC@
+ INC = -I. -I../.. -I$(HOME)/include -I/usr/local/include
+ OPTIMIZE = -O2
+-LD = gcc
++LD = @CC@
+ LIBS = -L../.. -I$(HOME)/lib -L/usr/local/lib -lqdbm @LIBS@
+ RUNENV = LD_LIBRARY_PATH=.:..:../..:/usr/local/lib:$(HOME)/lib
+ 
 @@ -42,15 +42,15 @@
  all :
  	cd depot && [ -f Makefile ] || \
  	  $(RUNENV) perl Makefile.PL CC="$(CC)" INC="$(INC)" OPTIMIZE="$(OPTIMIZE)" \
 -	    LD="$(LD)" LIBS="$(LIBS)" PREFIX="$(prefix)" ; \
-+	    LD="$(LD)" LIBS="$(LIBS)" PREFIX="$(prefix)" INSTALLDIRS=vendor ; \
++	    LD="$(LD)" LIBS="$(LIBS)" PREFIX="$(prefix)" INSTALLDIRS="vendor" ; \
  	  $(RUNENV) make
  	cd curia && [ -f Makefile ] || \
  	  $(RUNENV) perl Makefile.PL CC="$(CC)" INC="$(INC)" OPTIMIZE="$(OPTIMIZE)" \
 -	    LD="$(LD)" LIBS="$(LIBS)" PREFIX="$(prefix)" ; \
-+	    LD="$(LD)" LIBS="$(LIBS)" PREFIX="$(prefix)" INSTALLDIRS=vendor ; \
++	    LD="$(LD)" LIBS="$(LIBS)" PREFIX="$(prefix)" INSTALLDIRS="vendor" ; \
  	  $(RUNENV) make
  	cd villa && [ -f Makefile ] || \
  	  $(RUNENV) perl Makefile.PL CC="$(CC)" INC="$(INC)" OPTIMIZE="$(OPTIMIZE)" \
 -	    LD="$(LD)" LIBS="$(LIBS)" PREFIX="$(prefix)" ; \
-+	    LD="$(LD)" LIBS="$(LIBS)" PREFIX="$(prefix)" INSTALLDIRS=vendor ; \
++	    LD="$(LD)" LIBS="$(LIBS)" PREFIX="$(prefix)" INSTALLDIRS="vendor" ; \
  	  $(RUNENV) make
  	@printf '\n'
  	@printf '#================================================================\n'

diff --git a/dev-db/qdbm/files/qdbm-ruby19.patch b/dev-db/qdbm/files/qdbm-ruby19.patch
index 51c2800e74d..8724e7cdc4e 100644
--- a/dev-db/qdbm/files/qdbm-ruby19.patch
+++ b/dev-db/qdbm/files/qdbm-ruby19.patch
@@ -1,5 +1,5 @@
---- qdbm-1.8.78.orig/ruby/Makefile.in
-+++ qdbm-1.8.78/ruby/Makefile.in
+--- a/ruby/Makefile.in
++++ b/ruby/Makefile.in
 @@ -85,27 +85,27 @@
  	sync ; sync
  	cd depot && rm -rf casket
@@ -37,17 +37,28 @@
  	cd villa && rm -rf casket
  	@printf '\n'
  	@printf '#================================================================\n'
---- qdbm-1.8.78.orig/ruby/curia/mod_curia.c
-+++ qdbm-1.8.78/ruby/curia/mod_curia.c
+--- a/ruby/configure.in
++++ b/ruby/configure.in
+@@ -17,7 +17,7 @@
+ # Setting the default prefix
+ if test "$prefix" = NONE
+ then
+-  prefix=`ruby -rrbconfig -e 'puts(Config::CONFIG.fetch("prefix"))'`
++  prefix=`ruby -rrbconfig -e 'puts(RbConfig::CONFIG.fetch("prefix"))'`
+ fi
+ 
+ # Duplication of QDBM for Ruby
+--- a/ruby/curia/mod_curia.c
++++ b/ruby/curia/mod_curia.c
 @@ -24,6 +24,13 @@
  
  #define MAXOPEN 1024
  
 +#ifndef StringValuePtr
-+#  define StringValuePtr(v) STR2CSTR(v)
++# define StringValuePtr(v) STR2CSTR(v)
 +#endif
 +#ifndef RSTRING_LEN
-+#  define RSTRING_LEN(s) (RSTRING(s)->len)
++# define RSTRING_LEN(s) (RSTRING(s)->len)
 +#endif
 +
  
@@ -110,8 +121,8 @@
    curia = crtable[index];
    if((vsiz = crvsiz(curia, kbuf, ksiz)) == -1){
      if(crsltable[index] && dpecode == DP_ENOITEM) return INT2FIX(-1);
---- qdbm-1.8.78.orig/ruby/curia/rbcrtest
-+++ qdbm-1.8.78/ruby/curia/rbcrtest
+--- a/ruby/curia/rbcrtest
++++ b/ruby/curia/rbcrtest
 @@ -21,7 +21,7 @@
  
  # main routine
@@ -130,18 +141,17 @@
  exit(main())
  
  
-Only in qdbm-1.8.78/ruby/depot: mkmf.log
---- qdbm-1.8.78.orig/ruby/depot/mod_depot.c
-+++ qdbm-1.8.78/ruby/depot/mod_depot.c
+--- a/ruby/depot/mod_depot.c
++++ b/ruby/depot/mod_depot.c
 @@ -23,6 +23,13 @@
  
  #define MAXOPEN 1024
  
 +#ifndef StringValuePtr
-+#  define StringValuePtr(v) STR2CSTR(v)
++# define StringValuePtr(v) STR2CSTR(v)
 +#endif
 +#ifndef RSTRING_LEN
-+#  define RSTRING_LEN(s) (RSTRING(s)->len)
++# define RSTRING_LEN(s) (RSTRING(s)->len)
 +#endif
 +
  
@@ -204,8 +214,8 @@ Only in qdbm-1.8.78/ruby/depot: mkmf.log
    depot = dptable[index];
    if((vsiz = dpvsiz(depot, kbuf, ksiz)) == -1){
      if(dpsltable[index] && dpecode == DP_ENOITEM) return INT2FIX(-1);
---- qdbm-1.8.78.orig/ruby/depot/rbdptest
-+++ qdbm-1.8.78/ruby/depot/rbdptest
+--- a/ruby/depot/rbdptest
++++ b/ruby/depot/rbdptest
 @@ -21,7 +21,7 @@
  
  # main routine
@@ -224,8 +234,8 @@ Only in qdbm-1.8.78/ruby/depot: mkmf.log
  exit(main())
  
  
---- qdbm-1.8.78.orig/ruby/myrbdoc
-+++ qdbm-1.8.78/ruby/myrbdoc
+--- a/ruby/myrbdoc
++++ b/ruby/myrbdoc
 @@ -186,7 +186,7 @@
  
  
@@ -235,17 +245,17 @@ Only in qdbm-1.8.78/ruby/depot: mkmf.log
  exit(main())
  
  
---- qdbm-1.8.78.orig/ruby/villa/mod_villa.c
-+++ qdbm-1.8.78/ruby/villa/mod_villa.c
+--- a/ruby/villa/mod_villa.c
++++ b/ruby/villa/mod_villa.c
 @@ -25,6 +25,13 @@
  
  #define MAXOPEN 1024
  
 +#ifndef StringValuePtr
-+#  define StringValuePtr(v) STR2CSTR(v)
++# define StringValuePtr(v) STR2CSTR(v)
 +#endif
 +#ifndef RSTRING_LEN
-+#  define RSTRING_LEN(s) (RSTRING(s)->len)
++# define RSTRING_LEN(s) (RSTRING(s)->len)
 +#endif
 +
  
@@ -341,8 +351,8 @@ Only in qdbm-1.8.78/ruby/depot: mkmf.log
    FIXNUM_P(vcpmode);
    cpmode = FIX2INT(vcpmode);
    villa = vltable[index];
---- qdbm-1.8.78.orig/ruby/villa/rbvltest
-+++ qdbm-1.8.78/ruby/villa/rbvltest
+--- a/ruby/villa/rbvltest
++++ b/ruby/villa/rbvltest
 @@ -21,7 +21,7 @@
  
  # main routine

diff --git a/dev-db/qdbm/files/qdbm-runpath.patch b/dev-db/qdbm/files/qdbm-runpath.patch
index 4fc1a1f7029..56d85a5b14a 100644
--- a/dev-db/qdbm/files/qdbm-runpath.patch
+++ b/dev-db/qdbm/files/qdbm-runpath.patch
@@ -1,36 +1,30 @@
-diff -ur qdbm-1.8.77.orig/Makefile.in qdbm-1.8.77/Makefile.in
---- qdbm-1.8.77.orig/Makefile.in
-+++ qdbm-1.8.77/Makefile.in
-@@ -61,7 +61,7 @@
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -61,7 +61,6 @@
  LIBS = -lqdbm @LIBS@
  LIBLDFLAGS = @LDFLAGS@ -L. -L$(MYLIBDIR) -L$(HOME)/lib -L/usr/local/lib @LIBS@
  LDFLAGS = @LDFLAGS@ -L. -L$(MYLIBDIR) -L$(HOME)/lib -L/usr/local/lib $(LIBS)
 -LDENV = LD_RUN_PATH=/lib:/usr/lib:$(MYLIBDIR):$(HOME)/lib:/usr/local/lib
-+LDENV =
  AR = @AR@
  ARFLAGS = rcsv
  RUNENV = LD_LIBRARY_PATH=.:/lib:/usr/lib:$(MYLIBDIR):$(HOME)/lib:/usr/local/lib
-diff -urN qdbm-1.8.77.orig/cgi/Makefile.in qdbm-1.8.77/cgi/Makefile.in
---- qdbm-1.8.77.orig/cgi/Makefile.in	2006-08-24 11:55:12.000000000 +0900
-+++ qdbm-1.8.77/cgi/Makefile.in	2007-12-15 22:02:43.804668256 +0900
-@@ -28,7 +28,7 @@
+--- a/cgi/Makefile.in
++++ b/cgi/Makefile.in
+@@ -28,7 +28,6 @@
  CFLAGS = -Wall -ansi -pedantic -fsigned-char -O2
  LIBS = -lqdbm @LIBS@
  LDFLAGS = -L$(srcdir)/.. -L$(HOME)/lib -L/usr/local/lib $(LIBS)
 -LDENV = LD_RUN_PATH=/lib:/usr/lib:$(HOME)/lib:/usr/local/lib:$(prefix)/lib
-+LDENV =
  
  # Install destinations
  prefix = @prefix@
-diff -urN qdbm-1.8.77.orig/plus/Makefile.in qdbm-1.8.77/plus/Makefile.in
---- qdbm-1.8.77.orig/plus/Makefile.in	2007-03-07 11:44:27.000000000 +0900
-+++ qdbm-1.8.77/plus/Makefile.in	2007-12-15 22:02:32.976636806 +0900
-@@ -51,7 +51,7 @@
+--- a/plus/Makefile.in
++++ b/plus/Makefile.in
+@@ -51,7 +51,6 @@
    -L$(HOME)/lib -L/usr/local/lib $(LIBS)
  LDFLAGS = @LDFLAGS@ -L. -L$(srcdir)/.. -L$(MYLIBDIR) \
    -L$(HOME)/lib -L/usr/local/lib -lxqdbm $(LIBS)
 -LDENV = LD_RUN_PATH=/lib:/usr/lib:$(MYLIBDIR):$(HOME)/lib:/usr/local/lib
-+LDENV =
  AR = @AR@
  ARFLAGS = rcsv
  RUNENV = LD_LIBRARY_PATH=.:..:/lib:/usr/lib:$(MYLIBDIR):$(HOME)/lib:/usr/local/lib


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-db/qdbm/files/
@ 2020-05-10  9:53 Akinori Hattori
  0 siblings, 0 replies; 2+ messages in thread
From: Akinori Hattori @ 2020-05-10  9:53 UTC (permalink / raw
  To: gentoo-commits

commit:     17568c569456a7cdbec5420d3f6ca6938f253ef1
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Sun May 10 09:53:16 2020 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Sun May 10 09:53:46 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17568c56

dev-db/qdbm: fix configure

Closes: https://bugs.gentoo.org/718664
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org>

 dev-db/qdbm/files/qdbm-configure.patch | 139 +++++++++++++++++++++++++++++----
 1 file changed, 122 insertions(+), 17 deletions(-)

diff --git a/dev-db/qdbm/files/qdbm-configure.patch b/dev-db/qdbm/files/qdbm-configure.patch
index 364c5c9f653..4eb62949f32 100644
--- a/dev-db/qdbm/files/qdbm-configure.patch
+++ b/dev-db/qdbm/files/qdbm-configure.patch
@@ -18,10 +18,13 @@
  #================================================================
 --- a/configure.in
 +++ b/configure.in
-@@ -20,15 +20,6 @@
- LD="ld"
- AR="ar"
- 
+@@ -17,17 +17,6 @@
+ MYDEFS=""
+ MYOPTS=""
+ MGWLIBS=""
+-LD="ld"
+-AR="ar"
+-
 -# Building paths
 -pathtmp="$PATH"
 -PATH="$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
@@ -30,16 +33,56 @@
 -LD_LIBRARY_PATH="$HOME/lib:/usr/local/lib:$LD_LIBRARY_PATH"
 -CPATH="$HOME/include:/usr/local/include:$CPATH"
 -export PATH LIBRARY_PATH LD_LIBRARY_PATH CPATH
--
  
  
- #================================================================
+ 
+@@ -186,19 +175,15 @@
+ then
+   MYOPTS="-O1 -fno-omit-frame-pointer -fno-force-addr"
+ fi
+-if gcc --version | egrep -i '^2\.(8|9)' > /dev/null 2>&1
++if $CC --version | egrep -i '^2\.(8|9)' > /dev/null 2>&1
+ then
+   MYOPTS="-O1 -fno-omit-frame-pointer -fno-force-addr"
+ fi
+ 
+ # Linker
+-printf 'checking for ld... '
+-if which ld | grep '/ld$' > /dev/null 2>&1
++AC_CHECK_TOOL(LD, ld, no)
++if test "$LD" = "no"
+ then
+-  LD=`which ld`
+-  printf '%s\n' "$LD"
+-else
+-  printf 'no\n'
+   if test "$isnowarn" != "yes"
+   then
+     printf '#================================================================\n' 1>&2
+@@ -208,13 +193,9 @@
+ fi
+ 
+ # Archiver
+-printf 'checking for ar... '
+-if which ar | grep '/ar$' > /dev/null 2>&1
++AC_CHECK_TOOL(AR, ar, no)
++if test "$AR" = "no"
+ then
+-  AR=`which ar`
+-  printf '%s\n' "$AR"
+-else
+-  printf 'no\n'
+   if test "$isnowarn" != "yes"
+   then
+     printf '#================================================================\n' 1>&2
 --- a/java/configure.in
 +++ b/java/configure.in
-@@ -25,15 +25,6 @@
+@@ -23,16 +23,6 @@
+ JAVARUN="java"
+ MYDEFS=""
  MYOPTS=""
- LD="ld"
- 
+-LD="ld"
+-
 -# Building paths
 -pathtmp="$PATH"
 -PATH="$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
@@ -48,10 +91,32 @@
 -LD_LIBRARY_PATH="$HOME/lib:/usr/local/lib:$LD_LIBRARY_PATH"
 -CPATH="$HOME/include:/usr/local/include:$CPATH"
 -export PATH LIBRARY_PATH LD_LIBRARY_PATH CPATH
--
  
  
- #================================================================
+ 
+@@ -162,19 +152,15 @@
+ then
+   MYOPTS="-O1"
+ fi
+-if gcc --version | egrep -i '^2\.(8|9)' > /dev/null 2>&1
++if $CC --version | egrep -i '^2\.(8|9)' > /dev/null 2>&1
+ then
+   MYOPTS="-O1"
+ fi
+ 
+ # Linker
+-printf 'checking for ld... '
+-if which ld | grep '/ld$' > /dev/null 2>&1
++AC_CHECK_TOOL(LD, ld, no)
++if test "$LD" = "no"
+ then
+-  LD=`which ld`
+-  printf '%s\n' "$LD"
+-else
+-  printf 'no\n'
+   printf '#================================================================\n' 1>&2
+   printf '# WARNING: ld is not found in PATH.\n' 1>&2
+   printf '#================================================================\n' 1>&2
 --- a/perl/configure.in
 +++ b/perl/configure.in
 @@ -5,15 +5,6 @@
@@ -72,10 +137,13 @@
  then
 --- a/plus/configure.in
 +++ b/plus/configure.in
-@@ -19,15 +19,6 @@
- LD="ld"
- AR="ar"
- 
+@@ -16,17 +16,6 @@
+ TARGETS="all"
+ MYDEFS=""
+ MYOPTS=""
+-LD="ld"
+-AR="ar"
+-
 -# Building paths
 -pathtmp="$PATH"
 -PATH="$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
@@ -84,10 +152,47 @@
 -LD_LIBRARY_PATH="$HOME/lib:/usr/local/lib:$LD_LIBRARY_PATH"
 -CPATH="$HOME/include:/usr/local/include:$CPATH"
 -export PATH LIBRARY_PATH LD_LIBRARY_PATH CPATH
--
  
  
- #================================================================
+ 
+@@ -75,32 +64,24 @@
+ then
+   MYOPTS="-O1"
+ fi
+-if gcc --version | egrep -i '^2\.(8|9)' > /dev/null 2>&1
++if $CXX --version | egrep -i '^2\.(8|9)' > /dev/null 2>&1
+ then
+   MYOPTS="-O1"
+ fi
+ 
+ # Linker
+-printf 'checking for ld... '
+-if which ld | grep '/ld$' > /dev/null 2>&1
++AC_CHECK_TOOL(LD, ld, no)
++if test "$LD" = "no"
+ then
+-  LD=`which ld`
+-  printf '%s\n' "$LD"
+-else
+-  printf 'no\n'
+   printf '#================================================================\n' 1>&2
+   printf '# WARNING: ld is not found in PATH.\n' 1>&2
+   printf '#================================================================\n' 1>&2
+ fi
+ 
+ # Archiver
+-printf 'checking for ar... '
+-if which ar | grep '/ar$' > /dev/null 2>&1
++AC_CHECK_TOOL(AR, ar, no)
++if test "$AR" = "no"
+ then
+-  AR=`which ar`
+-  printf '%s\n' "$AR"
+-else
+-  printf 'no\n'
+   printf '#================================================================\n' 1>&2
+   printf '# WARNING: ar is not found in PATH.\n' 1>&2
+   printf '#================================================================\n' 1>&2
 --- a/ruby/configure.in
 +++ b/ruby/configure.in
 @@ -5,15 +5,6 @@


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-10  9:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-10  9:53 [gentoo-commits] repo/gentoo:master commit in: dev-db/qdbm/files/ Akinori Hattori
  -- strict thread matches above, loose matches on Subject: below --
2017-03-30 14:32 Akinori Hattori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox