1
0

Accepting request 628867 from Base:System

- Update to kernel headers 4.18 (forwarded request 628866 from Andreas_Schwab)

OBS-URL: https://build.opensuse.org/request/show/628867
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/linux-glibc-devel?expand=0&rev=64
This commit is contained in:
Dominique Leuenberger 2018-08-28 07:18:38 +00:00 committed by Git OBS Bridge
commit 52ed670324
5 changed files with 27 additions and 27 deletions

View File

@ -50,7 +50,7 @@ for asm in \
; do ; do
rm -rf usr/include/arch-$asm rm -rf usr/include/arch-$asm
done done
rm Makefile .cache.mk rm -f Makefile .cache.mk
find -type f -name "..install.cmd" -exec rm {} + find -type f -name "..install.cmd" -exec rm {} +
find -type f -name ".install" -exec rm {} + find -type f -name ".install" -exec rm {} +
#------------------------------------------------------------------- #-------------------------------------------------------------------

View File

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

View File

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

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Aug 13 07:41:51 UTC 2018 - schwab@suse.de
- Update to kernel headers 4.18
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jul 16 08:00:26 UTC 2018 - schwab@suse.de Mon Jul 16 08:00:26 UTC 2018 - schwab@suse.de

View File

@ -17,26 +17,25 @@
Name: linux-glibc-devel Name: linux-glibc-devel
Version: 4.18
Release: 0
Summary: Linux headers for userspace development Summary: Linux headers for userspace development
License: GPL-2.0-only License: GPL-2.0-only
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
BuildArch: noarch URL: http://www.kernel.org/
Version: 4.17 Source: %{name}-%{version}.tar.xz
Release: 0 Source1: install_all.sh
Url: http://www.kernel.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: xz BuildRequires: xz
Provides: kernel-headers
Provides: linux-kernel-headers = %{version}
Obsoletes: linux-kernel-headers < %{version}
# rpm-build requires gettext-tools; ignore this, in order to shorten cycles (we have no translations) # rpm-build requires gettext-tools; ignore this, in order to shorten cycles (we have no translations)
#!BuildIgnore: gettext-tools #!BuildIgnore: gettext-tools
# glibc-devel requires linux-kernel-headers, which we are in progress of building # glibc-devel requires linux-kernel-headers, which we are in progress of building
#!BuildIgnore: linux-kernel-headers #!BuildIgnore: linux-kernel-headers
PreReq: coreutils PreReq: coreutils
Source: %{name}-%{version}.tar.xz Provides: kernel-headers
Source1: install_all.sh Provides: linux-kernel-headers = %{version}
Obsoletes: linux-kernel-headers < %{version}
BuildArch: noarch
%description %description
This package provides Linux kernel headers, the kernel API description This package provides Linux kernel headers, the kernel API description
@ -45,8 +44,6 @@ interface; compiling external kernel modules requires
kernel-(flavor)-devel, or kernel-syms to pull in all kernel-*-devel, kernel-(flavor)-devel, or kernel-syms to pull in all kernel-*-devel,
packages, instead. packages, instead.
%prep %prep
%setup -q -n linux-glibc-devel-%{version} %setup -q -n linux-glibc-devel-%{version}
@ -95,12 +92,10 @@ BOGUS
cat version.h cat version.h
%install %install
rm -rf $RPM_BUILD_ROOT cp -a usr %{buildroot}/
mkdir $RPM_BUILD_ROOT cp -a version.h %{buildroot}%{_includedir}/linux/
cp -a usr $RPM_BUILD_ROOT
cp -a version.h $RPM_BUILD_ROOT/usr/include/linux/
# resolve file conflict with glibc for now # resolve file conflict with glibc for now
rm -fv $RPM_BUILD_ROOT//usr/include/scsi/scsi.h rm -fv %{buildroot}/%{_includedir}/scsi/scsi.h
# Replace the directory /usr/include/asm with a symlink. # Replace the directory /usr/include/asm with a symlink.
# libc contained a symlink /usr/include/asm into kernel-source up to 7.0 (2.1.3) # libc contained a symlink /usr/include/asm into kernel-source up to 7.0 (2.1.3)
# glibc-devel contained a symlink /usr/include/asm into kernel-source in 7.1 (2.2) # glibc-devel contained a symlink /usr/include/asm into kernel-source in 7.1 (2.2)
@ -111,8 +106,8 @@ rm -fv $RPM_BUILD_ROOT//usr/include/scsi/scsi.h
# A trigger will run after the /usr/include/asm was removed # A trigger will run after the /usr/include/asm was removed
# Create a dummy symlink now for rpmlint happiness, we %%ghost this and create # Create a dummy symlink now for rpmlint happiness, we %%ghost this and create
# a proper symlink during %%post: # a proper symlink during %%post:
ln -sfn asm-dummy $RPM_BUILD_ROOT/usr/include/asm ln -sfn asm-dummy %{buildroot}%{_includedir}/asm
%fdupes $RPM_BUILD_ROOT/usr/include %fdupes %{buildroot}%{_includedir}
%postun %postun
if test "$1" = 0 if test "$1" = 0
@ -141,7 +136,7 @@ if test -L usr/include/asm
then then
case "$(readlink usr/include/asm)" in case "$(readlink usr/include/asm)" in
*../src/linux/include*) *../src/linux/include*)
echo "/usr/include/asm points to kernel-source, waiting for triggerpostun to symlink to asm-$asm_link" echo "%{_includedir}/asm points to kernel-source, waiting for triggerpostun to symlink to asm-$asm_link"
rm -fv usr/include/asm rm -fv usr/include/asm
exit 0 exit 0
;; ;;
@ -149,7 +144,7 @@ then
: symlink is ok, update it below in case of an arch change : symlink is ok, update it below in case of an arch change
elif test -d usr/include/asm elif test -d usr/include/asm
then then
echo "/usr/include/asm is a directory, waiting for triggerpostun to symlink to asm-$asm_link" echo "%{_includedir}/asm is a directory, waiting for triggerpostun to symlink to asm-$asm_link"
exit 0 exit 0
fi fi
ln -sfn arch-$asm_link/asm usr/include/asm ln -sfn arch-$asm_link/asm usr/include/asm
@ -176,7 +171,7 @@ exit 0
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{_prefix}/include/* %{_includedir}/*
%ghost %{_prefix}/include/asm %ghost %{_includedir}/asm
%changelog %changelog