1 Star 0 Fork 90

巨博闰/openEuler-rpm-config

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
fixed-a-bug-that-missing_-p-in-macros.kmp.patch 1.35 KB
一键复制 编辑 原始数据 按行查看 历史
Mingtai 提交于 2022-11-30 20:34 . support adaptive according to vendor
From 7629ad0c54cc3970e49b2f78043e0fe1b1c6474d Mon Sep 17 00:00:00 2001
From: liujing <liujing_yewu@cmss.chinamobile.com>
Date: Wed, 1 Dec 2021 00:46:20 -0500
Subject: [PATCH] fixed a bug that missing -p in macros.kmp
---
macros.kmp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/macros.kmp b/macros.kmp
index be66e64..5207045 100644
--- a/macros.kmp
+++ b/macros.kmp
@@ -5,17 +5,17 @@ kernel_module_package_release 1
#kernel_module_package [ -n name ] [ -v version ] [ -r release ]
-# [ -f filelist]
+# [ -f filelist][-p preamble]
#
%kernel_module_package_buildreqs %global kmodtool_generate_buildreqs 1 \
kernel-devel
-%kernel_module_package(n:v:r:f:) %{expand:%( \
+%kernel_module_package(n:v:r:f:p) %{expand:%( \
%define kmodtool /usr/lib/rpm/__vendor/kmodtool.py\
%define latest_kernel $(rpm -q --qf '%{VERSION}-%{RELEASE}\\\\n' `rpm -q kernel-devel` | head -n 1) \
%{!?kernel_version:%{expand:%%global kernel_version %{latest_kernel}}} \
%global kverrel %(%{kmodtool} verrel %{?kernel_version} 2>/dev/null) \
- python3 %{kmodtool} rpmtemplate_kmp %{-n*}%{!-n:%name} %{kverrel} %{-f*}%{!-f:%filelist} \
+ python3 %{kmodtool} rpmtemplate_kmp %{-n*}%{!-n:%name} %{kverrel} %{-f*}%{!-f:%filelist} %{-p*}%{!-p:%preamble} \
)}
--
2.27.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jubo-run/openEuler-rpm-config.git
git@gitee.com:jubo-run/openEuler-rpm-config.git
jubo-run
openEuler-rpm-config
openEuler-rpm-config
master

搜索帮助