Skip to content

Commit cd069ad

Browse files
authored
Merge pull request #37 from z3ntu/drop-ns
ns: Drop qrtr-ns
2 parents b51ffaf + 3edda0e commit cd069ad

File tree

22 files changed

+2
-1865
lines changed

22 files changed

+2
-1865
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,17 @@ jobs:
5252
#- ubuntu:xenial
5353
cross_compile: [""]
5454
variant: [""]
55-
nosystemd: [""]
5655
include:
5756
# Alpine (OpenRC)
5857
- container: "alpine:edge"
5958
arch: x86-64
6059
family: x86-64
6160
compiler: gcc
62-
nosystemd: true
6361

6462
- container: "alpine:latest"
6563
arch: x86-64
6664
family: x86-64
6765
compiler: gcc
68-
nosystemd: true
6966

7067
# Debian 32-bit builds
7168
- container: "debian:testing"
@@ -218,7 +215,6 @@ jobs:
218215
- name: Meson init with cross compile
219216
if: ${{ matrix.variant == 'cross-compile' }}
220217
run: |
221-
# installing systemd (for pkg-config) has personality issues with cross-compilation
222218
# Generate cross compile file (see https://mesonbuild.com/Cross-compilation.html#cross-compilation)
223219
echo "[binaries]" > cross.txt
224220
echo "c = '${CROSS_COMPILE}-gcc'" >> cross.txt

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ out/
22
*.so
33
qrtr-cfg
44
qrtr-lookup
5-
qrtr-ns

Android.bp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,6 @@ cc_library {
1111
local_include_dirs: ["src"],
1212
}
1313

14-
cc_binary {
15-
name: "qrtr-ns",
16-
vendor: true,
17-
srcs: [
18-
"lib/logging.c",
19-
"src/addr.c",
20-
"src/ns.c",
21-
"src/map.c",
22-
"src/hash.c",
23-
"src/waiter.c",
24-
"src/util.c",
25-
],
26-
cflags: ["-Wno-error"],
27-
local_include_dirs: ["lib"],
28-
}
29-
3014
cc_binary {
3115
name: "qrtr-cfg",
3216
vendor: true,
@@ -45,7 +29,6 @@ cc_binary {
4529
srcs: [
4630
"lib/logging.c",
4731
"src/lookup.c",
48-
"src/util.c",
4932
],
5033
cflags: ["-Wno-error"],
5134
local_include_dirs: ["lib"],

ci/archlinux.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ case $CC in
1717
esac
1818

1919
pacman -Syu --noconfirm \
20-
systemd-libs \
2120
pkgconf \
2221
meson \
2322
$PKGS_CC

ci/debian.cross-compile.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,4 @@ apt install -y --no-install-recommends \
2222
libc6-dev:${ARCH} \
2323
gcc-`dpkg-architecture -a ${ARCH} -q DEB_TARGET_GNU_TYPE`
2424

25-
# Thanks debian
26-
apt install -y --no-install-recommends systemd-dev:${ARCH} -a ${ARCH} || true
27-
2825
echo "Install finished: $0"

ci/debian.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@ esac
3030
apt install -y --no-install-recommends \
3131
pkg-config \
3232
meson \
33-
systemd \
3433
libc6-dev \
3534
$PKGS_CC
3635

37-
# Thanks debian
38-
apt install -y --no-install-recommends systemd-dev || true
39-
4036
echo "Install finished: $0"

ci/fedora.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ dnf -y install \
2020
meson \
2121
pkg-config \
2222
libudev-devel \
23-
systemd-devel \
24-
systemd-libs \
2523
$PKGS_CC
2624

2725
echo "Install finished: $0"

meson.build

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,8 @@ project('qrtr',
1010
])
1111

1212
prefix = get_option('prefix')
13-
with_qrtr_ns = get_option('qrtr-ns')
14-
15-
install_systemd_unit = get_option('systemd-service')
16-
systemd = dependency('systemd', required : install_systemd_unit)
17-
if systemd.found()
18-
systemd_system_unit_dir = get_option('systemd-unit-prefix')
19-
if systemd_system_unit_dir == ''
20-
systemd_system_unit_dir = systemd.get_variable(
21-
pkgconfig : 'systemdsystemunitdir',
22-
pkgconfig_define: ['prefix', prefix])
23-
else
24-
message('Could not resolve systemd dependencies, skipping unit file')
25-
install_systemd_unit = false
26-
endif
27-
endif
2813

2914
inc = include_directories('include')
3015
subdir('lib')
3116
subdir('include')
3217
subdir('src')
33-
34-
if systemd.found() and with_qrtr_ns.enabled()
35-
systemd_unit_conf = configuration_data()
36-
systemd_unit_conf.set('prefix', prefix)
37-
configure_file(
38-
input : 'qrtr-ns.service.in',
39-
output : 'qrtr-ns.service',
40-
configuration : systemd_unit_conf,
41-
install_dir : systemd_system_unit_dir)
42-
endif

meson_options.txt

Lines changed: 0 additions & 16 deletions
This file was deleted.

qrtr-ns.service.in

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)