From: "Alexander Kanavin" <alex.kanavin@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Alexander Kanavin <alex.kanavin@gmail.com>
Subject: [PATCH 03/55] lighttpd: convert from autotools to meson
Date: Sun, 22 Aug 2021 14:50:11 +0200 [thread overview]
Message-ID: <20210822125103.310416-3-alex.kanavin@gmail.com> (raw)
In-Reply-To: <20210822125103.310416-1-alex.kanavin@gmail.com>
virtual/crypt is a hard dependency in meson builds.
ipv6 support is determined automatically.
The rest of the options are converted where available;
not every autoconf option exists in meson.
Modules are now packaged in /usr/lib/lighttpd, so adjust packaging accordingly.
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
---
...n-add-with_zstd-to-meson_options.txt.patch | 27 +++++++++
.../lighttpd/lighttpd_1.4.59.bb | 58 +++++++++----------
2 files changed, 56 insertions(+), 29 deletions(-)
create mode 100644 meta/recipes-extended/lighttpd/lighttpd/0001-meson-add-with_zstd-to-meson_options.txt.patch
diff --git a/meta/recipes-extended/lighttpd/lighttpd/0001-meson-add-with_zstd-to-meson_options.txt.patch b/meta/recipes-extended/lighttpd/lighttpd/0001-meson-add-with_zstd-to-meson_options.txt.patch
new file mode 100644
index 0000000000..ceedccbd11
--- /dev/null
+++ b/meta/recipes-extended/lighttpd/lighttpd/0001-meson-add-with_zstd-to-meson_options.txt.patch
@@ -0,0 +1,27 @@
+From f24bd105388c305beeead5d3fa0a028b82354f18 Mon Sep 17 00:00:00 2001
+From: Glenn Strauss <gstrauss@gluelogic.com>
+Date: Wed, 3 Feb 2021 00:35:34 -0500
+Subject: [PATCH] [meson] add with_zstd to meson_options.txt
+
+Upstream-Status: Backport
+Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
+---
+ meson_options.txt | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/meson_options.txt b/meson_options.txt
+index 51bea44d..f6687159 100644
+--- a/meson_options.txt
++++ b/meson_options.txt
+@@ -148,6 +148,11 @@ option('with_zlib',
+ value: true,
+ description: 'with deflate-support for mod_deflate [default: on]',
+ )
++option('with_zstd',
++ type: 'boolean',
++ value: false,
++ description: 'with zstd-support for mod_deflate [default: off]',
++)
+
+ option('build_extra_warnings',
+ type: 'boolean',
diff --git a/meta/recipes-extended/lighttpd/lighttpd_1.4.59.bb b/meta/recipes-extended/lighttpd/lighttpd_1.4.59.bb
index f97c5913b8..f74016f834 100644
--- a/meta/recipes-extended/lighttpd/lighttpd_1.4.59.bb
+++ b/meta/recipes-extended/lighttpd/lighttpd_1.4.59.bb
@@ -14,40 +14,38 @@ RRECOMMENDS:${PN} = "lighttpd-module-access \
lighttpd-module-accesslog"
SRC_URI = "http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-${PV}.tar.xz \
- file://index.html.lighttpd \
- file://lighttpd.conf \
- file://lighttpd \
- file://0001-Use-pkg-config-for-pcre-dependency-instead-of-config.patch \
- "
+ file://index.html.lighttpd \
+ file://lighttpd.conf \
+ file://lighttpd \
+ file://0001-Use-pkg-config-for-pcre-dependency-instead-of-config.patch \
+ file://0001-meson-add-with_zstd-to-meson_options.txt.patch \
+ "
SRC_URI[sha256sum] = "fb953db273daef08edb6e202556cae8a3d07eed6081c96bd9903db957d1084d5"
+DEPENDS = "virtual/crypt"
+
PACKAGECONFIG ??= "openssl pcre zlib \
- ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \
"
-PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6"
-PACKAGECONFIG[mmap] = "--enable-mmap,--disable-mmap"
-PACKAGECONFIG[libev] = "--with-libev,--without-libev,libev"
-PACKAGECONFIG[mysql] = "--with-mysql,--without-mysql,mariadb"
-PACKAGECONFIG[ldap] = "--with-ldap,--without-ldap,openldap"
-PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr"
-PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind"
-PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl"
-PACKAGECONFIG[krb5] = "--with-krb5,--without-krb5,krb5"
-PACKAGECONFIG[pcre] = "--with-pcre,--without-pcre,libpcre"
-PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib"
-PACKAGECONFIG[bzip2] = "--with-bzip2,--without-bzip2,bzip2"
-PACKAGECONFIG[webdav-props] = "--with-webdav-props,--without-webdav-props,libxml2 sqlite3"
-PACKAGECONFIG[webdav-locks] = "--with-webdav-locks,--without-webdav-locks,util-linux"
-PACKAGECONFIG[gdbm] = "--with-gdbm,--without-gdbm,gdbm"
-PACKAGECONFIG[memcache] = "--with-memcached,--without-memcached,libmemcached"
-PACKAGECONFIG[lua] = "--with-lua,--without-lua,lua"
-
-EXTRA_OECONF += "--enable-lfs --without-fam"
-
-inherit autotools pkgconfig update-rc.d gettext systemd
+PACKAGECONFIG[libev] = "-Dwith_libev=true,-Dwith_libev=false,libev"
+PACKAGECONFIG[mysql] = "-Dwith_mysql=true,-Dwith_mysql=false,mariadb"
+PACKAGECONFIG[ldap] = "-Dwith_ldap=true,-Dwith_ldap=false,openldap"
+PACKAGECONFIG[attr] = "-Dwith_xattr=true,-Dwith_xattr=false,attr"
+PACKAGECONFIG[openssl] = "-Dwith_openssl=true,-Dwith_openssl=false,openssl"
+PACKAGECONFIG[krb5] = "-Dwith_krb5=true,-Dwith_krb5=false,krb5"
+PACKAGECONFIG[pcre] = "-Dwith_pcre=true,-Dwith_pcre=false,libpcre"
+PACKAGECONFIG[zlib] = "-Dwith_zlib=true,-Dwith_zlib=false,zlib"
+PACKAGECONFIG[bzip2] = "-Dwith_bzip=true,-Dwith_bzip=false,bzip2"
+PACKAGECONFIG[webdav-props] = "-Dwith_webdav_props=true,-Dwith_webdav_props=false,libxml2 sqlite3"
+PACKAGECONFIG[webdav-locks] = "-Dwith_webdav_locks=true,-Dwith_webdav_locks=false,util-linux"
+PACKAGECONFIG[gdbm] = "-Dwith_gdbm=true,-Dwith_gdbm=false,gdbm"
+PACKAGECONFIG[memcache] = "-Dwith_memcached=true,-Dwith_memcached=false,libmemcached"
+PACKAGECONFIG[lua] = "-Dwith_lua=true,-Dwith_lua=false,lua"
+PACKAGECONFIG[zstd] = "-Dwith_zstd=true,-Dwith_zstd=false,zstd"
+
+inherit meson pkgconfig update-rc.d gettext systemd
INITSCRIPT_NAME = "lighttpd"
INITSCRIPT_PARAMS = "defaults 70"
@@ -71,13 +69,15 @@ do_install:append() {
ln -sf ${localstatedir}/tmp ${D}/www/var
}
-FILES:${PN} += "${sysconfdir} /www"
+# bitbake.conf sets ${libdir}/${BPN}/* in FILES, which messes up the module split.
+# So we re-do the variable.
+FILES:${PN} = "${sysconfdir} /www ${sbindir}"
CONFFILES:${PN} = "${sysconfdir}/lighttpd/lighttpd.conf"
PACKAGES_DYNAMIC += "^lighttpd-module-.*"
python populate_packages:prepend () {
- lighttpd_libdir = d.expand('${libdir}')
+ lighttpd_libdir = d.expand('${prefix}/lib/lighttpd')
do_split_packages(d, lighttpd_libdir, r'^mod_(.*)\.so$', 'lighttpd-module-%s', 'Lighttpd module for %s', extra_depends='')
}
--
2.31.1
next prev parent reply other threads:[~2021-08-22 12:51 UTC|newest]
Thread overview: 57+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-22 12:50 [PATCH 01/55] tcf-agent: fetching over git:// no longer works Alexander Kanavin
2021-08-22 12:50 ` [PATCH 02/55] binutils: do not build-depend on target flex/bison/zlib Alexander Kanavin
2021-08-22 13:06 ` [OE-core] " Richard Purdie
2021-08-22 13:51 ` Alexander Kanavin
2021-08-22 12:50 ` Alexander Kanavin [this message]
2021-08-22 12:50 ` [PATCH 04/55] libxcrypt: upgrade 4.4.23 -> 4.4.25 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 05/55] systemd: upgrade 249.1 -> 249.3 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 06/55] python3-cython: upgrade 0.29.23 -> 0.29.24 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 07/55] python3-numpy: upgrade 1.21.0 -> 1.21.2 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 08/55] xeyes: upgrade 1.1.2 -> 1.2.0 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 09/55] btrfs-tools: update 5.13 -> 5.13.1 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 10/55] diffutils: update 3.7 -> 3.8 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 11/55] mc: update 4.8.26 - > 4.8.27 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 12/55] libsdl2: update 2.0.14 -> 2.0.16 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 13/55] vulkan-samples: update to latest revision Alexander Kanavin
2021-08-22 12:50 ` [PATCH 14/55] pulseaudio: update 14.2 -> 15.0 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 15/55] libjitterentropy: update 3.0.2 -> 3.1.0 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 16/55] usbutils: upgrade 013 -> 014 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 17/55] inetutils: upgrade 2.0 -> 2.1 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 18/55] mobile-broadband-provider-info: upgrade 20201225 -> 20210805 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 19/55] glib-networking: upgrade 2.68.1 -> 2.68.2 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 20/55] e2fsprogs: upgrade 1.46.2 -> 1.46.4 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 21/55] help2man: upgrade 1.48.3 -> 1.48.4 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 22/55] libedit: upgrade 20210522-3.1 -> 20210714-3.1 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 23/55] log4cplus: upgrade 2.0.6 -> 2.0.7 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 24/55] mtools: upgrade 4.0.34 -> 4.0.35 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 25/55] patchelf: upgrade 0.12 -> 0.13 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 26/55] pkgconf: upgrade 1.7.4 -> 1.8.0 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 27/55] python3-git: upgrade 3.1.18 -> 3.1.20 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 28/55] python3-pip: upgrade 21.2.1 -> 21.2.4 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 29/55] python3-pygments: upgrade 2.9.0 -> 2.10.0 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 30/55] python3-setuptools: upgrade 57.1.0 -> 57.4.0 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 31/55] squashfs-tools: upgrade 4.4 -> 4.5 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 32/55] acpica: upgrade 20210331 -> 20210730 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 33/55] libidn2: upgrade 2.3.1 -> 2.3.2 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 34/55] stress-ng: upgrade 0.12.12 -> 0.13.00 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 35/55] sudo: upgrade 1.9.7p1 -> 1.9.7p2 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 36/55] epiphany: upgrade 40.2 -> 40.3 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 37/55] libgudev: upgrade 236 -> 237 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 38/55] libjpeg-turbo: upgrade 2.1.0 -> 2.1.1 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 39/55] libepoxy: upgrade 1.5.8 -> 1.5.9 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 40/55] mesa: upgrade 21.1.5 -> 21.2.1 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 41/55] pango: upgrade 1.48.7 -> 1.48.9 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 42/55] libinput: upgrade 1.18.0 -> 1.18.1 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 43/55] libxfont2: upgrade 2.0.4 -> 2.0.5 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 44/55] libxft: upgrade 2.3.3 -> 2.3.4 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 45/55] xserver-xorg: upgrade 1.20.12 -> 1.20.13 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 46/55] linux-firmware: upgrade 20210511 -> 20210818 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 47/55] wireless-regdb: upgrade 2021.04.21 -> 2021.07.14 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 48/55] libwebp: upgrade 1.2.0 -> 1.2.1 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 49/55] webkitgtk: upgrade 2.32.2 -> 2.32.3 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 50/55] boost: upgrade 1.76.0 -> 1.77.0 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 51/55] diffoscope: upgrade 179 -> 181 Alexander Kanavin
2021-08-22 12:51 ` [PATCH 52/55] enchant2: upgrade 2.3.0 -> 2.3.1 Alexander Kanavin
2021-08-22 12:51 ` [PATCH 53/55] re2c: upgrade 2.1.1 -> 2.2 Alexander Kanavin
2021-08-22 12:51 ` [PATCH 54/55] rng-tools: upgrade 6.13 -> 6.14 Alexander Kanavin
2021-08-22 12:51 ` [PATCH 55/55] kea: backport a patch to fix build errors exposed by latest update batch Alexander Kanavin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210822125103.310416-3-alex.kanavin@gmail.com \
--to=alex.kanavin@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox