[arch-commits] Commit in libtracefs/repos/community-x86_64 (5 files)

David Runge dvzrv at gemini.archlinux.org
Wed Jul 20 10:23:37 UTC 2022


    Date: Wednesday, July 20, 2022 @ 10:23:37
  Author: dvzrv
Revision: 1254853

archrelease: copy trunk to community-x86_64

Added:
  libtracefs/repos/community-x86_64/PKGBUILD
    (from rev 1254852, libtracefs/trunk/PKGBUILD)
  libtracefs/repos/community-x86_64/libtracefs-1.2.0-docs_makefile.patch
    (from rev 1254852, libtracefs/trunk/libtracefs-1.2.0-docs_makefile.patch)
  libtracefs/repos/community-x86_64/libtracefs-1.4.2-ldflags.patch
    (from rev 1254852, libtracefs/trunk/libtracefs-1.4.2-ldflags.patch)
Deleted:
  libtracefs/repos/community-x86_64/PKGBUILD
  libtracefs/repos/community-x86_64/libtracefs-1.2.0-docs_makefile.patch

--------------------------------------+
 PKGBUILD                             |  124 +++++++++++++++++----------------
 libtracefs-1.2.0-docs_makefile.patch |   22 ++---
 libtracefs-1.4.2-ldflags.patch       |   17 ++++
 3 files changed, 93 insertions(+), 70 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-07-20 10:22:52 UTC (rev 1254852)
