Skip to content

Commit

Permalink
meson.eclass */*: move -Db_ndebug into eclass
Browse files Browse the repository at this point in the history
Of note is that this introduces a change in the build process for some packages
eg glib that didn't previously set -Db_ndebug when use debug

Signed-off-by: Marco Sirabella <marco@sirabella.org>
  • Loading branch information
mjsir911 committed Mar 3, 2024
1 parent 4b7e9a9 commit 78312c6
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 10 deletions.
2 changes: 0 additions & 2 deletions dev-util/intel_clc/intel_clc-24.0.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ src_configure() {
-Dglx=disabled
-Dlibunwind=disabled
-Dzstd=disabled

-Db_ndebug=$(usex debug false true)
)
meson_src_configure
}
Expand Down
2 changes: 0 additions & 2 deletions dev-util/intel_clc/intel_clc-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ src_configure() {
-Dglx=disabled
-Dlibunwind=disabled
-Dzstd=disabled

-Db_ndebug=$(usex debug false true)
)
meson_src_configure
}
Expand Down
3 changes: 2 additions & 1 deletion eclass/meson.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,8 @@ setup_meson_src_configure() {


if in_iuse debug; then
use debug && EMESON_BUILDTYPE=debug
MESONARGS+=( -Db_ndebug=$(usex debug false true) )
use debug && export EMESON_BUILDTYPE=debug
fi
if [[ -n ${EMESON_BUILDTYPE} ]]; then
MESONARGS+=( -Dbuildtype="${EMESON_BUILDTYPE}" )
Expand Down
1 change: 0 additions & 1 deletion media-libs/mesa-amber/mesa-amber-21.3.9-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ multilib_src_configure() {
-Ddri-drivers=$(driver_list "${DRI_DRIVERS[*]}")
-Dgallium-drivers=''
-Dvulkan-drivers=''
-Db_ndebug=$(usex debug false true)
)
meson_src_configure
}
Expand Down
1 change: 0 additions & 1 deletion media-libs/mesa/mesa-24.0.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,6 @@ multilib_src_configure() {
-Dvideo-codecs=$(usex proprietary-codecs "all" "all_free")
-Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}")
-Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}")
-Db_ndebug=$(usex debug false true)
)
meson_src_configure
}
Expand Down
1 change: 0 additions & 1 deletion media-libs/mesa/mesa-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,6 @@ multilib_src_configure() {
-Dvideo-codecs=$(usex proprietary-codecs "all" "all_free")
-Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}")
-Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}")
-Db_ndebug=$(usex debug false true)
)
meson_src_configure
}
Expand Down
1 change: 0 additions & 1 deletion x11-base/xorg-server/xorg-server-21.1.11.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ src_configure() {
local emesonargs=(
--localstatedir "${EPREFIX}/var"
--sysconfdir "${EPREFIX}/etc/X11"
-Db_ndebug=$(usex debug false true)
$(meson_use !minimal dri1)
$(meson_use !minimal dri2)
$(meson_use !minimal dri3)
Expand Down
1 change: 0 additions & 1 deletion x11-base/xorg-server/xorg-server-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ src_configure() {
local emesonargs=(
--localstatedir "${EPREFIX}/var"
--sysconfdir "${EPREFIX}/etc/X11"
-Db_ndebug=$(usex debug false true)
$(meson_use !minimal dri1)
$(meson_use !minimal dri2)
$(meson_use !minimal dri3)
Expand Down

0 comments on commit 78312c6

Please sign in to comment.