FS#74976 - [libtracefs] Build and package the sqlhist command

Attached to Project: Community Packages
Opened by Rahix (Rahix) - Monday, 06 June 2022, 15:09 GMT
Last edited by David Runge (dvzrv) - Wednesday, 20 July 2022, 10:27 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To David Runge (dvzrv)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I recently learned about the `sqlhist` command which is included as part of libtracefs.

It would be really nice if this utility could be packaged alongside the
library. For a test, I attempted to add it locally - the following changes to
the PKGBUILD file seem to be enough:

build() {
make LDFLAGS="$LDFLAGS" -C $pkgname-$pkgver
+ make sqlhist -C $pkgname-$pkgver
make doc -C $pkgname-$pkgver
}

@@ -45,6 +54,7 @@ package_libtracefs() {

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 -D $pkgname-$pkgver/bin/sqlhist "$pkgdir/usr/bin/sqlhist"

(
This task depends upon

Closed by  David Runge (dvzrv)
Wednesday, 20 July 2022, 10:27 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed with 1.4.2-1
Comment by Toolybird (Toolybird) - Monday, 18 July 2022, 22:12 GMT
Yeah, we already ship the sqlhist man page...but not the binary.
Comment by David Runge (dvzrv) - Wednesday, 20 July 2022, 10:01 GMT
@Rahix: Thanks for the ticket.

I'll look into this in the next bump.
It's a bit unfortunate that upstream's build system is such a mess. I'm fairly sure they are not yet aware of this issue themselves.

Loading...