mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
fwupd: fix build for non-efi platforms
[ci skip]
This commit is contained in:
parent
523cbc5f2d
commit
1f5de21a33
1 changed files with 24 additions and 15 deletions
|
@ -12,11 +12,11 @@ configure_args="-Dconsolekit=false -Dgtkdoc=false -Dintrospection=true
|
||||||
-Defi-ldsdir=${XBPS_CROSS_BASE}/usr/lib -Defi-ld=${XBPS_CROSS_BASE}/usr/bin/ld
|
-Defi-ldsdir=${XBPS_CROSS_BASE}/usr/lib -Defi-ld=${XBPS_CROSS_BASE}/usr/bin/ld
|
||||||
-Defi-libdir=${XBPS_CROSS_BASE}/usr/lib -Delogind=true"
|
-Defi-libdir=${XBPS_CROSS_BASE}/usr/lib -Delogind=true"
|
||||||
hostmakedepends="dejavu-fonts-ttf gnutls-tools help2man pkg-config gcab
|
hostmakedepends="dejavu-fonts-ttf gnutls-tools help2man pkg-config gcab
|
||||||
vala glib-devel polkit efivar gnu-efi-libs"
|
vala glib-devel polkit"
|
||||||
makedepends="libxmlb-devel cairo-devel colord-devel libarchive-devel
|
makedepends="libxmlb-devel cairo-devel colord-devel libarchive-devel
|
||||||
gnutls-devel gpgme-devel json-glib-devel libgusb-devel polkit-devel
|
gnutls-devel gpgme-devel json-glib-devel libgusb-devel polkit-devel
|
||||||
sqlite-devel libsoup-devel gcab-devel pango-devel python3-gobject
|
sqlite-devel libsoup-devel gcab-devel pango-devel python3-gobject
|
||||||
python3-Pillow elogind-devel libefivar-devel tpm2-tss-devel gnu-efi-libs"
|
python3-Pillow elogind-devel tpm2-tss-devel"
|
||||||
short_desc="Daemon to allow session software to update firmware"
|
short_desc="Daemon to allow session software to update firmware"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="LGPL-2.1-or-later"
|
license="LGPL-2.1-or-later"
|
||||||
|
@ -24,6 +24,16 @@ homepage="https://github.com/hughsie/fwupd"
|
||||||
distfiles="https://github.com/hughsie/fwupd/archive/${version}.tar.gz"
|
distfiles="https://github.com/hughsie/fwupd/archive/${version}.tar.gz"
|
||||||
checksum=39b9c87bcff50fa77a4e0db02195a84d3c6fc65a5f36c529e94928405f390108
|
checksum=39b9c87bcff50fa77a4e0db02195a84d3c6fc65a5f36c529e94928405f390108
|
||||||
|
|
||||||
|
# no efi on non-efi platforms
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
x86_64*|i686*|aarch64*|arm*) _have_efi=yes;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -n "$_have_efi" ]; then
|
||||||
|
hostmakedepends+=" efivar gnu-efi-libs"
|
||||||
|
makedepends+=" libefivar-devel gnu-efi-libs"
|
||||||
|
fi
|
||||||
|
|
||||||
conf_files="
|
conf_files="
|
||||||
/etc/fwupd/daemon.conf
|
/etc/fwupd/daemon.conf
|
||||||
/etc/fwupd/remotes.d/*.conf"
|
/etc/fwupd/remotes.d/*.conf"
|
||||||
|
@ -35,12 +45,9 @@ if [ "$CROSS_BUILD" ]; then
|
||||||
aarch64*) broken="https://travis-ci.org/void-linux/void-packages/jobs/618827513";;
|
aarch64*) broken="https://travis-ci.org/void-linux/void-packages/jobs/618827513";;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
configure_args+=" -Defi-cc=/usr/bin/${XBPS_CROSS_TRIPLET}-gcc"
|
if [ -n "$_have_efi" ]; then
|
||||||
|
configure_args+=" -Defi-cc=/usr/bin/${XBPS_CROSS_TRIPLET}-gcc"
|
||||||
pre_configure() {
|
fi
|
||||||
# Replace the values from our patch into the system itself
|
|
||||||
sed -i -e "s|@XBPS_CROSS_BASE@|${XBPS_CROSS_BASE}|g" meson.build
|
|
||||||
}
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
@ -50,16 +57,18 @@ case "$XBPS_TARGET_MACHINE" in
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
configure_args+=" -Dplugin_dell=false"
|
configure_args+=" -Dplugin_dell=false"
|
||||||
|
if [ -z "$_have_efi" ]; then
|
||||||
|
configure_args+=" -Dplugin_uefi=false"
|
||||||
|
configure_args+=" -Dplugin_redfish=false"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
ppc64*)
|
|
||||||
configure_args+=" -Dplugin_uefi=false"
|
|
||||||
configure_args+=" -Dplugin_redfish=false"
|
|
||||||
configure_args+=" -Dplugin_nvme=false"
|
|
||||||
;;
|
|
||||||
*) makedepends+=" gnu-efi-libs libefivar-devel" ;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
pre_configure() {
|
||||||
|
# Replace the values from our patch into the system itself
|
||||||
|
sed -i -e "s|@XBPS_CROSS_BASE@|${XBPS_CROSS_BASE}|g" meson.build
|
||||||
|
}
|
||||||
|
|
||||||
fwupd-devel_package() {
|
fwupd-devel_package() {
|
||||||
depends="${sourcepkg}>=${version}_${revision} libglib-devel"
|
depends="${sourcepkg}>=${version}_${revision} libglib-devel"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
|
|
Loading…
Add table
Reference in a new issue