Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
57 changes: 57 additions & 0 deletions base/comps/component-mingw-disablement.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Components whose upstream specs have a mingw bcond that should be disabled.
# Azure Linux does not ship mingw cross-compilation toolchains.
#
# Components listed here inherit build.without = ["mingw"] via the group's
# default-component-config. If a component also has its own build.without
# in a dedicated comp.toml, the lists are merged (appended).
[component-groups.mingw-disabled]
description = "Disable mingw cross-compilation bcond for components that support it"
components = [
"cereal",
"check",
"dtc",
"eigen3",
"enchant2",
"flatbuffers",
"fltk",
"freexl",
"gcab",
"geos",
"gnutls",
"gtk-vnc",
"inih",
"json-c",
"leptonica",
"libgeotiff",
"libgsf",
"libkml",
"liblerc",
"libosinfo",
"librttopo",
"libsodium",
"libsoup3",
"libspatialite",
"libusb1",
"libvirt",
"libvirt-glib",
"libwebp",
"libxmlb",
"libyaml",
"nghttp2",
"openjpeg",
"opus",
"osinfo-db",
"osinfo-db-tools",
"p11-kit",
"proj",
"python-pillow",
"shapelib",
"taglib",
"tesseract",
"uriparser",
"wavpack",
"xerces-c",
]

[component-groups.mingw-disabled.default-component-config.build]
without = ["mingw"]
97 changes: 1 addition & 96 deletions base/comps/components.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
includes = ["**/*.comp.toml", "component-check-disablement.toml"]
includes = ["**/*.comp.toml", "component-check-disablement.toml", "component-mingw-disablement.toml"]

