Skip to content

Commit 44ff8df

Browse files
keszybzyuwata
authored andcommitted
Drop dependency on m4
m4 was hugely popular in the past, because autotools, automake, flex, bison and many other things used it. But nowadays it much less popular, and might not even be installed in the buildroot. (m4 is small, so it doesn't make a big difference.) (FWIW, Fedora dropped make from the buildroot now, https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot. I think it's reasonable to assume that m4 will be dropped at some point too.) The main reason to drop m4 is that the syntax is not very nice, and we should minimize the number of different syntaxes that we use. We still have two (configure_file() with @foo@ and jinja2 templates with {{foo}} and the pythonesque conditional expressions), but at least we don't need m4 (with m4_dnl and `quotes').
1 parent 02fa218 commit 44ff8df

File tree

10 files changed

+2
-31
lines changed

10 files changed

+2
-31
lines changed

.mkosi/mkosi.arch

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ BuildPackages=
3535
libxkbcommon
3636
libxslt
3737
lz4
38-
m4
3938
meson
4039
pam
4140
pkgconfig

.mkosi/mkosi.debian

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ BuildPackages=
4646
libtss2-dev
4747
libxkbcommon-dev
4848
libzstd-dev
49-
m4
5049
meson
5150
pkg-config
5251
python3

.mkosi/mkosi.fedora

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ BuildPackages=
4545
libzstd-devel
4646
lz4
4747
lz4-devel
48-
m4
4948
meson
5049
ninja-build
5150
openssl-devel

.mkosi/mkosi.opensuse

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ BuildPackages=
3030
libseccomp-devel
3131
libselinux-devel
3232
libxslt-tools
33-
m4
3433
meson
3534
pam-devel
3635
pciutils-devel

.mkosi/mkosi.ubuntu

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ BuildPackages=
4949
libxkbcommon-dev
5050
libxtables-dev
5151
libzstd-dev
52-
m4
5352
meson
5453
pkg-config
5554
python3

README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ REQUIREMENTS:
195195
python >= 3.5
196196
meson >= 0.46 (>= 0.49 is required to build position-independent executables)
197197
ninja
198-
gcc, awk, sed, grep, m4, and similar tools
198+
gcc, awk, sed, grep, and similar tools
199199
clang >= 10.0, llvm >= 10.0 (optional, required to build BPF programs
200200
from source code in C)
201201

meson.build

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,6 @@ echo = find_program('echo')
606606
test = find_program('test')
607607
sed = find_program('sed')
608608
awk = find_program('awk')
609-
m4 = find_program('m4')
610609
stat = find_program('stat')
611610
ln = find_program('ln')
612611
git = find_program('git', required : false)
@@ -1650,7 +1649,6 @@ generate_gperfs = find_program('tools/generate-gperfs.py')
16501649
make_autosuspend_rules_py = find_program('tools/make-autosuspend-rules.py')
16511650
make_directive_index_py = find_program('tools/make-directive-index.py')
16521651
make_man_index_py = find_program('tools/make-man-index.py')
1653-
meson_apply_m4 = find_program('tools/meson-apply-m4.sh')
16541652
meson_render_jinja2 = find_program('tools/meson-render-jinja2.py')
16551653
update_dbus_docs_py = find_program('tools/update-dbus-docs.py')
16561654
update_hwdb_sh = find_program('tools/update-hwdb.sh')

test/TEST-06-SELINUX/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ test_append_files() {
4848
cp systemd_test.fc "$workspace/systemd-test-module"
4949
dracut_install -o sesearch
5050
dracut_install runcon
51-
dracut_install checkmodule semodule semodule_package m4 make load_policy sefcontext_compile
51+
dracut_install checkmodule semodule semodule_package make load_policy sefcontext_compile
5252
dracut_install -o /usr/libexec/selinux/hll/pp # Fedora/RHEL/...
5353
dracut_install -o /usr/lib/selinux/hll/pp # Debian/Ubuntu/...
5454
)

test/mkosi.default.networkd-test

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ BuildPackages=
5252
libxslt
5353
lz4
5454
lz4-devel
55-
m4
5655
meson
5756
ninja-build
5857
pam-devel

tools/meson-apply-m4.sh

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

0 commit comments

Comments
 (0)