Delete the commented code
This commit is contained in:
parent
9b3b63deed
commit
ed4d969357
62
Delete-the-commented-code.patch
Normal file
62
Delete-the-commented-code.patch
Normal file
@ -0,0 +1,62 @@
|
||||
From c7605385b9d838be78a87de02a48eaaa6e69b4b2 Mon Sep 17 00:00:00 2001
|
||||
From: hongjinghao <hongjinghao@huawei.com>
|
||||
Date: Tue, 5 Mar 2024 20:22:59 +0800
|
||||
Subject: [PATCH] Delete the commented code
|
||||
|
||||
---
|
||||
brp-digest-list | 1 -
|
||||
macros | 7 -------
|
||||
2 files changed, 8 deletions(-)
|
||||
|
||||
diff --git a/brp-digest-list b/brp-digest-list
|
||||
index 77248c9..7de42b7 100644
|
||||
--- a/brp-digest-list
|
||||
+++ b/brp-digest-list
|
||||
@@ -9,7 +9,6 @@ if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then
|
||||
fi
|
||||
|
||||
# Create temporary file listing files in the manifest
|
||||
-#[ -n "$TMPDIR" ] || TMPDIR="/tmp"
|
||||
TMPDIR="/tmp"
|
||||
BIN_PKG_FILES=${TMPDIR}/${3%%.rpm}
|
||||
cat - > $BIN_PKG_FILES
|
||||
diff --git a/macros b/macros
|
||||
index 52df0f6..bf672e2 100644
|
||||
--- a/macros
|
||||
+++ b/macros
|
||||
@@ -16,10 +16,8 @@
|
||||
%_fmoddir %{_libdir}/gfortran/modules
|
||||
|
||||
%_enable_debug_packages 1
|
||||
-#%_include_minidebuginfo 1
|
||||
%_include_gdb_index 1
|
||||
%_debugsource_packages 1
|
||||
-#%_debuginfo_subpackages 1
|
||||
|
||||
%_build_id_links none
|
||||
|
||||
@@ -188,11 +186,9 @@
|
||||
# Fail linking if there are undefined symbols. Required for proper
|
||||
# ELF symbol versioning support. Disabled by default.
|
||||
# Use "%define _ld_strict_symbol_defs 1" to enable.
|
||||
-#%_ld_strict_symbol_defs 1
|
||||
%_ld_symbols_flags %{?_ld_strict_symbol_defs:-Wl,-z,defs}
|
||||
|
||||
# use "%define _ld_as_needed 1" to enable.
|
||||
-#%_ld_as_needed 1
|
||||
%_ld_as_needed_flags %{?_ld_as_needed:-Wl,--as-needed}
|
||||
|
||||
%__global_compiler_flags -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches %{_hardened_cflags}
|
||||
@@ -304,9 +300,6 @@ Requires: man info \
|
||||
%description help \
|
||||
Man pages and other related documents for %{name}.
|
||||
|
||||
-#%sbin_installinfo_rm bc.info
|
||||
-#%sbin_installinfo_rm bc.info.gz
|
||||
-
|
||||
%install_info() \
|
||||
/sbin/install-info %1 %{_infodir}/dir || :
|
||||
|
||||
--
|
||||
2.33.0
|
||||
|
||||
@ -6,7 +6,7 @@ Subject: [PATCH] backport kmp feature
|
||||
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
|
||||
Signed-off-by: Xinliang Liu <xinliang.liu@linaro.org>
|
||||
---
|
||||
kmodtool | 287 ++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
kmodtool | 281 ++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
kmodtool.py | 83 ---------------
|
||||
macros.kmp | 85 ++++++++++++----
|
||||
3 files changed, 350 insertions(+), 105 deletions(-)
|
||||
@ -18,7 +18,7 @@ new file mode 100644
|
||||
index 0000000..427d1df
|
||||
--- /dev/null
|
||||
+++ b/kmodtool
|
||||
@@ -0,0 +1,287 @@
|
||||
@@ -0,0 +1,281 @@
|
||||
+#!/usr/bin/bash
|
||||
+
|
||||
+# kmodtool - Helper script for building kernel module RPMs
|
||||
@ -154,11 +154,6 @@ index 0000000..427d1df
|
||||
+Requires(postun): /usr/sbin/depmod
|
||||
+EOF
|
||||
+
|
||||
+#if [ "no" != "$kmp_nobuildreqs" ]
|
||||
+#then
|
||||
+ # echo "BuildRequires: kernel${dashvariant}-devel-%{_target_cpu} = ${verrel}"
|
||||
+#fi
|
||||
+
|
||||
+if [ "" != "$kmp_override_preamble" ]
|
||||
+then
|
||||
+ cat "$kmp_override_preamble"
|
||||
@ -197,7 +192,6 @@ index 0000000..427d1df
|
||||
+ if [ ! -z "$kmp" ]; then
|
||||
+ cat <<EOF
|
||||
+modules=( \$(cat /var/run/rpm-kmod-${kmod_name}${dashvariant}-modules) )
|
||||
+#rm /var/run/rpm-kmod-${kmod_name}${dashvariant}-modules
|
||||
+if [ -x "/sbin/weak-modules" ]; then
|
||||
+ printf '%s\n' "\${modules[@]}" \
|
||||
+ | /sbin/weak-modules --remove-modules
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
Name: %{vendor}-rpm-config
|
||||
Version: 30
|
||||
Release: 48
|
||||
Release: 49
|
||||
License: GPL+
|
||||
Summary: specific rpm configuration files
|
||||
URL: https://gitee.com/openeuler/openEuler-rpm-config
|
||||
@ -34,6 +34,7 @@ Patch20: add-pytest-and-tox-macros.patch
|
||||
Patch21: check-if-the-file-is-a-symbolic-link-in-brp-digest-list.patch
|
||||
Patch22: fix-the-ELF-file-cannot-be-found-due-to-escape-of.patch
|
||||
Patch23: add-powerpc64le-and-ppc64le-support.patch
|
||||
Patch24: Delete-the-commented-code.patch
|
||||
|
||||
Provides: python-rpm-macros = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
Provides: python2-rpm-macros = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
@ -145,6 +146,9 @@ sed -i "s/__vendor/%{vendor}/g" `grep "__vendor" -rl %{buildroot}%{_rpmconfigdir
|
||||
%{rpmvdir}/find-requires.ksyms
|
||||
|
||||
%changelog
|
||||
* Tue Mar 5 2024 hongjinghao <hongjinghao@huawei.com> - 30-49
|
||||
- Delete the commented code
|
||||
|
||||
* Tue Feb 20 2024 peng.zou <peng.zou@shingroup.cn> - 30-48
|
||||
- add powerpc64le to generic_arches
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user