modem/qrtr: remove
Upstreamed to Alpine already Ref: https://gitlab.alpinelinux.org/alpine/aports/-/tree/master/community/qrtr Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6403 [ci:skip-build]: already built successfully in CI
This commit is contained in:
parent
84f364fd5a
commit
feacb49148
4 changed files with 0 additions and 116 deletions
|
|
@ -1,53 +0,0 @@
|
|||
From 4990bead3e1dc8c98921e773d3d74fbcc3919715 Mon Sep 17 00:00:00 2001
|
||||
From: Alexey Minnekhanov <alexey.min@gmail.com>
|
||||
Date: Sun, 28 Apr 2024 18:41:42 +0300
|
||||
Subject: [PATCH] meson: Specify project and library version
|
||||
|
||||
Specify project version in meson project() call.
|
||||
Withouth this in generated qrtr.pc pkg-config file
|
||||
version will be undefined, and this is a packaging error.
|
||||
E.g. Alpine Linux's build system doesn't allow this to pass.
|
||||
|
||||
Specify also shared library soversion.
|
||||
This reults in library being called libqrtr.so.1.1 and
|
||||
symlinks generated and installed as:
|
||||
|
||||
libqrtr.so -> libqrtr.so.1
|
||||
libqrtr.so.1 -> libqrtr.so.1.1
|
||||
|
||||
This is important for -dev subpackage.
|
||||
|
||||
Signed-off-by: Alexey Minnekhanov <alexey.min@gmail.com>
|
||||
---
|
||||
lib/meson.build | 3 ++-
|
||||
meson.build | 1 +
|
||||
2 files changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/lib/meson.build b/lib/meson.build
|
||||
index 7a894b3..d60d2f5 100644
|
||||
--- a/lib/meson.build
|
||||
+++ b/lib/meson.build
|
||||
@@ -6,6 +6,7 @@ libqrtr_srcs = ['logging.c', 'qmi.c', 'qrtr.c']
|
||||
libqrtr = shared_library('qrtr',
|
||||
libqrtr_srcs,
|
||||
include_directories : inc,
|
||||
- install: true)
|
||||
+ install : true,
|
||||
+ version : meson.project_version())
|
||||
|
||||
pkg.generate(libqrtr)
|
||||
diff --git a/meson.build b/meson.build
|
||||
index 4478263..c378761 100644
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -3,6 +3,7 @@
|
||||
project('qrtr',
|
||||
'c',
|
||||
license : [ 'BSD-3-Clause'],
|
||||
+ version : '1.1',
|
||||
default_options : [
|
||||
'warning_level=1',
|
||||
'buildtype=release',
|
||||
--
|
||||
2.43.2
|
||||
|
||||
|
|
@ -1,49 +0,0 @@
|
|||
# Maintainer: Minecrell <minecrell@minecrell.net>
|
||||
pkgname=qrtr
|
||||
pkgver=1.1
|
||||
pkgrel=0
|
||||
pkgdesc="Userspace reference for net/qrtr in the Linux kernel"
|
||||
url="https://github.com/linux-msm/qrtr"
|
||||
arch="all"
|
||||
license="BSD-3-Clause"
|
||||
depends_dev="linux-headers"
|
||||
makedepends="$depends_dev meson"
|
||||
subpackages="$pkgname-doc $pkgname-dev $pkgname-libs $pkgname-pmtest"
|
||||
source="
|
||||
qrtr-$pkgver.tar.gz::https://github.com/linux-msm/qrtr/archive/refs/tags/v$pkgver.tar.gz
|
||||
0001-meson-Specify-project-and-library-version.patch
|
||||
lookup-test.files
|
||||
lookup-test.sh
|
||||
"
|
||||
options="!check"
|
||||
|
||||
build() {
|
||||
abuild-meson \
|
||||
-Dqrtr-ns=disabled \
|
||||
-Dsystemd-service=disabled \
|
||||
. output
|
||||
meson compile -C output
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
||||
|
||||
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/COPYING
|
||||
}
|
||||
|
||||
pmtest() {
|
||||
install_if="$pkgname=$pkgver-r$pkgrel postmarketos-mkinitfs-hook-ci"
|
||||
|
||||
install -Dm755 "$srcdir"/lookup-test.sh \
|
||||
"$subpkgdir"/usr/libexec/pmos-tests-initramfs/10-qrtr-lookup.sh
|
||||
|
||||
install -Dm644 "$srcdir"/lookup-test.files \
|
||||
"$subpkgdir"/usr/share/mkinitfs/files/10-qrtr-lookup.files
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
68cc8731d500b2e7f5702471a3c239f415bd97035678d972d40d28ceb58bcaa1ee271816fd2002776a2d370611fc9e5e54a79d1a16ce2bce258b9411d9aec824 qrtr-1.1.tar.gz
|
||||
9209bdc7d06bc231f191230b88bbb666edee82ad03da95bcc00d29ac47144f89f0430f5c649820f6cece4edcdb1991d1bfb94a5d59bb12ca415968797e956c76 0001-meson-Specify-project-and-library-version.patch
|
||||
00b26c284b2765ddc46cf4b9eb4013e09ae96dfa4a9ac1c49f608a735579bbb442cda2a116417131c5dec234aca224bac824a2167f280990a04c90bc3065a51d lookup-test.files
|
||||
6daecca1be580176cc275a07e87086151fe2426a4f032264a305a5deb49d888acd29e05e6efbabb1693cd5ebdfb62a7543138d2149c9a1154d1451b3d854dfdc lookup-test.sh
|
||||
"
|
||||
|
|
@ -1 +0,0 @@
|
|||
/usr/bin/qrtr-lookup
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
#!/bin/sh -e
|
||||
# Automated test for qrtr-lookup
|
||||
# Ensures that a DSP is running and exposes at least 1 service
|
||||
|
||||
qrtr-lookup | tee /tmp/qrtr-lookup.log
|
||||
|
||||
if [ $(wc -l /tmp/qrtr-lookup.log | cut -d' ' -f1) -gt 1 ]; then
|
||||
echo "At least one QMI service is running"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "FAIL: No QMI service is running"
|
||||
exit 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue