New package: libabigail-1.0.rc3

This commit is contained in:
Christian Neukirchen 2016-04-12 13:21:23 +02:00
parent 116e0db41f
commit 1318cced7a
6 changed files with 96 additions and 0 deletions

View file

@ -2413,3 +2413,4 @@ libspotify.so.12 libspotify-12.1.51_1
libwiredtiger-2.8.0.so wiredtiger-2.8.0_1
libvidstab.so.0.9 libvidstab-0.98b_1
libxdo.so.3 xdotool-3.20150503.1_1
libabigail.so.0 libabigail-1.0.rc3_1

1
srcpkgs/libabigail-devel Symbolic link
View file

@ -0,0 +1 @@
libabigail

1
srcpkgs/libabigail-tools Symbolic link
View file

@ -0,0 +1 @@
libabigail

View file

@ -0,0 +1,39 @@
--- include/abg-comparison.h.orig
+++ include/abg-comparison.h
@@ -27,6 +27,7 @@
#include <tr1/unordered_map>
#include <ostream>
+#include <sys/types.h>
#include "abg-corpus.h"
#include "abg-diff-utils.h"
#include "abg-ini.h"
--- src/abg-dwarf-reader.cc.orig
+++ src/abg-dwarf-reader.cc
@@ -37,6 +37,10 @@
#include <cmath>
#include <elfutils/libdwfl.h>
#include <dwarf.h>
+#include <elf.h>
+#ifndef EM_OPENRISC
+# define EM_OPENRISC 92
+#endif
#include <algorithm>
#include <iostream>
#include <tr1/unordered_map>
--- tools/abisym.cc.orig
+++ tools/abisym.cc
@@ -151,10 +151,10 @@
cout << "could not find symbol '"
<< opts.symbol_name
<< "' in file '";
- if (opts.absolute_path)
+ //if (opts.absolute_path)
cout << opts.elf_path << "'\n";
- else
- cout << basename(opts.elf_path);
+ //else
+ //cout << basename(opts.elf_path);
return 0;
}

View file

@ -0,0 +1,14 @@
Detect .xbps as tarballs.
--- src/abg-tools-utils.cc.orig
+++ src/abg-tools-utils.cc
@@ -690,7 +690,8 @@
|| string_ends_with(file_path, ".tlz")
|| string_ends_with(file_path, ".tar.Z")
|| string_ends_with(file_path, ".taz")
- || string_ends_with(file_path, ".tz"))
+ || string_ends_with(file_path, ".tz")
+ || string_ends_with(file_path, ".xbps"))
return FILE_TYPE_TAR;
ifstream in(file_path.c_str(), ifstream::binary);

View file

@ -0,0 +1,40 @@
# Template file for 'libabigail'
pkgname=libabigail
version=1.0.rc3
revision=1
build_style=gnu-configure
hostmakedepends="dpkg pkg-config python-Sphinx rpmextract"
makedepends="elfutils-devel libxml2-devel"
short_desc="ABI Generic Analysis and Instrumentation Library"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="LGPL-3"
homepage="https://www.sourceware.org/libabigail/"
distfiles="http://mirrors.kernel.org/sourceware/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=8698be2c571849f30c9c8bc9e0158072f2d87bb17918ad5cbf6edff8b47bec0c
post_build() {
make -C doc/manuals man info
}
post_install() {
make -C doc/manuals install-man-and-info-doc DESTDIR="$DESTDIR"
}
libabigail-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
vmove usr/lib/*.a
vmove usr/lib/pkgconfig
vmove usr/share/aclocal
}
}
libabigail-tools_package() {
short_desc+=" - tools"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/bin
vmove usr/share/man
vmove usr/share/info
}
}