Bug 297716

Summary: glibc-devel files conflict with linux-kernel-headers files
Product: [openSUSE] openSUSE 10.3 Reporter: Dirk Mueller <dmueller>
Component: DevelopmentAssignee: Petr Baudis <pbaudis>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Blocker    
Priority: P5 - None CC: lchiquitto, munkiiboi
Version: Alpha 7   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Dirk Mueller 2007-08-06 11:06:07 UTC
blocker until proven that its my local fuckup: 

file /usr/include/scsi/scsi.h from install of glibc-devel-2.6-16 conflicts with file from package linux-kernel-headers-2.6.22-2

 /usr/include/linux/errno.h:4:23: error: asm/errno.h: No such file or directory
Comment 1 Dirk Mueller 2007-08-06 11:06:42 UTC
ls -ld /usr/include/asm
lrwxrwxrwx 1 root root 13 2007-08-06 12:56 /usr/include/asm -> asm-bi-x86_64

this directory doesn't seem to contain errno.h. only asm-i386 has
Comment 2 Olaf Hering 2007-08-06 12:01:19 UTC
my copy has:
asm-arm/errno.h
asm-bi-x86_64/errno.h
asm-generic/errno-base.h
asm-generic/errno.h
asm-i386/errno.h
asm-ia64/errno.h
asm-parisc/errno.h
asm-powerpc/errno.h
asm-s390/errno.h
asm-x86_64/errno.h
linux/errno.h
linux/errqueue.h

Petr, can you apply this change? /usr/include/scsi contains SCSI related constants and also Linux specific kernel interface definitions.


--- glibc.spec 2007-07-27 12:53:02.000000000 +0200
+++ glibc.spec 2007-08-06 13:49:53.000000000 +0200
@@ -407,6 +407,8 @@ mkdir -p $RPM_BUILD_ROOT%{_libdir}/gconv
 touch $RPM_BUILD_ROOT%{_libdir}/gconv/gconv-modules.cache
 # Do not install in parallel, timezone Makefile will fail
 make install_root=$RPM_BUILD_ROOT install -C cc-nptl
+# comes from linux-kernel-headers
+rm -rfv $RPM_BUILD_ROOT/usr/include/scsi
 %ifarch ppc ppc64
 #
 %if %{optimize_power}
Comment 3 Dirk Mueller 2007-08-06 12:24:09 UTC
is there a problem using the sanitized glibc headers? they at least compile, unlike the linux kenrel headers. and the linux kernel headers are not supposed to be used from userspace anyway. 
Comment 4 Olaf Hering 2007-08-06 12:35:00 UTC
The result from make headers_install_all is supposed to be used.
Unpatched.

I will find out if the glibc or the linux-kernel-headers copy has to go.
For the time being, we should use the patch above.
Comment 5 Olaf Hering 2007-08-06 12:57:11 UTC
hch votes for the glibc copy. So leave glibc.spec as is.
Comment 6 Olaf Hering 2007-08-06 13:03:31 UTC
I submitted a new linux-kernel-headers package.
Comment 7 Dirk Mueller 2007-08-06 14:43:39 UTC
only half the bug is fixed
Comment 8 Dirk Mueller 2007-08-06 14:44:35 UTC
ah, nevermind. 
Comment 9 Leonardo Chiquitto 2007-08-06 18:10:03 UTC
*** Bug 297839 has been marked as a duplicate of this bug. ***
Comment 10 Mark Gordon 2007-08-07 14:36:33 UTC
*** Bug 298018 has been marked as a duplicate of this bug. ***
Comment 11 Cristian Rodriguez 2007-08-07 23:12:10 UTC
*** Bug 298264 has been marked as a duplicate of this bug. ***