[Tizen-submit] 3795: New package devel:upstream/linux-glibc-devel

noreply at tizen.org noreply at tizen.org
Fri May 3 22:50:22 GMT 2013


Hi,
Adding new package linux-glibc-devel in project devel:upstream. Please review and accept ASAP.

Justification for this new package:

Submitter: Prajwal Mohan <prajwal.karur.mohan at intel.com>
Comments: submit/tizen/20130503.225301
Git project: platform/upstream/linux-glibc-devel
Tag: submit/tizen/20130503.225301
Commit: 0b5acd7 remove patches

Thank You,
Prajwal Mohan

[This message was auto-generated]

---

Request: #3795

  submit:       devel:upstream:build/linux-glibc-devel(cleanup) -> devel:upstream


Message:
Submitter: Prajwal Mohan <prajwal.karur.mohan at intel.com>
Comments: submit/tizen/20130503.225301
Git project: platform/upstream/linux-glibc-devel
Tag: submit/tizen/20130503.225301
Commit: 0b5acd7 remove patches

State:   new        2013-05-03T15:20:53 tizenrobot
Comment: <no comment>
new:
----
  linux-glibc-devel-3.4.tar.bz2
  linux-glibc-devel.spec

spec files:
-----------

++++++ new spec file:
--- linux-glibc-devel.spec
+++ linux-glibc-devel.spec
@@ -0,0 +1,158 @@
+BuildRequires:  fdupes
+
+Name:           linux-glibc-devel
+# this confusing version number has no meaning, it's the version
+# of the Linux kernel where these headers come from
+Version:        3.4.0
+Release:        0
+VCS:        platform/upstream/linux-glibc-devel#submit/tizen/20130503.225301-0-g0b5acd7
+License:        GPL-2.0
+Summary:        Linux headers for userspace development
+# A "-" is not allowed in version
+%define upstream_version 3.4
+Url:            http://www.kernel.org/
+Group:          Development/Libraries/C and C++
+Source:         %{name}-%{upstream_version}.tar.bz2
+Source1:        install_all.sh
+Requires(pre):  coreutils
+Provides:       kernel-headers
+Provides:       linux-kernel-headers = %{version}
+Obsoletes:      linux-kernel-headers < %{version}
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+BuildArch:      noarch
+
+%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-(flavor)-devel, or kernel-syms to pull in all kernel-*-devel,
+packages, instead.
+
+%prep
+%setup -q -n linux-glibc-devel-%{upstream_version}
+
+%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 "Since Linux 2.6, the kernel module build process has been"
+#error "updated such that users building modules should not typically"
+#error "need to specify additional include directories at all."
+#error ""
+#error "To build kernel modules, ensure you have the build environment "
+#error "available either via the kernel-devel and kernel-<flavor>-devel "
+#error "packages or a properly configured kernel source tree."
+#error ""
+#error "Then, modules can be built using:"
+#error "make -C <path> M=$PWD"
+#error ""
+#error "For the currently running kernel there will be a symbolic "
+#error "link pointing to the build environment located at "
+#error "/lib/modules/$(uname -r)/build for use as <path>."
+#error ""
+#error "If you are seeing this message, your environment is "
+#error "not configured properly. "
+#error ""
+#error "Please adjust the Makefile accordingly."
+#error "======================================================="
+#else
+BOGUS
+# Get LINUX_VERSION_CODE and KERNEL_VERSION directly from kernel
+cat usr/include/linux/version.h >> version.h
+cat >> version.h <<-BOGUS
+#endif

Please refer to OBS webUI for more details about this SR.


More information about the Tizen-submit mailing list