Accepting request 807799 from openSUSE:Tools

- enable sysrq operations on boot
- Set kvm_serial_device to virtio-serial in the fixup
- Split console arg setting code into kvm_add_console_args
- Update for zVM to make container builds work.
- Write to /proc/sys/kernel/hostname if the hostname command is not available
- Use --cgroup-manager=cgroupfs when calling podman
- Also squash by default in podman builds
- Support different interpreters in prein/postin scriptlets
- Use grep -E instead of egrep to check for the needsbinariesforbuild flag
- Use new Build::Intrepo module
- Add new Intrepo module to read/write build's internal repo format
- remove .gz from _ccache archive as it is no longer compressed
- Add support for Arch in build-recipe-kiwi
- Autodetect whether to use --pipe option of systemd-nspawn.
- Split parse_depfile() from readdeps()
- enable compression on ccache
- add bugzilla numbers for s390 workaround
- extend --ccache to generate _ccache.tar.gz and implement --pkg-ccache
- disable transparent_hugepage on s390x guests for now, causes hangs
- set buildflavor also for Build::parse

- Leap 15.2 config update (libzstd1 for rpm)
- handle obscpio extraction error as fatal
- Return correct exit code from systemd-nspawn build
- Spec parser: do not parse included files from end to start
- running disk full check also outside of VM
- run disk full check only for chroot

- Spec parser: add support for %elif, %elifarch, %elifos
- Support rpm's %include statement (EXPERIMENTAL, known limitations)

OBS-URL: https://build.opensuse.org/request/show/807799
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/build?expand=0&rev=131
This commit is contained in:
Yuchen Lin 2020-05-29 19:13:17 +00:00 committed by Git OBS Bridge
commit 47c3ca5fad
8 changed files with 80 additions and 15 deletions

View File

@ -1,5 +1,5 @@
pkgname=build pkgname=build
pkgver=20200131 pkgver=20200520
pkgrel=0 pkgrel=0
pkgdesc="Build packages in sandbox" pkgdesc="Build packages in sandbox"
arch=('i686' 'x86_64') arch=('i686' 'x86_64')

View File

@ -1,7 +1,7 @@
<services> <services>
<service name="tar_scm" mode="disabled"> <service name="tar_scm" mode="disabled">
<param name="revision">20200131</param> <param name="revision">20200520</param>
<param name="version">20200131</param> <param name="version">20200520</param>
<param name="url">git://github.com/openSUSE/obs-build.git</param> <param name="url">git://github.com/openSUSE/obs-build.git</param>
<param name="scm">git</param> <param name="scm">git</param>
<param name="extract">dist/build.changes</param> <param name="extract">dist/build.changes</param>

View File

@ -1,3 +1,54 @@
-------------------------------------------------------------------
Sun May 17 14:32:52 UTC 2020 - coolo@suse.com
- enable sysrq operations on boot
- Set kvm_serial_device to virtio-serial in the fixup
- Split console arg setting code into kvm_add_console_args
- Update for zVM to make container builds work.
- Write to /proc/sys/kernel/hostname if the hostname command is not available
- Use --cgroup-manager=cgroupfs when calling podman
- Also squash by default in podman builds
- Support different interpreters in prein/postin scriptlets
- Use grep -E instead of egrep to check for the needsbinariesforbuild flag
- Use new Build::Intrepo module
- Add new Intrepo module to read/write build's internal repo format
- remove .gz from _ccache archive as it is no longer compressed
- Add support for Arch in build-recipe-kiwi
- Autodetect whether to use --pipe option of systemd-nspawn.
- Split parse_depfile() from readdeps()
- enable compression on ccache
- add bugzilla numbers for s390 workaround
- extend --ccache to generate _ccache.tar.gz and implement --pkg-ccache
- disable transparent_hugepage on s390x guests for now, causes hangs
- set buildflavor also for Build::parse
-------------------------------------------------------------------
Fri Mar 13 13:41:20 UTC 2020 - Adrian Schröter <adrian@suse.de>
- Leap 15.2 config update (libzstd1 for rpm)
- handle obscpio extraction error as fatal
- Return correct exit code from systemd-nspawn build
- Spec parser: do not parse included files from end to start
- running disk full check also outside of VM
- run disk full check only for chroot
-------------------------------------------------------------------
Mon Feb 10 08:25:12 UTC 2020 - Adrian Schröter <adrian@suse.de>
- Spec parser: add support for %elif, %elifarch, %elifos
- Support rpm's %include statement (EXPERIMENTAL, known limitations)
- Do not do vminstall expansion in expanddeps unless --vm is used
-------------------------------------------------------------------
Wed Feb 5 08:23:06 UTC 2020 - Adrian Schröter <adrian@suse.de>
- 15.2 config: preinstall gcrypt deps again
- Recommends for Fedora based distros
- support obsgendiff funcationality
- various smaller code cleanups
- additional test cases for spec file parsing
- various fixes for cornercases during spec file parsing
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jan 31 11:49:34 UTC 2020 - Adrian Schröter <adrian@suse.de> Fri Jan 31 11:49:34 UTC 2020 - Adrian Schröter <adrian@suse.de>

