1
0

Accepting request 27392 from Base:System

Copy from Base:System/linux-glibc-devel based on submit request 27392 from user coolo

OBS-URL: https://build.opensuse.org/request/show/27392
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/linux-glibc-devel?expand=0&rev=1
This commit is contained in:
OBS User autobuild 2009-12-29 23:35:57 +00:00 committed by Git OBS Bridge
commit 2f4f18b9bb
9 changed files with 4900 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

76
install_all.sh Normal file
View File

@ -0,0 +1,76 @@
#!/bin/bash
# bash -x $0 linux-1.2.3.tar.bz2
set -e
kernel=$1
if ! test -f "$1"
then
echo "Usage: ${0##*/} linux-1.2.3.tar.gz"
exit 1
fi
kernel_dir="`tar -tf $1 | sed '1 {s@^.*[[:blank:]]@@;s@linux-@@;s@/.*$@@;s@^\([0-9]\+\.[0-9]\+\.[0-9]\+\)\(.*\)@\1@;p;Q}'`"
header_dir="$PWD/linux-glibc-devel-$kernel_dir"
if test -d "$kernel_dir"
then
echo "$kernel_dir exists, remove it first."
exit 1
fi
if ! mkdir "$header_dir"
then
echo "$header_dir exists, remove it first."
exit 1
fi
tar -xf $1
pushd linux-${kernel_dir}
cp Makefile $header_dir
/usr/bin/make O="$header_dir" headers_install_all
# kvm.h and aout.h are only installed if SRCARCH is an architecture
# that has support for them. As the package is noarch we need to make
# sure we get the full support on x86
/usr/bin/make SRCARCH=x86 O="$header_dir" headers_install_all
popd
pushd "$header_dir"
for asm in \
alpha \
avr32 \
blackfin \
cris \
frv \
h8300 \
m32r \
m68k \
m68knommu \
mips \
mn10300 \
sh \
sh64 \
v850 \
xtensa \
; do
rm -rf usr/include/asm-$asm
done
rm Makefile
find -type f -name "..install.cmd" -print0 | xargs -0 --no-run-if-empty rm
find -type f -name ".install" -print0 | xargs -0 --no-run-if-empty rm
#-------------------------------------------------------------------
#Fri Sep 5 10:43:49 CEST 2008 - matz@suse.de
#- Remove the kernel version of drm headers, they conflict
# with the libdrm ones, and those are slightly newer.
#
rm -rf usr/include/drm/
for dir in *
do
case "$dir" in
usr) ;;
*)
if test -d "$dir"
then
rm -rf "$dir"
fi
;;
esac
done
popd
du -sh "$header_dir/usr"
tar -cjf "$header_dir.tar.bz2" "${header_dir##*/}"
rm -rf $header_dir

View File

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

View File

