Modify for obs build
This commit is contained in:
parent
544ec84a85
commit
b9a5a1ac0e
29
0001-modify-for-obs-build.patch
Normal file
29
0001-modify-for-obs-build.patch
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
From 2372a1ac834d17d99899275685606f5ebb15f265 Mon Sep 17 00:00:00 2001
|
||||||
|
From: jeff200902 <jeff200902@163.com>
|
||||||
|
Date: Mon, 27 Jul 2020 18:59:20 +0800
|
||||||
|
Subject: [PATCH] modify for osb build
|
||||||
|
|
||||||
|
---
|
||||||
|
build | 6 ++++++
|
||||||
|
1 file changed, 6 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/build b/build
|
||||||
|
index 9b2d0f2..df9ce59 100755
|
||||||
|
--- a/build
|
||||||
|
+++ b/build
|
||||||
|
@@ -1549,6 +1549,12 @@ if test \( -n "$RPMS" -o -n "$DEBS" \) -a -n "$CREATE_BASELIBS"; then
|
||||||
|
create_baselibs
|
||||||
|
fi
|
||||||
|
|
||||||
|
+if test -f "$BUILD_ROOT/etc/resolv.conf"; then
|
||||||
|
+ cat $BUILD_ROOT/etc/resolv.conf
|
||||||
|
+else
|
||||||
|
+ cp /etc/resolv.conf $BUILD_ROOT/etc/
|
||||||
|
+fi
|
||||||
|
+
|
||||||
|
exitcode=0
|
||||||
|
|
||||||
|
# post build work
|
||||||
|
--
|
||||||
|
2.23.0
|
||||||
|
|
||||||
@ -5,7 +5,7 @@ Summary: A tool to build binary packages
|
|||||||
License: GPL-2.0-only OR GPL-3.0-only
|
License: GPL-2.0-only OR GPL-3.0-only
|
||||||
Url: https://github.com/openSUSE/obs-build
|
Url: https://github.com/openSUSE/obs-build
|
||||||
Source: obs-build-%{version}.tar.gz
|
Source: obs-build-%{version}.tar.gz
|
||||||
|
Patch0000: 0001-modify-for-obs-build.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Requires: bash binutils perl tar psmisc build-mkbaselibs
|
Requires: bash binutils perl tar psmisc build-mkbaselibs
|
||||||
BuildRequires: bash binutils perl psmisc tar
|
BuildRequires: bash binutils perl psmisc tar
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user