View File

@ -1,6 +1,6 @@
Format: 1.0 Format: 1.0
Source: build Source: build
Version: 20200131 Version: 20200520
Binary: build Binary: build
Maintainer: Adrian Schroeter <adrian@suse.de> Maintainer: Adrian Schroeter <adrian@suse.de>
Architecture: all Architecture: all

View File

@ -18,17 +18,17 @@
# needsbinariesforbuild # needsbinariesforbuild
%if 0%{?fedora} || 0%{?rhel} %if 0%{?suse_version}
%define __pkg_name obs-build
%else
%define __pkg_name build %define __pkg_name build
%else
%define __pkg_name obs-build
%endif %endif
Name: %{__pkg_name} Name: %{__pkg_name}
Summary: A Script to Build SUSE Linux RPMs Summary: A Script to Build SUSE Linux RPMs
License: GPL-2.0-only OR GPL-3.0-only License: GPL-2.0-only OR GPL-3.0-only
Group: Development/Tools/Building Group: Development/Tools/Building
Version: 20200131 Version: 20200520
Release: 0 Release: 0
Source: obs-build-%{version}.tar.gz Source: obs-build-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -47,12 +47,20 @@ BuildRequires: binutils
BuildRequires: perl BuildRequires: perl
BuildRequires: psmisc BuildRequires: psmisc
BuildRequires: tar BuildRequires: tar
# For testcases
BuildRequires: perl(Date::Parse)
BuildRequires: perl(Test::Harness)
BuildRequires: perl(Test::More)
%if 0%{?fedora} %if 0%{?fedora}
Requires: perl-MD5 Requires: perl-MD5
Requires: perl-TimeDate Requires: perl-TimeDate
BuildRequires: perl-TimeDate
%endif %endif
Conflicts: bsdtar < 2.5.5 Conflicts: bsdtar < 2.5.5
%if 0%{?suse_version} > 1000 BuildRequires: perl(Date::Parse)
BuildRequires: perl(Test::Harness)
BuildRequires: perl(Test::More)
%if 0%{?suse_version} > 1000 || 0%{?centos_version} >= 800 || 0%{?rhel_version} >= 800 || 0%{?fedora_version} >= 21
# None of them are actually required for core features. # None of them are actually required for core features.
# Perl helper scripts use them. # Perl helper scripts use them.
Recommends: perl(Date::Language) Recommends: perl(Date::Language)
@ -199,12 +207,16 @@ test -e baselibs_global.conf || exit 1
%check %check
for i in build build-* ; do bash -n $i || exit 1 ; done for i in build build-* ; do bash -n $i || exit 1 ; done
# run perl module unit tests
LANG=C make test || exit 1
if [ `whoami` != "root" ]; then if [ `whoami` != "root" ]; then
echo "WARNING: Not building as root, tests did not run!" echo "WARNING: Not building as root, build test did not run!"
exit 0 exit 0
fi fi
if [ ! -f "%{buildroot}/usr/lib/build/configs/default.conf" ]; then if [ ! -f "%{buildroot}/usr/lib/build/configs/default.conf" ]; then
echo "WARNING: No default config, tests did not run!" echo "WARNING: No default config, build test did not run!"
exit 0 exit 0
fi fi
# get back the default.conf link # get back the default.conf link
@ -213,6 +225,8 @@ cp -av %{buildroot}/usr/lib/build/configs/default.conf configs/
export BUILD_IGNORE_2ND_STAGE=1 export BUILD_IGNORE_2ND_STAGE=1
# use our own build code # use our own build code
export BUILD_DIR=$PWD export BUILD_DIR=$PWD
# simple chroot build test
cd test cd test
# target is autodetected # target is autodetected
%if 0%{?sles_version} %if 0%{?sles_version}

View File

@ -1,4 +1,4 @@
build (20200131) unstable; urgency=low build (20200520) unstable; urgency=low
* Update to current git trunk * Update to current git trunk
- add sles11sp2 build config and adapt autodetection - add sles11sp2 build config and adapt autodetection

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9442bb5d6c48f987bbf6a9678537e36c26abbc451a6f76b05a8849dd4981df08
size 342012

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0d37d79f55abb400d488ae0f069e2cc62019345cf2955f69f97febc2d6b38423
size 347598