@ -0,0 +1,68 @@
these packages use the obsolete SO_BSDCOMPAT:
bind
dietlibc (#define only)
pidgin
python
strace
syslogd
--- usr/include/asm-arm/socket.h
+++ usr/include/asm-arm/socket.h
@@ -21,7 +21,6 @@
#define SO_NO_CHECK 11
#define SO_PRIORITY 12
#define SO_LINGER 13
-#define SO_BSDCOMPAT 14
/* To add :#define SO_REUSEPORT 15 */
#define SO_PASSCRED 16
#define SO_PEERCRED 17
--- usr/include/asm-generic/socket.h
+++ usr/include/asm-generic/socket.h
@@ -21,7 +21,6 @@
#define SO_NO_CHECK 11
#define SO_PRIORITY 12
#define SO_LINGER 13
-#define SO_BSDCOMPAT 14
/* To add :#define SO_REUSEPORT 15 */
#ifndef SO_PASSCRED /* powerpc only differs in these */
--- usr/include/asm-ia64/socket.h
+++ usr/include/asm-ia64/socket.h
@@ -30,7 +30,6 @@
#define SO_NO_CHECK 11
#define SO_PRIORITY 12
#define SO_LINGER 13
-#define SO_BSDCOMPAT 14
/* To add :#define SO_REUSEPORT 15 */
#define SO_PASSCRED 16
#define SO_PEERCRED 17
--- usr/include/asm-parisc/socket.h
+++ usr/include/asm-parisc/socket.h
@@ -30,7 +30,6 @@
#define SO_NO_CHECK 0x400b
#define SO_PRIORITY 0x400c
-#define SO_BSDCOMPAT 0x400e
#define SO_PASSCRED 0x4010
#define SO_PEERCRED 0x4011
#define SO_TIMESTAMP 0x4012
--- usr/include/asm-powerpc/socket.h
+++ usr/include/asm-powerpc/socket.h
@@ -28,7 +28,6 @@
#define SO_NO_CHECK 11
#define SO_PRIORITY 12
#define SO_LINGER 13
-#define SO_BSDCOMPAT 14
/* To add :#define SO_REUSEPORT 15 */
#define SO_RCVLOWAT 16
#define SO_SNDLOWAT 17
--- usr/include/asm-s390/socket.h
+++ usr/include/asm-s390/socket.h
@@ -29,7 +29,6 @@
#define SO_NO_CHECK 11
#define SO_PRIORITY 12
#define SO_LINGER 13
-#define SO_BSDCOMPAT 14
/* To add :#define SO_REUSEPORT 15 */
#define SO_PASSCRED 16
#define SO_PEERCRED 17

View File

@ -0,0 +1,60 @@
--- usr/include/asm-arm/ioctls.h
+++ usr/include/asm-arm/ioctls.h
@@ -52,6 +52,7 @@
#define TCSETSF2 _IOW('T',0x2D, struct termios2)
#define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
#define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */
+#define TIOCGDEV _IOR('T',0x32, unsigned int) /* Get real dev no below /dev/console */
#define FIONCLEX 0x5450 /* these numbers need to be adjusted. */
#define FIOCLEX 0x5451
--- usr/include/asm-generic/ioctls.h
+++ usr/include/asm-generic/ioctls.h
@@ -65,6 +65,7 @@
#define TIOCSRS485 0x542F
#define TIOCGPTN _IOR('T', 0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
#define TIOCSPTLCK _IOW('T', 0x31, int) /* Lock/unlock Pty */
+#define TIOCGDEV _IOR('T', 0x32, unsigned int) /* Get real dev no below /dev/console */
#define TCGETX 0x5432 /* SYS5 TCGETX compatibility */
#define TCSETX 0x5433
#define TCSETXF 0x5434
--- usr/include/asm-ia64/ioctls.h
+++ usr/include/asm-ia64/ioctls.h
@@ -59,6 +59,7 @@
#define TCSETSF2 _IOW('T',0x2D, struct termios2)
#define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
#define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */
+#define TIOCGDEV _IOR('T',0x32, unsigned int) /* Get real dev no below /dev/console */
#define FIONCLEX 0x5450 /* these numbers need to be adjusted. */
#define FIOCLEX 0x5451
--- usr/include/asm-parisc/ioctls.h
+++ usr/include/asm-parisc/ioctls.h
@@ -52,6 +52,7 @@
#define TCSETSF2 _IOW('T',0x2D, struct termios2)
#define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
#define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */
+#define TIOCGDEV _IOR('T',0x32, unsigned int) /* Get real dev no below /dev/console */
#define FIONCLEX 0x5450 /* these numbers need to be adjusted. */
#define FIOCLEX 0x5451
--- usr/include/asm-powerpc/ioctls.h
+++ usr/include/asm-powerpc/ioctls.h
@@ -93,6 +93,7 @@
#define TIOCSRS485 0x542f
#define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
#define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */
+#define TIOCGDEV _IOR('T',0x32, unsigned int) /* Get real dev no below /dev/console */
#define TIOCSERCONFIG 0x5453
#define TIOCSERGWILD 0x5454
--- usr/include/asm-s390/ioctls.h
+++ usr/include/asm-s390/ioctls.h
@@ -60,6 +60,7 @@
#define TCSETSF2 _IOW('T',0x2D, struct termios2)
#define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
#define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */
+#define TIOCGDEV _IOR('T',0x32, unsigned int) /* Get real dev no below /dev/console */
#define FIONCLEX 0x5450 /* these numbers need to be adjusted. */
#define FIOCLEX 0x5451

4492
linux-glibc-devel.changes Normal file

File diff suppressed because it is too large Load Diff

177
linux-glibc-devel.spec Normal file
View File

@ -0,0 +1,177 @@
#
# spec file for package linux-glibc-devel (Version 2.6.32)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: linux-glibc-devel
License: GPLv2
Summary: Linux headers for userspace development
Group: Development/Libraries/C and C++
BuildArch: noarch
# this confusing version number has no meaning
Version: 2.6.32
Release: 1
Url: http://www.kernel.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: kernel-headers, linux-kernel-headers = %{version}-%{release}
Obsoletes: linux-kernel-headers < %{version}-%{release}
PreReq: coreutils
Source: %{name}-%{version}.tar.bz2
Source1: install_all.sh
Patch0: linux-glibc-devel.SuSE.TIOCGDEV.patch
Patch1: linux-glibc-devel.SuSE.SO_BSDCOMPAT.patch
%description
This package provides Linux kernel headers, the kernel API description
required for compilation of almost all programs. This is the userspace
interface; compiling external kernel modules requires kernel-source
instead.
%prep
%setup -q
%patch0
%patch1
%build
cat > version.h <<-BOGUS
#ifdef __KERNEL__
#error "======================================================="
#error "You should not include /usr/include/{linux,asm}/ header"
#error "files directly for the compilation of kernel modules."
#error ""
#error "glibc now uses kernel header files from a well-defined"
#error "working kernel version (as recommended by Linus Torvalds)"
#error "These files are glibc internal and may not match the"
#error "currently running kernel. They should only be"
#error "included via other system header files - user space"
#error "programs should not directly include <linux/*.h> or"
#error "<asm/*.h> as well."
#error ""
#error "To build kernel modules please do the following:"
#error ""
#error " o Have the kernel sources installed"
#error ""
#error " o Make sure that the symbolic link"
#error " /lib/modules/\`uname -r\`/build exists and points to"
#error " the matching kernel source directory"
#error ""
#error " o When compiling, make sure to use the following"
#error " compiler option to use the correct include files:"
#error ""
#error " -I/lib/modules/\`uname -r\`/build/include"
#error ""
#error " instead of"
#error ""
#error " -I/usr/include/linux"
#error ""
#error " Please adjust the Makefile accordingly."
#error "======================================================="
#else
#define UTS_RELEASE "%{version}"
#define LINUX_VERSION_CODE `bash -c 'v="%{version}";read a b c d <<< "${v//./ }";echo "$(( (($a) << 16) + (($b) << 8) + ($c) ))"'`
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
#endif
BOGUS
cat version.h
%install
rm -rf $RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT
cp -a usr $RPM_BUILD_ROOT
cp -a version.h $RPM_BUILD_ROOT/usr/include/linux/
# Temporarily exclude i2c header files, which are provided by i2c-tools instead
rm -fv $RPM_BUILD_ROOT/usr/include/linux/i2c-dev.h
# resolve file conflict with glibc for now
rm -fv $RPM_BUILD_ROOT//usr/include/scsi/scsi*
# 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)
# glibc-devel contained a symlink /usr/include/asm into kernel-source in 7.1 (2.2)
# glibc-devel contained a directory /usr/include/asm from 7.2 (2.2.2) up to 10.1/SLES10 (2.4)
# The directory moved from glibc-devel to linux-kernel-headers in 10.2 (2.6.18.2)
# The directory turned into a symlink in 10.3 (2.6.22)
# rpm will remove obsolete files after the post install scripts
# A trigger will run after the /usr/include/asm was removed
# Create a dummy symlink now for rpmlint happiness, we %ghost this and create
# a proper symlink during %post:
ln -sfn asm-dummy $RPM_BUILD_ROOT/usr/include/asm
%postun
if test "$1" = 0
then
rm -f usr/include/asm
fi
exit 0
%post
asm_link=
case "$(uname -m)" in
alpha*) asm_link=alpha ;;
ppc*) asm_link=powerpc ;;
s390*) asm_link=s390 ;;
ia64) asm_link=ia64 ;;
*arm*) asm_link=arm ;;
parisc) asm_link=parisc ;;
*mips*) asm_link=mips ;;
sparc*) asm_link=sparc ;;
*) asm_link=x86 ;;
esac
if test -L usr/include/asm
then
case "$(readlink usr/include/asm)" in
*../src/linux/include*)
echo "/usr/include/asm points to kernel-source, waiting for triggerpostun to symlink to asm-$asm_link"
rm -fv usr/include/asm
exit 0
;;
esac
: symlink is ok, update it below in case of an arch change
elif test -d usr/include/asm
then
echo "/usr/include/asm is a directory, waiting for triggerpostun to symlink to asm-$asm_link"
exit 0
fi
ln -sfn asm-$asm_link usr/include/asm
exit 0
%triggerpostun -- linux-kernel-headers < 2.6.22 , glibc-devel < 2.5, libc < 2.2
asm_link=
case "$(uname -m)" in
alpha*) asm_link=alpha ;;
ppc*) asm_link=powerpc ;;
s390*) asm_link=s390 ;;
ia64) asm_link=ia64 ;;
*arm*) asm_link=arm ;;
parisc) asm_link=parisc ;;
*mips*) asm_link=mips ;;
sparc*) asm_link=sparc ;;
*) asm_link=x86 ;;
esac
ln -sfn asm-$asm_link usr/include/asm
exit 0
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_prefix}/include/*
%ghost %{_prefix}/include/asm
%changelog

0
ready Normal file
View File