mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 06:17:48 +08:00
libunwind: import as spring's dependency.
This commit is contained in:
parent
3107659977
commit
daca39897b
@ -0,0 +1,11 @@
|
||||
--- a/include/dwarf_i.h
|
||||
+++ b/include/dwarf_i.h
|
||||
@@ -20,7 +20,7 @@
|
||||
extern const uint8_t dwarf_to_unw_regnum_map[DWARF_REGNUM_MAP_LENGTH];
|
||||
/* REG is evaluated multiple times; it better be side-effects free! */
|
||||
# define dwarf_to_unw_regnum(reg) \
|
||||
- (((reg) <= DWARF_REGNUM_MAP_LENGTH) ? dwarf_to_unw_regnum_map[reg] : 0)
|
||||
+ (((reg) < DWARF_REGNUM_MAP_LENGTH) ? dwarf_to_unw_regnum_map[reg] : 0)
|
||||
#endif
|
||||
|
||||
#ifdef UNW_LOCAL_ONLY
|
39
libunwind/PKGBUILD
Normal file
39
libunwind/PKGBUILD
Normal file
@ -0,0 +1,39 @@
|
||||
# Contributions from Arch:
|
||||
# Maintainer: Sébastien Luttringer
|
||||
# Contributor: Lawrence Lee <valheru@facticius.net>
|
||||
# Contributor: Phillip Marvin <phillip.marvin@gmail.com>
|
||||
# Contributor: keystone <phillip.marvin@gmail.com>
|
||||
|
||||
pkgname=libunwind
|
||||
pkgver=1.1
|
||||
pkgrel=1
|
||||
pkgdesc='Portable and efficient C programming interface (API) to determine the call-chain of a program'
|
||||
arch=('x86_64')
|
||||
url='http://www.nongnu.org/libunwind/'
|
||||
license=('GPL')
|
||||
depends=('glibc' 'xz')
|
||||
source=("http://download.savannah.gnu.org/releases/$pkgname/$pkgname-$pkgver.tar.gz"
|
||||
'001-invalid-dwarf-opcodes-can-cause-references-beyond.patch')
|
||||
md5sums=('fb4ea2f6fbbe45bf032cd36e586883ce'
|
||||
'73db2376e195a716f271ebce6bb7e5c0')
|
||||
|
||||
prepare() {
|
||||
patch -p1 -d $pkgname-$pkgver < 001-invalid-dwarf-opcodes-can-cause-references-beyond.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
./configure CFLAGS="$CFLAGS -U_FORTIFY_SOURCE" --prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
cd $pkgname-$pkgver
|
||||
# This function is ``supposed'' to fail. Upstream know, but haven't fixed it.
|
||||
make check || return 0
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
make DESTDIR="$pkgdir/" install
|
||||
}
|
Loading…
Reference in New Issue
Block a user