#
# Components imported from Fedora with no per-component modifications.
Expand All @@ -14,7 +14,6 @@ includes = ["**/*.comp.toml", "component-check-disablement.toml"]
[components.CppMicroServices]
[components.Cython]
[components.DevIL]
[components.DirectX-Headers]
[components.FP16]
[components.GitPython]
[components.GraphicsMagick]
Expand Down Expand Up @@ -729,7 +728,6 @@ includes = ["**/*.comp.toml", "component-check-disablement.toml"]
[components.ghc-zlib]
[components.ghostscript]
[components.gi-docgen]
[components.giflib]
[components.git]
[components.git-lfs]
[components.gjs]
Expand Down Expand Up @@ -1187,7 +1185,6 @@ includes = ["**/*.comp.toml", "component-check-disablement.toml"]
[components.hexedit]
[components.hfsplus-tools]
[components.hicolor-icon-theme]
[components.hidapi]
[components.highlight]
[components.highway]
[components.hipblas]
Expand Down Expand Up @@ -1503,7 +1500,6 @@ includes = ["**/*.comp.toml", "component-check-disablement.toml"]
[components.junit5]
[components.jupyterlab]
[components.jurand]
[components.jxrlib]
[components.jzlib]
[components.kaccounts-integration]
[components.kactivitymanagerd]
Expand Down Expand Up @@ -2162,95 +2158,6 @@ includes = ["**/*.comp.toml", "component-check-disablement.toml"]
[components.metis]
[components.micropipenv]
[components.mimalloc]
[components.mingw-Cython]
[components.mingw-adwaita-icon-theme]
[components.mingw-atk]
[components.mingw-binutils]
[components.mingw-boost]
[components.mingw-brotli]
[components.mingw-bzip2]
[components.mingw-c-ares]
[components.mingw-cairo]
[components.mingw-cfitsio]
[components.mingw-crt]
[components.mingw-curl]
[components.mingw-dbus]
[components.mingw-dlfcn]
[components.mingw-expat]
[components.mingw-fftw]
[components.mingw-filesystem]
[components.mingw-fontconfig]
[components.mingw-freetype]
[components.mingw-fribidi]
[components.mingw-gcc]
[components.mingw-gdk-pixbuf]
[components.mingw-gettext]
[components.mingw-glib-networking]
[components.mingw-glib2]
[components.mingw-gmp]
[components.mingw-gsettings-desktop-schemas]
[components.mingw-gtk3]
[components.mingw-harfbuzz]
[components.mingw-headers]
[components.mingw-hunspell]
[components.mingw-icu]
[components.mingw-imath]
[components.mingw-json-glib]
[components.mingw-lcms2]
[components.mingw-libarchive]
[components.mingw-libcharset]
[components.mingw-libepoxy]
[components.mingw-libffi]
[components.mingw-libgcrypt]
[components.mingw-libgpg-error]
[components.mingw-libgta]
[components.mingw-libidn2]
[components.mingw-libimagequant]
[components.mingw-libjpeg-turbo]
[components.mingw-libpng]
[components.mingw-libpsl]
[components.mingw-libsoup]
[components.mingw-libssh2]
[components.mingw-libtasn1]
[components.mingw-libtiff]
[components.mingw-libunistring]
[components.mingw-libxml2]
[components.mingw-libxslt]
[components.mingw-minizip]
[components.mingw-mpfr]
[components.mingw-nettle]
[components.mingw-numpy]
[components.mingw-openssl]
[components.mingw-pango]
[components.mingw-pcre2]
[components.mingw-pdcurses]
[components.mingw-pixman]
[components.mingw-poppler]
[components.mingw-portablexdr]
[components.mingw-postgresql]
[components.mingw-python-build]
[components.mingw-python-flit-core]
[components.mingw-python-installer]
[components.mingw-python-packaging]
[components.mingw-python-pyproject-hooks]
[components.mingw-python-setuptools]
[components.mingw-python-wheel]
[components.mingw-python3]
[components.mingw-qt5-qtbase]
[components.mingw-qt6-qtbase]
[components.mingw-readline]
[components.mingw-sqlite]
[components.mingw-srvany]
[components.mingw-tcl]
[components.mingw-termcap]
[components.mingw-tk]
[components.mingw-vulkan-headers]
[components.mingw-vulkan-loader]
[components.mingw-win-iconv]
[components.mingw-winpthreads]
[components.mingw-xz]
[components.mingw-zlib]
[components.mingw-zstd]
[components.minicom]
[components.miniz]
[components.minizip-ng]
Expand Down Expand Up @@ -2366,7 +2273,6 @@ includes = ["**/*.comp.toml", "component-check-disablement.toml"]
[components.numatop]
[components.numpy]
[components.nunit]
[components.nuspell]
[components.nv-codec-headers]
[components.nvme-cli]
[components.nvmetcli]
Expand Down Expand Up @@ -3877,7 +3783,6 @@ includes = ["**/*.comp.toml", "component-check-disablement.toml"]
[components.python-gemfileparser2]
[components.python-genshi]
[components.python-geodatasets]
[components.python-geographiclib]
[components.python-geoip2]
[components.python-geopandas]
[components.python-geopy]
Expand Down
90 changes: 90 additions & 0 deletions base/comps/giflib/giflib.comp.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
[components.giflib]

# Azure Linux does not ship mingw cross-compilation toolchains.
# Remove all mingw subpackages and their build dependencies.

[[components.giflib.overlays]]
description = "Remove mingw32-giflib subpackage — Azure Linux does not ship mingw toolchains"
type = "spec-remove-subpackage"
package = "mingw32-%{name}"

[[components.giflib.overlays]]
description = "Remove mingw32-giflib-tools subpackage"
type = "spec-remove-subpackage"
package = "mingw32-%{name}-tools"

[[components.giflib.overlays]]
description = "Remove mingw64-giflib subpackage"
type = "spec-remove-subpackage"
package = "mingw64-%{name}"

[[components.giflib.overlays]]
description = "Remove mingw64-giflib-tools subpackage"
type = "spec-remove-subpackage"
package = "mingw64-%{name}-tools"

[[components.giflib.overlays]]
description = "Remove mingw32-filesystem BuildRequires"
type = "spec-remove-tag"
tag = "BuildRequires"
value = "mingw32-filesystem"

[[components.giflib.overlays]]
description = "Remove mingw32-gcc BuildRequires"
type = "spec-remove-tag"
tag = "BuildRequires"
value = "mingw32-gcc"

