mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 00:24:36 +08:00
Rebuild against new glibc
This commit is contained in:
parent
849c6d1873
commit
4dd92a6b66
@ -1,24 +1,31 @@
|
|||||||
#
|
|
||||||
# Chakra Packages for Chakra, part of chakra-project.org
|
|
||||||
#
|
|
||||||
# maintainer: Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
# maintainer: Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
||||||
|
|
||||||
pkgname=valgrind
|
pkgname=valgrind
|
||||||
pkgver=3.8.1
|
pkgver=3.8.1
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="A tool to help find memory-management problems in programs"
|
pkgdesc="A tool to help find memory-management problems in programs"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
url="http://valgrind.org/"
|
url="http://valgrind.org/"
|
||||||
depends=('glibc>=2.15' 'glibc<2.16' 'perl')
|
depends=('glibc>=2.17' 'glibc<2.18' 'perl')
|
||||||
makedepends=('gdb')
|
makedepends=('gdb')
|
||||||
options=('!emptydirs')
|
options=('!emptydirs')
|
||||||
source=(http://valgrind.org/downloads/${pkgname}-${pkgver}.tar.bz2)
|
source=(http://valgrind.org/downloads/${pkgname}-${pkgver}.tar.bz2
|
||||||
md5sums=('288758010b271119a0ffc0183f1d6e38')
|
valgrind-3.8.1-glibc-2.17.patch)
|
||||||
|
md5sums=('288758010b271119a0ffc0183f1d6e38'
|
||||||
|
'e87c34f9f9ce0040d141b3bd57842b5c')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd ${srcdir}/${pkgname}-${pkgver}
|
cd ${srcdir}/${pkgname}-${pkgver}
|
||||||
./configure --prefix=/usr --mandir=/usr/share/man --enable-only64bit
|
|
||||||
|
patch -p1 -i $srcdir/valgrind-3.8.1-glibc-2.17.patch
|
||||||
|
|
||||||
|
if [ "${CARCH}" = "x86_64" ]; then
|
||||||
|
./configure --prefix=/usr --mandir=/usr/share/man --enable-only64bit
|
||||||
|
else
|
||||||
|
./configure --prefix=/usr --mandir=/usr/share/man
|
||||||
|
fi
|
||||||
|
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
|
37
valgrind/valgrind-3.8.1-glibc-2.17.patch
Normal file
37
valgrind/valgrind-3.8.1-glibc-2.17.patch
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
diff -Naur valgrind-3.8.1-orig/configure valgrind-3.8.1/configure
|
||||||
|
--- valgrind-3.8.1-orig/configure 2012-09-19 05:19:23.000000000 +1000
|
||||||
|
+++ valgrind-3.8.1/configure 2012-12-27 08:11:36.645429011 +1000
|
||||||
|
@@ -6612,6 +6612,24 @@
|
||||||
|
|
||||||
|
# DEFAULT_SUPP set by kernel version check above.
|
||||||
|
;;
|
||||||
|
+ 2.17)
|
||||||
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.17 family" >&5
|
||||||
|
+$as_echo "2.17 family" >&6; }
|
||||||
|
+
|
||||||
|
+$as_echo "#define GLIBC_2_17 1" >>confdefs.h
|
||||||
|
+
|
||||||
|
+ DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
|
||||||
|
+ DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
|
||||||
|
+ DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
|
||||||
|
+ ;;
|
||||||
|
+ darwin)
|
||||||
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
|
||||||
|
+$as_echo "Darwin" >&6; }
|
||||||
|
+
|
||||||
|
+$as_echo "#define DARWIN_LIBC 1" >>confdefs.h
|
||||||
|
+
|
||||||
|
+ # DEFAULT_SUPP set by kernel version check above.
|
||||||
|
+ ;;
|
||||||
|
bionic)
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Bionic" >&5
|
||||||
|
$as_echo "Bionic" >&6; }
|
||||||
|
@@ -6624,7 +6642,7 @@
|
||||||
|
*)
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported version ${GLIBC_VERSION}" >&5
|
||||||
|
$as_echo "unsupported version ${GLIBC_VERSION}" >&6; }
|
||||||
|
- as_fn_error "Valgrind requires glibc version 2.2 - 2.16" "$LINENO" 5
|
||||||
|
+ as_fn_error "Valgrind requires glibc version 2.2 - 2.17" "$LINENO" 5
|
||||||
|
as_fn_error "or Darwin libc" "$LINENO" 5
|
||||||
|
;;
|
||||||
|
esac
|
Loading…
Reference in New Issue
Block a user