FreeBSD Bugzilla – Attachment 255699 Details for
Bug 273605
audio/pulseaudio: Daemon startup failed in system-wide mode
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Globally override --localstatedir
bug273605.diff (text/plain), 8.23 KB, created by
Jan Beich
on 2024-12-08 09:00:03 UTC
(
hide
)
Description:
Globally override --localstatedir
Filename:
MIME Type:
Creator:
Jan Beich
Created:
2024-12-08 09:00:03 UTC
Size:
8.23 KB
patch
obsolete
>From 882e85d489ed0b5ee815f2b784a0b9db7eb20ba7 Mon Sep 17 00:00:00 2001 >From: Jan Beich <jbeich@FreeBSD.org> >Date: Sun, 8 Dec 2024 09:38:09 +0100 >Subject: [PATCH] Mk/Uses/meson.mk: pass --localstatedir like GNU_CONFIGURE > after 9f4546a03cc0 > >Meson defaults to --localstatedir=/var/local if --prefix=/usr/local >but this is not valid for ports/ or FreeBSD hier(7). > >See also 68edbeeaae96 and >https://github.com/mesonbuild/meson/commit/24549dbed5fe > >PR: 273605 >Analyzed by: Tatsuki Makino >Exp-run by: antoine >--- > Mk/Uses/meson.mk | 1 + > devel/glib20/Makefile | 1 - > devel/libvirt/Makefile | 7 ++----- > emulators/qemu-cheri/Makefile | 3 +-- > emulators/qemu-devel/Makefile | 2 +- > emulators/qemu-user-static-devel/Makefile | 1 - > emulators/qemu/Makefile | 1 - > graphics/colord/Makefile | 3 +-- > net/netatalk3/Makefile | 1 - > ports-mgmt/packagekit/Makefile | 2 +- > sysutils/accountsservice/Makefile | 1 - > sysutils/polkit/Makefile | 1 - > sysutils/upower/Makefile | 1 - > x11-fonts/fontconfig/Makefile | 1 - > 14 files changed, 7 insertions(+), 19 deletions(-) > >diff --git a/Mk/Uses/meson.mk b/Mk/Uses/meson.mk >index 571e8a990be0..eded01a885bf 100644 >--- a/Mk/Uses/meson.mk >+++ b/Mk/Uses/meson.mk >@@ -33,6 +33,7 @@ BUILD_DEPENDS+= meson:devel/meson > USE_LOCALE?= en_US.UTF-8 > > CONFIGURE_ARGS+= --prefix ${PREFIX} \ >+ --localstatedir /var \ > --infodir ${INFO_PATH} > > # Enable all optional features to make builds deterministic. Consumers can >diff --git a/devel/glib20/Makefile b/devel/glib20/Makefile >index bfa1544a3e2f..cb86d34901ac 100644 >--- a/devel/glib20/Makefile >+++ b/devel/glib20/Makefile >@@ -32,7 +32,6 @@ MESON_ARGS= -Db_lundef=false \ > -Dinstalled_tests=false \ > -Dintrospection=disabled \ > -Dlibmount=disabled \ >- -Dlocalstatedir=/var \ > -Druntime_dir=/var/run \ > -Dselinux=disabled \ > -Dsysprof=disabled \ >diff --git a/devel/libvirt/Makefile b/devel/libvirt/Makefile >index b73b94317ebb..96500977e6fe 100644 >--- a/devel/libvirt/Makefile >+++ b/devel/libvirt/Makefile >@@ -71,8 +71,6 @@ LIBSSH2_LIB_DEPENDS= libssh2.so:security/libssh2 > > ZFS_MESON_ENABLED= storage_zfs > >-VARDIR= /var >- > MESON_ARGS+= \ > -Dapparmor=disabled \ > -Dapparmor_profiles=disabled \ >@@ -122,8 +120,7 @@ MESON_ARGS+= \ > -Dwireshark_dissector=disabled \ > -Dinit_script=none \ > -Dbash_completion=disabled \ >- -Duserfaultfd_sysctl=disabled \ >- -Dlocalstatedir=${VARDIR} >+ -Duserfaultfd_sysctl=disabled > > # random_data fix can be removed when 8.x is eol > CONFIGURE_ENV= ac_cv_type_struct_random_data="" >@@ -203,7 +200,7 @@ post-install: > lib/libvirt/network \ > lib/libvirt/qemu/channel/target \ > cache/libvirt/qemu >- @${MKDIR} "${STAGEDIR}/${VARDIR}/${dir}" >+ @${MKDIR} "${STAGEDIR}/var/${dir}" > .endfor > > .for file in ${CONF_FILES} >diff --git a/emulators/qemu-cheri/Makefile b/emulators/qemu-cheri/Makefile >index fab86bfed1d9..e4dd720abf44 100644 >--- a/emulators/qemu-cheri/Makefile >+++ b/emulators/qemu-cheri/Makefile >@@ -56,8 +56,7 @@ CONFIGURE_ARGS+= \ > --disable-xen \ > --meson=${LOCALBASE}/bin/meson \ > --smbd=${LOCALBASE}/sbin/smbd \ >- --extra-cflags="-g ${EXTRA_CFLAGS}" \ >- --localstatedir=/var >+ --extra-cflags="-g ${EXTRA_CFLAGS}" > EXTRA_CFLAGS= -DCHERI_UNALIGNED > > PLIST_FILES= bin/qemu-system-morello \ >diff --git a/emulators/qemu-devel/Makefile b/emulators/qemu-devel/Makefile >index 9da34f71b29e..8ee480006069 100644 >--- a/emulators/qemu-devel/Makefile >+++ b/emulators/qemu-devel/Makefile >@@ -38,7 +38,7 @@ USE_XORG= pixman > SHEBANG_FILES= scripts/xml-preprocess.py > > HAS_CONFIGURE= yes >-CONFIGURE_ARGS= --localstatedir=/var --mandir=share/man --extra-ldflags=-L\"/usr/lib\" \ >+CONFIGURE_ARGS= --mandir=share/man --extra-ldflags=-L\"/usr/lib\" \ > --extra-ldflags=-L\"${LOCALBASE}/lib\" --enable-debug \ > --prefix=${PREFIX} --cc=${CC} --enable-netmap --disable-kvm \ > --disable-linux-user --disable-linux-aio --disable-xen \ >diff --git a/emulators/qemu-user-static-devel/Makefile b/emulators/qemu-user-static-devel/Makefile >index cc9cb0c72d8e..4b1bfa001857 100644 >--- a/emulators/qemu-user-static-devel/Makefile >+++ b/emulators/qemu-user-static-devel/Makefile >@@ -37,7 +37,6 @@ SUB_LIST= NAME=qemu_user_static > > MAKE_ENV= BSD_MAKE="${MAKE}" V=1 > CONFIGURE_ARGS= --prefix=${PREFIX} --cc=${CC} \ >- --localstatedir=/var \ > --extra-ldflags=-L${LOCALBASE}/lib \ > --extra-cflags=-I${LOCALBASE}/include \ > --enable-debug \ >diff --git a/emulators/qemu/Makefile b/emulators/qemu/Makefile >index 6310420972a2..9af58a510485 100644 >--- a/emulators/qemu/Makefile >+++ b/emulators/qemu/Makefile >@@ -69,7 +69,6 @@ CONFIGURE_ARGS+= --cc=${CC} \ > --extra-cflags=-I${WRKSRC}\ -I${LOCALBASE}/include\ -DPREFIX=\\\"\"${PREFIX}\\\"\" \ > --extra-ldflags=-L${LOCALBASE}/lib \ > --extra-ldflags=-L/usr/lib \ >- --localstatedir=/var \ > --mandir=${PREFIX}/share/man \ > --prefix=${PREFIX} \ > --python=${PYTHON_CMD} >diff --git a/graphics/colord/Makefile b/graphics/colord/Makefile >index c3a369abcd8e..34a8ec0f0596 100644 >--- a/graphics/colord/Makefile >+++ b/graphics/colord/Makefile >@@ -28,8 +28,7 @@ MAKE_JOBS_UNSAFE= yes > MAKE_ENV= PYTHONDONTWRITEBYTECODE=1 > MESON_ARGS= -Dsystemd=false -Dudev_rules=false \ > -Ddaemon_user=colord -Dlibcolordcompat=true \ >- -Dpnp_ids=${LOCALBASE}/share/hwdata/pnp.ids \ >- --localstatedir=/var \ >+ -Dpnp_ids=${LOCALBASE}/share/hwdata/pnp.ids > > INSTALL_TARGET= install-strip > >diff --git a/net/netatalk3/Makefile b/net/netatalk3/Makefile >index 847aedfefe42..495828d87590 100644 >--- a/net/netatalk3/Makefile >+++ b/net/netatalk3/Makefile >@@ -30,7 +30,6 @@ MESON_ARGS= -Dwith-libgcrypt-path=${LOCALBASE} \ > -Dwith-shadow=false \ > -Dwith-pgp-uam=false \ > -Ddefault_library=both \ >- --localstatedir=/var \ > --infodir=${PREFIX}/share/info > > OPTIONS_DEFINE=PAM KERBEROS5 LDAP SENDFILE KERBEROS DBUS MYSQL ACL LIBWRAP SPOTLIGHT >diff --git a/ports-mgmt/packagekit/Makefile b/ports-mgmt/packagekit/Makefile >index 405978bfc380..bf0290e2eb9f 100644 >--- a/ports-mgmt/packagekit/Makefile >+++ b/ports-mgmt/packagekit/Makefile >@@ -27,7 +27,7 @@ USE_LDCONFIG= yes > CPE_VENDOR= packagekit_project > SHEBANG_FILES= contrib/cron/packagekit-background.cron > >-MESON_ARGS= -Dlocalstatedir=/var -Dsysconfdir=${PREFIX}/etc \ >+MESON_ARGS= -Dsysconfdir=${PREFIX}/etc \ > -Dpackaging_backend=freebsd -Dsystemd=false -Doffline_update=false \ > -Dbash_completion=false -Dbash_command_not_found=false \ > -Dgstreamer_plugin=false >diff --git a/sysutils/accountsservice/Makefile b/sysutils/accountsservice/Makefile >index 95c78eed1ac9..d7b57124c667 100644 >--- a/sysutils/accountsservice/Makefile >+++ b/sysutils/accountsservice/Makefile >@@ -22,7 +22,6 @@ USE_LDCONFIG= yes > MESON_ARGS= -Dconsolekit=true \ > -Dgdmconffile=${LOCALBASE}/etc/gdm/custom.conf \ > -Dlightdmconffile=${LOCALBASE}/etc/lightdm/lightdm.conf \ >- -Dlocalstatedir=/var \ > -Dsystemdsystemunitdir=no \ > -Dvapi=false \ > -Dtests=false >diff --git a/sysutils/polkit/Makefile b/sysutils/polkit/Makefile >index 432a074478a4..2a5b51483b3e 100644 >--- a/sysutils/polkit/Makefile >+++ b/sysutils/polkit/Makefile >@@ -32,7 +32,6 @@ MESON_ARGS= -Dpam_include=system \ > -Dsession_tracking=ConsoleKit \ > -Dtests=false \ > -Dintrospection=true \ >- -Dlocalstatedir=/var \ > -Dgtk_doc=false > > OPTIONS_DEFINE= MANPAGES >diff --git a/sysutils/upower/Makefile b/sysutils/upower/Makefile >index 6c05643139fe..e32dbca3355a 100644 >--- a/sysutils/upower/Makefile >+++ b/sysutils/upower/Makefile >@@ -20,7 +20,6 @@ USE_GNOME= glib20 introspection:build > USE_LDCONFIG= yes > MESON_ARGS= -Dgtk-doc=false \ > -Dos_backend=freebsd \ >- -Dlocalstatedir=/var \ > -Dudevrulesdir=no \ > -Dudevhwdbdir=no \ > -Dsystemdsystemunitdir=no \ >diff --git a/x11-fonts/fontconfig/Makefile b/x11-fonts/fontconfig/Makefile >index 1418e8e48fe5..6d2d51eaa975 100644 >--- a/x11-fonts/fontconfig/Makefile >+++ b/x11-fonts/fontconfig/Makefile >@@ -35,7 +35,6 @@ SUB_LIST= LOCALBASE=${LOCALBASE} > MESON_ARGS= -Ddefault_library=both -Ddoc=disabled -Dcache-build=disabled \ > -Ddefault-fonts-dirs=${PREFIX}/share/fonts \ > -Dadditional-fonts-dirs=${LOCALBASE}/lib/X11/fonts \ >- -Dlocalstatedir=/var \ > -Dcache-dir=/var/db/fontconfig \ > -Dtemplate-dir=${LOCALBASE}/etc/fonts/conf.avail \ > -Dxml-dir=${LOCALBASE}/etc/fonts
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 273605
:
255698
|
255699
|
255700