[arch-commits] Commit in (6 files)

David Runge dvzrv at archlinux.org
Fri May 14 19:07:49 UTC 2021


    Date: Friday, May 14, 2021 @ 19:07:49
  Author: dvzrv
Revision: 934303

Add libtracefs as dependency for trace-cmd.

Added:
  libtracefs/
  libtracefs/repos/
  libtracefs/trunk/
  libtracefs/trunk/PKGBUILD
  libtracefs/trunk/libtracefs-1.2.0-docs_makefile.patch
  libtracefs/trunk/libtracefs-1.2.0-full_relro.patch

--------------------------------------+
 PKGBUILD                             |   42 +++++++++++++++++++++++++++++++++
 libtracefs-1.2.0-docs_makefile.patch |   11 ++++++++
 libtracefs-1.2.0-full_relro.patch    |   12 +++++++++
 3 files changed, 65 insertions(+)

Added: libtracefs/trunk/PKGBUILD
===================================================================
--- libtracefs/trunk/PKGBUILD	                        (rev 0)
+++ libtracefs/trunk/PKGBUILD	2021-05-14 19:07:49 UTC (rev 934303)
@@ -0,0 +1,42 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+pkgname=libtracefs
+pkgver=1.2.0
+pkgrel=1
+pkgdesc="Linux kernel trace file system library"
+arch=('x86_64')
+url="https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/about/"
+license=('GPL2' 'LGPL2.1')
+depends=('glibc')
+makedepends=('asciidoc' 'libtraceevent' 'xmlto')
+provides=('libtracefs.so')
+source=("$pkgname-$pkgver.tar.gz::https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/snapshot/${pkgname}-${pkgver}.tar.gz"
+        "$pkgname-1.2.0-docs_makefile.patch"
+        "$pkgname-1.2.0-full_relro.patch")
+noextract=()
+sha512sums=('e26f1e93dfc5b2bec72a616015259e4d9e3ded25df31a08acec3b547c8579dec91be9f6eba8ee4043d21064ce06805bdea28fd7356e980fcdb8c7bae6d0daa19'
+            'bdfffba9957d889c60baea9c197709bf1a62d30ac4b8fd47d930b8d5b67fa040817b9a835e226dd1201f2ccdb7fcb43a12093c2b559fb6c0edc3e9ba167062c2'
+            '2956c79c3a5952bbe1f2b67df3adb0d6ce83c7cf4220811e7b88a133062cd6e2c238c58a6f82c140adb66ed27a6d4a4a40916ea9dc171ae7d747dbfcb98eac25')
+b2sums=('e3c27cac3903624ca90089eb87281dd99382f2ba3927703149623cf63c62cbc4f724bfa1f5a542363501da94be5a787ac3cb105c640e43fe4edf8e88b4c8c251'
+        '1340af2c65dc344912715c69827d5849fda83e4bcf136da3ccdbee4e3b508e9b557af0828914dff8d27abebbdbdab975d8800432d5252b6b1eb0da08b0cb4b02'
+        'f7d3982f927bfd9a4125d88aa4ffc9a4d4477d6e3867a29e596bf59791789e974a50fe6b648d7f650134310d3823f7f3b8af7c113bc52b582a11637b9752c468')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  patch -Np 1 -i ../"$pkgname-1.2.0-docs_makefile.patch"
+  patch -Np 1 -i ../"$pkgname-1.2.0-full_relro.patch"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  make LDFLAGS="$LDFLAGS"
+  make doc
+}
+
+package() {
+  depends+=('libtraceevent.so')
+
+  cd "$pkgname-$pkgver"
+  make libdir_relative=lib prefix=/usr DESTDIR="$pkgdir/" install
+  make libdir_relative=lib prefix=/usr DESTDIR="$pkgdir/" install -C Documentation
+}

Added: libtracefs/trunk/libtracefs-1.2.0-docs_makefile.patch
===================================================================
--- libtracefs/trunk/libtracefs-1.2.0-docs_makefile.patch	                        (rev 0)
+++ libtracefs/trunk/libtracefs-1.2.0-docs_makefile.patch	2021-05-14 19:07:49 UTC (rev 934303)
@@ -0,0 +1,11 @@
+diff -ruN a/Documentation/Makefile b/Documentation/Makefile
+--- a/Documentation/Makefile	2021-05-13 04:59:12.000000000 +0200
++++ b/Documentation/Makefile	2021-05-14 20:56:14.220076655 +0200
+@@ -1,6 +1,6 @@
+ # SPDX-License-Identifier: LGPL-2.1
+ 
+-include $(src)/scripts/utils.mk
++include ../scripts/utils.mk
+ 
+ 
+ # This Makefile and manpage XSL files were taken from libtraceevent

Added: libtracefs/trunk/libtracefs-1.2.0-full_relro.patch
===================================================================
--- libtracefs/trunk/libtracefs-1.2.0-full_relro.patch	                        (rev 0)
+++ libtracefs/trunk/libtracefs-1.2.0-full_relro.patch	2021-05-14 19:07:49 UTC (rev 934303)
@@ -0,0 +1,12 @@
+diff -ruN a/scripts/utils.mk b/scripts/utils.mk
+--- a/scripts/utils.mk	2021-05-13 04:59:12.000000000 +0200
++++ b/scripts/utils.mk	2021-05-14 21:05:11.357878988 +0200
+@@ -56,7 +56,7 @@
+ 
+ do_compile_shared_library =			\
+ 	($(print_shared_lib_compile)		\
+-	$(CC) --shared $^ '-Wl,-soname,$(1),-rpath=$$ORIGIN' -o $@ $(LIBS))
++	$(CC) --shared $^ '-Wl,-soname,$(1),-rpath=$$ORIGIN' $(LDFLAGS) -o $@ $(LIBS))
+ 
+ do_compile_plugin_obj =				\
+ 	($(print_plugin_obj_compile)		\



More information about the arch-commits mailing list