|
|
67e736 |
Index: macros.in
|
|
|
67e736 |
===================================================================
|
|
|
67e736 |
--- macros.in.orig
|
|
|
67e736 |
+++ macros.in
|
|
|
67e736 |
@@ -148,6 +148,7 @@
|
|
Bernhard M. Wiedemann |
1250f9 |
%{?_unique_debug_names:--unique-debug-suffix "-%{VERSION}-%{RELEASE}.%{_arch}"} \\\
|
|
Bernhard M. Wiedemann |
1250f9 |
%{?_unique_debug_srcs:--unique-debug-src-base "%{name}-%{VERSION}-%{RELEASE}.%{_arch}"} \\\
|
|
|
ef05fe |
%{?_find_debuginfo_dwz_opts} \\\
|
|
|
ef05fe |
+ %{lua:if posix.access(rpm.expand("%_sourcedir/baselibs.conf"), "r") then print("--dwz-single-file-mode") end} \\\
|
|
Bernhard M. Wiedemann |
1250f9 |
%{?_find_debuginfo_opts} \\\
|
|
Bernhard M. Wiedemann |
1250f9 |
%{?_debugsource_packages:-S debugsourcefiles.list} \\\
|
|
Bernhard M. Wiedemann |
1250f9 |
"%{_builddir}/%{?buildsubdir}"\
|
|
|
67e736 |
@@ -187,7 +188,8 @@ package or when debugging this package.\
|
|
Bernhard M. Wiedemann |
1250f9 |
%endif\
|
|
Bernhard M. Wiedemann |
1250f9 |
%{nil}
|
|
Bernhard M. Wiedemann |
1250f9 |
|
|
Bernhard M. Wiedemann |
1250f9 |
-%_defaultdocdir %{_datadir}/doc
|
|
Bernhard M. Wiedemann |
1250f9 |
+%_defaultdocdir %{_datadir}/doc/packages
|
|
Bernhard M. Wiedemann |
1250f9 |
+%_docdir_fmt %%{NAME}
|
|
Bernhard M. Wiedemann |
1250f9 |
%_defaultlicensedir %{_datadir}/licenses
|
|
Bernhard M. Wiedemann |
1250f9 |
|
|
Bernhard M. Wiedemann |
1250f9 |
# Following macros for filtering auto deps must not be used in spec files.
|
|
|
67e736 |
@@ -247,7 +249,8 @@ package or when debugging this package.\
|
|
Bernhard M. Wiedemann |
1250f9 |
%_tmppath %{_var}/tmp
|
|
Bernhard M. Wiedemann |
1250f9 |
|
|
Bernhard M. Wiedemann |
1250f9 |
# Path to top of build area.
|
|
Bernhard M. Wiedemann |
1250f9 |
-%_topdir %{getenv:HOME}/rpmbuild
|
|
Bernhard M. Wiedemann |
1250f9 |
+%_topdir %{expand:%%global _topdir %{lua:if posix.access(rpm.expand("%{_usrsrc}/packages"), "w") then print "%{_usrsrc}/packages" else print "%{getenv:HOME}/rpmbuild" end} \
|
|
Bernhard M. Wiedemann |
1250f9 |
+}%_topdir
|
|
Bernhard M. Wiedemann |
1250f9 |
|
|
|
dfdd5e |
#==============================================================================
|
|
|
dfdd5e |
# ---- Optional rpmrc macros.
|
|
|
67e736 |
@@ -349,7 +352,7 @@ package or when debugging this package.\
|
|
Bernhard M. Wiedemann |
eb41fd |
# "w.ufdio" uncompressed
|
|
Bernhard M. Wiedemann |
1250f9 |
#
|
|
Bernhard M. Wiedemann |
1250f9 |
#%_source_payload w9.gzdio
|
|
Bernhard M. Wiedemann |
1250f9 |
-#%_binary_payload w9.gzdio
|
|
Bernhard M. Wiedemann |
ea4be8 |
+%_binary_payload w19.zstdio
|
|
Bernhard M. Wiedemann |
1250f9 |
|
|
Bernhard M. Wiedemann |
1250f9 |
# Algorithm to use for generating file checksum digests on build.
|
|
Bernhard M. Wiedemann |
1250f9 |
# If not specified or 0, MD5 is used.
|
|
|
67e736 |
@@ -459,6 +462,19 @@ package or when debugging this package.\
|
|
Bernhard M. Wiedemann |
1250f9 |
#
|
|
Bernhard M. Wiedemann |
1250f9 |
#%_include_minidebuginfo 1
|
|
Bernhard M. Wiedemann |
1250f9 |
|
|
Bernhard M. Wiedemann |
1250f9 |
+# Number of debugging information entries (DIEs) above which
|
|
Bernhard M. Wiedemann |
1250f9 |
+# dwz will stop considering file for multifile optimizations
|
|
Bernhard M. Wiedemann |
1250f9 |
+# and enter a low memory mode, in which it will optimize
|
|
Bernhard M. Wiedemann |
1250f9 |
+# in about half the memory needed otherwise.
|
|
Bernhard M. Wiedemann |
1250f9 |
+%_dwz_low_mem_die_limit 10000000
|
|
Bernhard M. Wiedemann |
1250f9 |
+# Number of DIEs above which dwz will stop processing
|
|
Bernhard M. Wiedemann |
1250f9 |
+# a file altogether.
|
|
Bernhard M. Wiedemann |
1250f9 |
+%_dwz_max_die_limit 50000000
|
|
Bernhard M. Wiedemann |
1250f9 |
+
|
|
Bernhard M. Wiedemann |
1250f9 |
+%_find_debuginfo_dwz_opts --run-dwz\\\
|
|
Bernhard M. Wiedemann |
1250f9 |
+ --dwz-low-mem-die-limit %{_dwz_low_mem_die_limit}\\\
|
|
Bernhard M. Wiedemann |
1250f9 |
+ --dwz-max-die-limit %{_dwz_max_die_limit}
|
|
Bernhard M. Wiedemann |
1250f9 |
+
|
|
Bernhard M. Wiedemann |
1250f9 |
#
|
|
Bernhard M. Wiedemann |
1250f9 |
# Include a .gdb_index section in the .debug files.
|
|
Bernhard M. Wiedemann |
1250f9 |
# Requires _enable_debug_packages and gdb-add-index installed.
|
|
|
67e736 |
@@ -491,39 +507,39 @@ package or when debugging this package.\
|
|
Bernhard M. Wiedemann |
1250f9 |
# Same as for "separate" but if the __debug_package global is set then
|
|
Bernhard M. Wiedemann |
1250f9 |
# the -debuginfo package will have a compatibility link for the main
|
|
Bernhard M. Wiedemann |
1250f9 |
# ELF /usr/lib/debug/.build-id/xx/yyy -> /usr/lib/.build-id/xx/yyy
|
|
Bernhard M. Wiedemann |
1250f9 |
-%_build_id_links compat
|
|
Bernhard M. Wiedemann |
1250f9 |
+%_build_id_links alldebug
|
|
Bernhard M. Wiedemann |
1250f9 |
|
|
Bernhard M. Wiedemann |
1250f9 |
# Whether build-ids should be made unique between package version/releases
|
|
Bernhard M. Wiedemann |
1250f9 |
# when generating debuginfo packages. If set to 1 this will pass
|
|
|
67e736 |
# --build-id-seed "%{VERSION}-%{RELEASE}" to find-debuginfo.sh which will
|
|
|
67e736 |
# pass it onto debugedit --build-id-seed to be used to prime the build-id
|
|
|
67e736 |
# note hash.
|
|
|
67e736 |
-%_unique_build_ids 1
|
|
|
67e736 |
+#%_unique_build_ids 1
|
|
|
67e736 |
|
|
|
67e736 |
# Do not recompute build-ids but keep whatever is in the ELF file already.
|
|
|
67e736 |
# Cannot be used together with _unique_build_ids (which forces recomputation).
|
|
|
67e736 |
# Defaults to undefined (unset).
|
|
|
67e736 |
-#%_no_recompute_build_ids 1
|
|
|
67e736 |
+%_no_recompute_build_ids 1
|
|
|
67e736 |
|
|
|
67e736 |
# Whether .debug files should be made unique between package version,
|
|
|
67e736 |
# release and architecture. If set to 1 this will pass
|
|
|
67e736 |
# --unique-debug-suffix "-%{VERSION}-%{RELEASE}.%{_arch} find-debuginfo.sh
|
|
|
67e736 |
# to create debuginfo files which end in -<ver>-<rel>.<arch>.debug
|
|
|
67e736 |
# Requires _unique_build_ids.
|
|
|
67e736 |
-%_unique_debug_names 1
|
|
|
67e736 |
+#%_unique_debug_names 1
|
|
|
67e736 |
|
|
|
67e736 |
# Whether the /usr/debug/src/<package> directories should be unique between
|
|
|
67e736 |
# package version, release and architecture. If set to 1 this will pass
|
|
|
67e736 |
# --unique-debug-src-base "%{name}-%{VERSION}-%{RELEASE}.%{_arch}" to
|
|
|
67e736 |
# find-debuginfo.sh to name the directory under /usr/debug/src as
|
|
|
67e736 |
# <name>-<ver>-<rel>.<arch>.
|
|
|
67e736 |
-%_unique_debug_srcs 1
|
|
|
67e736 |
+#%_unique_debug_srcs 1
|
|
Bernhard M. Wiedemann |
1250f9 |
|
|
Bernhard M. Wiedemann |
1250f9 |
# Whether rpm should put debug source files into its own subpackage
|
|
Bernhard M. Wiedemann |
1250f9 |
-#%_debugsource_packages 1
|
|
Bernhard M. Wiedemann |
1250f9 |
+%_debugsource_packages 1
|
|
Bernhard M. Wiedemann |
1250f9 |
|
|
Bernhard M. Wiedemann |
1250f9 |
# Whether rpm should create extra debuginfo packages for each subpackage
|
|
Bernhard M. Wiedemann |
1250f9 |
-#%_debuginfo_subpackages 1
|
|
Bernhard M. Wiedemann |
1250f9 |
+%_debuginfo_subpackages 1
|
|
Bernhard M. Wiedemann |
1250f9 |
|
|
Bernhard M. Wiedemann |
1250f9 |
#
|
|
Bernhard M. Wiedemann |
1250f9 |
# Use internal dependency generator rather than external helpers?
|
|
|
67e736 |
@@ -542,6 +558,7 @@ package or when debugging this package.\
|
|
Bernhard M. Wiedemann |
1250f9 |
%__find_requires %{_rpmconfigdir}/find-requires
|
|
Bernhard M. Wiedemann |
1250f9 |
#%__find_conflicts ???
|
|
Bernhard M. Wiedemann |
1250f9 |
#%__find_obsoletes ???
|
|
Bernhard M. Wiedemann |
1250f9 |
+%__find_supplements %{_rpmconfigdir}/find-supplements
|
|
Bernhard M. Wiedemann |
1250f9 |
|
|
Bernhard M. Wiedemann |
1250f9 |
#
|
|
Bernhard M. Wiedemann |
1250f9 |
# Path to file attribute classifications for automatic dependency
|
|
|
67e736 |
@@ -926,7 +943,7 @@ package or when debugging this package.\
|
|
Bernhard M. Wiedemann |
1250f9 |
%_build_vendor %{_host_vendor}
|
|
Bernhard M. Wiedemann |
1250f9 |
%_build_os %{_host_os}
|
|
Bernhard M. Wiedemann |
1250f9 |
%_host @host@
|
|
Bernhard M. Wiedemann |
1250f9 |
-%_host_alias @host_alias@%{nil}
|
|
Bernhard M. Wiedemann |
1250f9 |
+%_host_alias @host@%{nil}
|
|
Bernhard M. Wiedemann |
1250f9 |
%_host_cpu @host_cpu@
|
|
Bernhard M. Wiedemann |
1250f9 |
%_host_vendor @host_vendor@
|
|
Bernhard M. Wiedemann |
1250f9 |
%_host_os @host_os@
|
|
|
67e736 |
@@ -1045,11 +1062,13 @@ package or when debugging this package.\
|
|
Bernhard M. Wiedemann |
1250f9 |
|
|
Bernhard M. Wiedemann |
1250f9 |
#------------------------------------------------------------------------------
|
|
|
ee825d |
# arch macro for all supported 32-bit ARM processors
|
|
|
ee825d |
-%arm32 armv3l armv4b armv4l armv4tl armv5tl armv5tel armv5tejl armv6l armv6hl armv7l armv7hl armv7hnl armv8l armv8hl armv8hnl armv8hcnl
|
|
|
ee825d |
+%arm32 armv3l armv4b armv4l armv4tl armv5b armv5l armv5teb armv5tel armv5tejl armv6l armv6hl armv7l armv7hl armv7hnl armv8l armv8hl armv8hnl armv8hcnl
|
|
Bernhard M. Wiedemann |
1250f9 |
|
|
Bernhard M. Wiedemann |
1250f9 |
#------------------------------------------------------------------------------
|
|
|
ee825d |
# arch macro for all supported 32-bit ARM processors (legacy, use %%arm32 instead)
|
|
|
ee825d |
%arm %{arm32}
|
|
|
ee825d |
+%arml armv3l armv4l armv5l armv5tel armv6l armv6hl armv7l armv7hl armv7hnl armv8l armv8hl armv8hnl armv8hcnl
|
|
|
ee825d |
+%armb armv4b armv5b armv5teb
|
|
|
ee825d |
|
|
|
ee825d |
#------------------------------------------------------------------------------
|
|
|
ee825d |
# arch macro for all supported 64-bit ARM processors
|