mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-16 14:29:05 -07:00
dev-db/qdbm: fix build with USE=ruby
Closes: https://bugs.gentoo.org/926167 Signed-off-by: Akinori Hattori <hattya@gentoo.org>
This commit is contained in:
81
dev-db/qdbm/files/qdbm-ruby.patch
Normal file
81
dev-db/qdbm/files/qdbm-ruby.patch
Normal file
@@ -0,0 +1,81 @@
|
||||
--- a/ruby/curia/extconf.rb
|
||||
+++ b/ruby/curia/extconf.rb
|
||||
@@ -2,10 +2,9 @@
|
||||
|
||||
dir_config("curia")
|
||||
|
||||
-home = ENV['HOME']
|
||||
-$CFLAGS = "-I. -I../.. -I#{home}/include -I/usr/local/include"
|
||||
-$LDFLAGS = "-L../.. -L#{home}/lib -L/usr/local/lib"
|
||||
-$LIBS = "-L../.. -L#{home}/lib -L/usr/local/lib"
|
||||
+$CFLAGS << " -I../.. " << ENV["CFLAGS"]
|
||||
+$LDFLAGS << " -L../.. " << ENV["LDFLAGS"]
|
||||
+$LIBS << " -L../.."
|
||||
|
||||
have_library("c", "main")
|
||||
have_library("pthread", "main")
|
||||
--- a/ruby/curia/mod_curia.c
|
||||
+++ b/ruby/curia/mod_curia.c
|
||||
@@ -84,7 +84,7 @@
|
||||
*************************************************************************************************/
|
||||
|
||||
|
||||
-Init_mod_curia(){
|
||||
+void Init_mod_curia(void){
|
||||
crinit();
|
||||
ccuriaerror = rb_define_class("CuriaError", rb_eStandardError);
|
||||
ccuriaerror_ENOERR = rb_define_class("CuriaError_ENOERR", ccuriaerror);
|
||||
--- a/ruby/depot/extconf.rb
|
||||
+++ b/ruby/depot/extconf.rb
|
||||
@@ -2,10 +2,9 @@
|
||||
|
||||
dir_config("depot")
|
||||
|
||||
-home = ENV['HOME']
|
||||
-$CFLAGS = "-I. -I../.. -I#{home}/include -I/usr/local/include"
|
||||
-$LDFLAGS = "-L../.. -L#{home}/lib -L/usr/local/lib"
|
||||
-$LIBS = "-L../.. -L#{home}/lib -L/usr/local/lib"
|
||||
+$CFLAGS << " -I../.. " << ENV["CFLAGS"]
|
||||
+$LDFLAGS << " -L../.. " << ENV["LDFLAGS"]
|
||||
+$LIBS << " -L../.."
|
||||
|
||||
have_library("c", "main")
|
||||
have_library("pthread", "main")
|
||||
--- a/ruby/depot/mod_depot.c
|
||||
+++ b/ruby/depot/mod_depot.c
|
||||
@@ -83,7 +83,7 @@
|
||||
*************************************************************************************************/
|
||||
|
||||
|
||||
-Init_mod_depot(){
|
||||
+void Init_mod_depot(void){
|
||||
dpinit();
|
||||
cdepoterror = rb_define_class("DepotError", rb_eStandardError);
|
||||
cdepoterror_ENOERR = rb_define_class("DepotError_ENOERR", cdepoterror);
|
||||
--- a/ruby/villa/extconf.rb
|
||||
+++ b/ruby/villa/extconf.rb
|
||||
@@ -2,10 +2,9 @@
|
||||
|
||||
dir_config("villa")
|
||||
|
||||
-home = ENV['HOME']
|
||||
-$CFLAGS = "-I. -I../.. -I#{home}/include -I/usr/local/include"
|
||||
-$LDFLAGS = "-L../.. -L#{home}/lib -L/usr/local/lib"
|
||||
-$LIBS = "-L../.. -L#{home}/lib -L/usr/local/lib"
|
||||
+$CFLAGS << " -I../.. " << ENV["CFLAGS"]
|
||||
+$LDFLAGS << " -L../.. " << ENV["LDFLAGS"]
|
||||
+$LIBS << " -L../.."
|
||||
|
||||
have_library("c", "main")
|
||||
have_library("pthread", "main")
|
||||
--- a/ruby/villa/mod_villa.c
|
||||
+++ b/ruby/villa/mod_villa.c
|
||||
@@ -97,7 +97,7 @@
|
||||
*************************************************************************************************/
|
||||
|
||||
|
||||
-Init_mod_villa(){
|
||||
+void Init_mod_villa(void){
|
||||
vlinit();
|
||||
cvillaerror = rb_define_class("VillaError", rb_eStandardError);
|
||||
cvillaerror_ENOERR = rb_define_class("VillaError_ENOERR", cvillaerror);
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="8"
|
||||
@@ -30,6 +30,7 @@ RUBY_S="${P}/ruby"
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-configure.patch
|
||||
"${FILESDIR}"/${PN}-perl.patch
|
||||
"${FILESDIR}"/${PN}-ruby.patch
|
||||
"${FILESDIR}"/${PN}-ruby19.patch
|
||||
"${FILESDIR}"/${PN}-runpath.patch
|
||||
"${FILESDIR}"/${PN}-darwin.patch
|
||||
Reference in New Issue
Block a user