Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
25852ac33c
!18 Update to 20230809
From: @wk333 
Reviewed-by: @wang--ge 
Signed-off-by: @wang--ge
2023-10-19 01:11:16 +00:00
wk333
9a3729cb0b Update to 20230809 2023-10-18 09:55:21 +08:00
openeuler-ci-bot
8e43f6bdc0
!15 [sync] PR-14: 升级obs-build包,以支持zstd压缩格式的preinstallimage
From: @openeuler-sync-bot 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
2022-12-12 10:41:47 +00:00
Wei, Qiang
e9f5c75a59 Upgrade to 20220429 version
Signed-off-by: Wei, Qiang <qiang.wei@suse.com>
(cherry picked from commit b642e4239b734d7685f729db5e101f645d29c7a7)
2022-05-12 13:36:24 +08:00
openeuler-ci-bot
aac517e6b5
!13 [sync] PR-12: Upgrade to 20211125 version
Merge pull request !13 from openeuler-sync-bot/sync-pr12-openEuler-22.03-LTS-Next-to-master
2022-01-17 02:25:43 +00:00
houyingchao
a1caf4dc53 Upgrade to 20211125 version
(cherry picked from commit 02ed363eee63447feb7437f217285a12fcc2576b)
2022-01-15 19:27:32 +08:00
openeuler-ci-bot
2116da2ad8 !11 obs build支持ccache编译加速
From: @tracedeng
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2021-01-13 17:22:40 +08:00
Your Name
765b44a070 ccache for obs build 2021-01-13 08:49:22 +00:00
openeuler-ci-bot
acdff528a8 !8 add settings for jar
From: @miao_kaibo
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2021-01-07 11:54:43 +08:00
miao_kaibo
74747377bd add settings for jar 2021-01-07 11:20:08 +08:00
6 changed files with 66 additions and 39 deletions

44
0001-add-settings.patch Normal file
View File

@ -0,0 +1,44 @@
From 81bfa0fb035176127c82b186c9eddbd47e9de76c Mon Sep 17 00:00:00 2001
From: miao_kaibo <miaokaibo@outlook.com>
Date: Thu, 7 Jan 2021 09:48:09 +0800
Subject: [PATCH] add settings
---
build | 3 +++
settings.xml | 10 ++++++++++
2 files changed, 13 insertions(+)
create mode 100644 settings.xml
diff --git a/build b/build
index 9b2d0f2..5f7bb19 100755
--- a/build
+++ b/build
@@ -1357,6 +1357,9 @@ for RECIPEFILE in "${RECIPEFILES[@]}" ; do
if test -f $BUILD_ROOT/etc/gshadow ; then
sed -i -e "s@^root::@root:*:@" $BUILD_ROOT/etc/gshadow
fi
+ mkdir -p $BUILD_ROOT/home/abuild/.m2
+ chown $ABUILD_UID:$ABUILD_GID $BUILD_ROOT/home/abuild/.m2
+ cp $BUILD_DIR/settings.xml $BUILD_ROOT/home/abuild/.m2/
BUILD_USER_ABUILD_USED=true
else
# building as root
diff --git a/settings.xml b/settings.xml
new file mode 100644
index 0000000..99a806f
--- /dev/null
+++ b/settings.xml
@@ -0,0 +1,10 @@
+<settings>
+ <mirrors>
+ <mirror>
+ <id>huaweicloud</id>
+ <name>huaweicloud</name>
+ <mirrorOf>*</mirrorOf>
+ <url>https://mirrors.huaweicloud.com/repository/maven/</url>
+ </mirror>
+ </mirrors>
+</settings>
--
2.27.0

View File

@ -1,29 +0,0 @@
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

BIN
20230809.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,14 +1,14 @@
Name: build
Version: 20191114
Release: 324.4
Version: 20230809
Release: 1
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
Source: https://github.com/openSUSE/obs-build/archive/refs/tags/%{version}.tar.gz
Patch0001: 0001-add-settings.patch
BuildArch: noarch
Requires: bash binutils perl tar psmisc build-mkbaselibs
BuildRequires: bash binutils perl psmisc tar
BuildRequires: bash binutils perl psmisc tar perl-libwww-perl
%description
This is a tool to build binary packages in a safe and reproducible
@ -47,6 +47,7 @@ This package contains some man help packages for %{name}.
%install
%make_install
%{__install} -m644 settings.xml %{buildroot}/usr/lib/build
%check
for file in build build-*
@ -74,8 +75,8 @@ sed -i 's,build-mkbaselibs,,' configs/*.conf
%{_bindir}/build
%{_bindir}/buildvc
%{_bindir}/unrpm
%{_bindir}/pbuild
/usr/lib/build
%config(noreplace) /usr/lib/build/emulator/emulator.sh
%exclude /usr/lib/build/mkbaselibs
%exclude /usr/lib/build/baselibs*
%exclude /usr/lib/build/mkdrpms
@ -89,16 +90,27 @@ sed -i 's,build-mkbaselibs,,' configs/*.conf
%files mkdrpms
%defattr(-,root,root)
%dir /usr/lib/build
/usr/lib/build/mkdrpms
%files help
%defattr(-,root,root)
%doc README
%{_mandir}/man1/build.1*
%{_mandir}/man1/unrpm.1*
%{_mandir}/man1/buildvc.1*
%{_mandir}/man1/pbuild.1.gz
%changelog
* Wed Oct 18 2023 wangkai <13474090681@163.com> - 20230809-1
- Update to 20230809
* Tue May 10 2022 Wei, Qiang <qiang.wei@suse.com> - 20220429-1
- Upgrade to 20220429 version
* Sat Jan 15 2022 houyingchao <houyingchao@huawei.com> - 20211125-1
- Upgrade to 20211125 version
* Thu Jan 07 2021 openEuler miao_kaibo <miaokaibo@outlook.com> - 20191114-324.5
- Add settings.xml for jar
* Mon Jul 27 2020 openEuler Jeffery.Gao <gaojianxing@huawei.com> - 20191114-324.4
- Modify for obs-build access URL

View File

@ -1,4 +1,4 @@
version_control: github
src_repo: openSUSE/obs-build
tag_prefix: ^v
seperator: ""
tag_prefix: ""
separator: ""