diff --git a/0001-modify-for-obs-build.patch b/0001-modify-for-obs-build.patch new file mode 100644 index 0000000000000000000000000000000000000000..b84e8fb30cd4e6667fe16c6f79dbc6457e43b9d6 --- /dev/null +++ b/0001-modify-for-obs-build.patch @@ -0,0 +1,29 @@ +From 2372a1ac834d17d99899275685606f5ebb15f265 Mon Sep 17 00:00:00 2001 +From: jeff200902 +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 + diff --git a/build.spec b/build.spec index 2e3bbf9bb39332b53e201eb9d80dc600b5ec024e..29b1971febd70c3a14b914d6085af4590455f667 100644 --- a/build.spec +++ b/build.spec @@ -5,7 +5,7 @@ Summary: A tool to build binary packages License: GPL-2.0-only OR GPL-3.0-only Url: https://github.com/openSUSE/obs-build Source: obs-build-%{version}.tar.gz - +Patch0000: 0001-modify-for-obs-build.patch BuildArch: noarch Requires: bash binutils perl tar psmisc build-mkbaselibs BuildRequires: bash binutils perl psmisc tar