Bug 154753 - rpmbuild of kernel-2.6.11-1.1236_FC4 fails: System.map O_RDONLY
rpmbuild of kernel-2.6.11-1.1236_FC4 fails: System.map O_RDONLY
Product: Fedora
Classification: Fedora
Component: kernel (Show other bugs)
powerpc Linux
medium Severity medium
: ---
: ---
Assigned To: Dave Jones
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2005-04-13 18:51 EDT by John Reiser
Modified: 2015-01-04 17:18 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-10-27 20:10:54 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
strace output from depmod (1.73 KB, text/plain)
2005-04-13 18:54 EDT, John Reiser
no flags Details

  None (edit)
Description John Reiser 2005-04-13 18:51:22 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.2) Gecko/20040308

Description of problem:
"rpmbuild -bc --target ppc kernel-2.6.spec" fails at step:
make ARCH=ppc INSTALL_MOD_PATH=/var/tmp/kernel-2.6.11-1.1236_FC4.jreiser-root
modules_install KERNELRELEASE=2.6.11-1.1236_FC4.jreiser

The commandline which fails is:
if [ -r System.map -a -x /sbin/depmod ]; then /sbin/depmod -ae -F System.map -b
/var/tmp/kernel-2.6.11-1.1236_FC4.jreiser-root -r 2.6.11-1.1236_FC4.jreiser; fi
make: *** [_modinst_post] Error 1

Re-running that command from the BUILD/kernel-2.6.11/linux-2.6.11 directory using 'strace' shows:
  open("System.map", O_RDONLY)            = -1 EACCES (Permission denied)

This does not make sense.  The file
exists, has permissions -rw-r--r--, has attributes ("lsattr") of "-------------".  SELinux is in targeted, enforcing mode; there are no relevant "avc" lines in /var/log/messages.

$HOME/.rpmmacros has:
%packager %(echo $USER)
%_topdir %(echo "$HOME")/rpmbuild

This entire behavior repeats under kernel-2.6.11-1.1236_FC4 and kernel-2.6.11-1.1238_FC4  (note: ARCH is ppc).

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. rpm --install kernel-2.6.11-1.1236_FC4.src.rpm
2. cd $HOME/rpmbuild/SPECS
3. change to "buildsmp 0", both at top level and in "%ifarch ppc".
4. rpmbuild -bc --target ppc kernel-2.6.spec >rpm.out 2>&1


Actual Results:  rpmbuild fails as in Description above: "make ... modules_install ..." exits with status 1; the depmod fails.

Expected Results:  Entire rpmbuild should have succeeded.

Additional info:

Complete 27 lines output from strace will be attached.
Comment 1 John Reiser 2005-04-13 18:54:12 EDT
Created attachment 113127 [details]
strace output from depmod

Note: ARCH is ppc.
Comment 2 Jeff Johnson 2005-10-25 18:58:00 EDT
This is a kernel packaging, not an rpm, problem.
Comment 3 Dave Jones 2005-10-25 22:52:37 EDT
is this still happening with latest packages ?
Comment 4 John Reiser 2005-10-26 15:48:54 EDT
"rpmbuild -ba --target ppc kernel-2.6.spec" for kernel-2.6.13-1.1532 builds OK
on ppc.
Comment 5 Dave Jones 2005-10-27 20:10:54 EDT
strange. no idea what fixed that one.   thanks for retesting anyway.

Note You need to log in before you can comment on or make changes to this bug.