[[components.giflib.overlays]]
description = "Remove mingw64-filesystem BuildRequires"
type = "spec-remove-tag"
tag = "BuildRequires"
value = "mingw64-filesystem"

[[components.giflib.overlays]]
description = "Remove mingw64-gcc BuildRequires"
type = "spec-remove-tag"
tag = "BuildRequires"
value = "mingw64-gcc"

[[components.giflib.overlays]]
description = "Remove mingw cmake build step"
type = "spec-search-replace"
section = "%build"
regex = '^\%mingw_cmake$'
replacement = ''

[[components.giflib.overlays]]
description = "Remove mingw make build step"
type = "spec-search-replace"
section = "%build"
regex = '^\%mingw_make_build$'
replacement = ''

[[components.giflib.overlays]]
description = "Remove mingw install steps"
type = "spec-search-replace"
section = "%install"
regex = '^\%mingw_make_install$'
replacement = ''

[[components.giflib.overlays]]
description = "Remove mingw mandir cleanup (mingw32)"
type = "spec-search-replace"
section = "%install"
regex = '^rm -rf %\{buildroot\}%\{mingw32_mandir\}$'
replacement = ''

[[components.giflib.overlays]]
description = "Remove mingw mandir cleanup (mingw64)"
type = "spec-search-replace"
section = "%install"
regex = '^rm -rf %\{buildroot\}%\{mingw64_mandir\}$'
replacement = ''

[[components.giflib.overlays]]
description = "Remove mingw debug install post step"
type = "spec-search-replace"
section = "%install"
regex = '^\%mingw_debug_install_post$'
replacement = ''
78 changes: 78 additions & 0 deletions base/comps/hidapi/hidapi.comp.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
[components.hidapi]

# Azure Linux does not ship mingw cross-compilation toolchains.
# Remove all mingw subpackages and their build dependencies.

[[components.hidapi.overlays]]
description = "Remove mingw32-hidapi subpackage — Azure Linux does not ship mingw toolchains"
type = "spec-remove-subpackage"
package = "mingw32-hidapi"

[[components.hidapi.overlays]]
description = "Remove mingw64-hidapi subpackage"
type = "spec-remove-subpackage"
package = "mingw64-hidapi"

[[components.hidapi.overlays]]
description = "Remove mingw32-filesystem BuildRequires"
type = "spec-remove-tag"
tag = "BuildRequires"
value = "mingw32-filesystem >= 95"

[[components.hidapi.overlays]]
description = "Remove mingw32-gcc BuildRequires"
type = "spec-remove-tag"
tag = "BuildRequires"
value = "mingw32-gcc"

[[components.hidapi.overlays]]
description = "Remove mingw32-binutils BuildRequires"
type = "spec-remove-tag"
tag = "BuildRequires"
value = "mingw32-binutils"

[[components.hidapi.overlays]]
description = "Remove mingw64-filesystem BuildRequires"
type = "spec-remove-tag"
tag = "BuildRequires"
value = "mingw64-filesystem >= 95"

[[components.hidapi.overlays]]
description = "Remove mingw64-gcc BuildRequires"
type = "spec-remove-tag"
tag = "BuildRequires"
value = "mingw64-gcc"

[[components.hidapi.overlays]]
description = "Remove mingw64-binutils BuildRequires"
type = "spec-remove-tag"
tag = "BuildRequires"
value = "mingw64-binutils"

[[components.hidapi.overlays]]
description = "Remove mingw cmake build step"
type = "spec-search-replace"
section = "%build"
regex = '^\%mingw_cmake$'
replacement = ''

[[components.hidapi.overlays]]
description = "Remove mingw make build step"
type = "spec-search-replace"
section = "%build"
regex = '^\%mingw_make_build$'
replacement = ''

[[components.hidapi.overlays]]
description = "Remove mingw install step"
type = "spec-search-replace"
section = "%install"
regex = '^\%mingw_make_install$'
replacement = ''

[[components.hidapi.overlays]]
description = "Remove mingw debug install post step"
type = "spec-search-replace"
section = "%install"
regex = '^\%mingw_debug_install_post$'
replacement = ''
Loading
Loading