+++ PKGBUILD	2022-07-20 10:23:37 UTC (rev 1254853)
@@ -1,59 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-pkgbase=libtracefs
-pkgname=(libtracefs libtracefs-docs)
-pkgver=1.4.1
-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)
-makedepends=(asciidoc libtraceevent xmlto)
-provides=(libtracefs.so)
-options=(debug)
-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
-)
-sha512sums=('b1e11d7e55d6646daba9eb9eaca5150672a41faa8df2f716dad989b7848ffbd52180b3f3e6df5e80f385f94c55ae2b474b153f60f27ba8eb67e44d125bdecdee'
-            'bdfffba9957d889c60baea9c197709bf1a62d30ac4b8fd47d930b8d5b67fa040817b9a835e226dd1201f2ccdb7fcb43a12093c2b559fb6c0edc3e9ba167062c2')
-b2sums=('a642018c3c2a2915c70d0795f4ee771776f5160368034108624dbe6d23e8aada31f9edbc730260f029a35e2518fbb50f3a7349f899bd188ada32a5eb64db2816'
-        '1340af2c65dc344912715c69827d5849fda83e4bcf136da3ccdbee4e3b508e9b557af0828914dff8d27abebbdbdab975d8800432d5252b6b1eb0da08b0cb4b02')
-
-_pick() {
-  local p="$1" f d; shift
-  for f; do
-    d="$srcdir/$p/${f#$pkgdir/}"
-    mkdir -p "$(dirname "$d")"
-    mv "$f" "$d"
-    rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
-  done
-}
-
-prepare() {
-  patch -d $pkgname-$pkgver -Np 1 -i ../$pkgname-1.2.0-docs_makefile.patch
-}
-
-build() {
-  make LDFLAGS="$LDFLAGS" -C $pkgname-$pkgver
-  make doc -C $pkgname-$pkgver
-}
-
-package_libtracefs() {
-  depends+=(glibc libtraceevent.so)
-  optdepends=('libtracefs-docs: for documentation')
-
-  make libdir_relative=lib prefix=/usr DESTDIR="$pkgdir/" install -C $pkgname-$pkgver
-  make libdir_relative=lib prefix=/usr DESTDIR="$pkgdir/" install -C $pkgname-$pkgver/Documentation
-
-  (
-    cd "$pkgdir"
-    _pick libtracefs-docs usr/share/doc
-  )
-}
-
-package_libtracefs-docs() {
-  pkgdesc+=" - documentation"
-
-  mv -v $pkgname/* "$pkgdir"
-}

Copied: libtracefs/repos/community-x86_64/PKGBUILD (from rev 1254852, libtracefs/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-07-20 10:23:37 UTC (rev 1254853)
@@ -0,0 +1,65 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+pkgbase=libtracefs
+pkgname=(libtracefs libtracefs-docs)
+pkgver=1.4.2
+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)
+makedepends=(asciidoc libtraceevent xmlto)
+provides=(libtracefs.so)
+options=(debug)
+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.4.2-ldflags.patch
+)
+sha512sums=('4a66c3cf8050de5acc4c63996cbcfa2c014e26ad6011eb89b0cff47ffbd6343637009354edf6bb173b9fd08103012774376c33fd6f642741f7990f2d6de3ea0c'
+            'bdfffba9957d889c60baea9c197709bf1a62d30ac4b8fd47d930b8d5b67fa040817b9a835e226dd1201f2ccdb7fcb43a12093c2b559fb6c0edc3e9ba167062c2'
+            '6b3ffa2dee59edf1ce376b23f38edb29720c1fced4beae3a2e6d8358430839c929bd52c1a3fa193cd3cc86e128dd9a45d79be3ddfebffe1bae4e690f48403864')
+b2sums=('a956423370077613417812ad18da284521e8798701d558f4e419af6c43bd8a06c489525bbab26e6bc5d5d5e8fd0e6a7322d34f976a4ea560670eb594818d07fc'
+        '1340af2c65dc344912715c69827d5849fda83e4bcf136da3ccdbee4e3b508e9b557af0828914dff8d27abebbdbdab975d8800432d5252b6b1eb0da08b0cb4b02'
+        '56b7f27ed2913e1c85b133e5ec15f632bcfa54a530149e3b1450cb7bc9b951c1853fad25f9d467772334471986f492baf198710086f1ab2050932c8c7b96af50')
+
+_pick() {
+  local p="$1" f d; shift
+  for f; do
+    d="$srcdir/$p/${f#$pkgdir/}"
+    mkdir -p "$(dirname "$d")"
+    mv "$f" "$d"
+    rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
+  done
+}
+
+prepare() {
+  patch -d $pkgname-$pkgver -Np 1 -i ../$pkgname-1.2.0-docs_makefile.patch
+  patch -d $pkgname-$pkgver -Np 1 -i ../$pkgname-1.4.2-ldflags.patch
+}
+
+build() {
+  make -C $pkgname-$pkgver
+  make sqlhist -C $pkgname-$pkgver
+  make doc -C $pkgname-$pkgver
+}
+
+package_libtracefs() {
+  depends+=(glibc libtraceevent.so)
+  optdepends=('libtracefs-docs: for documentation')
+
+  make libdir_relative=lib prefix=/usr DESTDIR="$pkgdir/" install -C $pkgname-$pkgver
+  make libdir_relative=lib prefix=/usr DESTDIR="$pkgdir/" install -C $pkgname-$pkgver/Documentation
+  install -vDm 755 $pkgname-$pkgver/bin/sqlhist -t "$pkgdir/usr/bin/"
+
+  (
+    cd "$pkgdir"
+    _pick libtracefs-docs usr/share/doc
+  )
+}
+
+package_libtracefs-docs() {
+  pkgdesc+=" - documentation"
+
+  mv -v $pkgname/* "$pkgdir"
+}

Deleted: libtracefs-1.2.0-docs_makefile.patch
===================================================================
--- libtracefs-1.2.0-docs_makefile.patch	2022-07-20 10:22:52 UTC (rev 1254852)
+++ libtracefs-1.2.0-docs_makefile.patch	2022-07-20 10:23:37 UTC (rev 1254853)
@@ -1,11 +0,0 @@
-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

Copied: libtracefs/repos/community-x86_64/libtracefs-1.2.0-docs_makefile.patch (from rev 1254852, libtracefs/trunk/libtracefs-1.2.0-docs_makefile.patch)
===================================================================
--- libtracefs-1.2.0-docs_makefile.patch	                        (rev 0)
+++ libtracefs-1.2.0-docs_makefile.patch	2022-07-20 10:23:37 UTC (rev 1254853)
@@ -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

Copied: libtracefs/repos/community-x86_64/libtracefs-1.4.2-ldflags.patch (from rev 1254852, libtracefs/trunk/libtracefs-1.4.2-ldflags.patch)
===================================================================
--- libtracefs-1.4.2-ldflags.patch	                        (rev 0)
+++ libtracefs-1.4.2-ldflags.patch	2022-07-20 10:23:37 UTC (rev 1254853)
@@ -0,0 +1,17 @@
+diff -ruN a/scripts/utils.mk b/scripts/utils.mk
+--- a/scripts/utils.mk	2022-07-14 21:19:15.000000000 +0200
++++ b/scripts/utils.mk	2022-07-20 12:15:20.026783304 +0200
+@@ -101,11 +101,11 @@
+ 
+ do_sample_build =							\
+ 	$(Q)($(print_sample_build)					\
+-	$(CC) -o $1 $2 $(CFLAGS) $(LIBTRACEFS_STATIC) $(LIBTRACEEVENT_LIBS))
++	$(CC) -o $1 $2 $(CFLAGS) $(LIBTRACEFS_STATIC) $(LIBTRACEEVENT_LIBS) $(LDFLAGS))
+ 
+ do_sample_obj =									\
+ 	$(Q)($(print_sample_obj)						\
+-	$(CC) -g -Wall -c $(CFLAGS) -o $1 $2 -I../include/ $(LIBTRACEEVENT_INCLUDES))
++	$(CC) -g -Wall -c $(CFLAGS) -o $1 $2 -I../include/ $(LIBTRACEEVENT_INCLUDES) $(LDFLAGS))
+ 
+ ifneq ($(findstring $(MAKEFLAGS), w),w)
+ PRINT_DIR = --no-print-directory



More information about the arch-commits mailing list