Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 178208 - dev-libs/klibc-1.4.13 sandbox violation
Summary: dev-libs/klibc-1.4.13 sandbox violation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Christian Heim (RETIRED)
URL:
Whiteboard:
Keywords:
: 178363 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-12 14:52 UTC by Dmitry B
Modified: 2007-05-13 19:48 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry B 2007-05-12 14:52:14 UTC
Upgrading from [1.2.1-r2] to [1.4.13].

Error message:

...
>>> Source compiled.
>>> Test phase [not enabled]: dev-libs/klibc-1.4.13

>>> Install klibc-1.4.13 into /var/tmp/portage/dev-libs/klibc-1.4.13/image/ category dev-libs
  INSTALL headers + man pages to /var/tmp/portage/dev-libs/klibc-1.4.13/image//usr/lib/klibc
  INSTALL binaries to /var/tmp/portage/dev-libs/klibc-1.4.13/image//usr/lib/klibc/bin
  INSTALL usr/dash/sh.shared
  INSTALL usr/gzip/gzip usr/gzip/gunzip usr/gzip/zcat
  INSTALL usr/kinit/fstype/shared/fstype
  INSTALL usr/kinit/ipconfig/shared/ipconfig
  INSTALL usr/kinit/nfsmount/shared/nfsmount
  INSTALL usr/kinit/resume/shared/resume
  INSTALL usr/kinit/run-init/shared/run-init
  INSTALL usr/kinit/kinit usr/kinit/kinit.shared
  INSTALL klibc to /var/tmp/portage/dev-libs/klibc-1.4.13/image//usr/lib/klibc/lib
  INSTALL usr/utils/shared/chroot usr/utils/shared/dd usr/utils/shared/mkdir usr/utils/shared/mkfifo usr/utils/shared/mknod usr/utils/shared/mount usr/utils/shared/pivot_root usr/utils/shared/umount usr/utils/shared/true usr/utils/shared/false usr/utils/shared/sleep usr/utils/shared/ln usr/utils/shared/nuke usr/utils/shared/minips usr/utils/shared/cat usr/utils/shared/insmod usr/utils/shared/uname usr/utils/shared/halt usr/utils/shared/kill usr/utils/shared/reboot usr/utils/shared/poweroff
ACCESS DENIED  chmod:     /usr/lib/klibc/include/linux/dvb/ca.h
chmod: changing permissions of `/usr/lib/klibc/include/linux/dvb/ca.h': Permission denied
ACCESS DENIED  chmod:     /usr/lib/klibc/include/linux/dvb/Kbuild
chmod: changing permissions of `/usr/lib/klibc/include/linux/dvb/Kbuild': Permission denied

...


/var/log/sandbox/sandbox-dev-libs_-_klibc-1.4.13-31841.log

Reproducible: Always

Steps to Reproduce:
1. emerge --sync
2. emerge -uD world
Comment 2 Roland Tapken 2007-05-13 10:32:28 UTC
Same problem here. Looks like a result of this (from the install-section of the ebuild):

  # Fix the permissions (bug #178053) on /usr/$(get_libdir)/klibc/include/linux
  # Actually I have no idea, why the includes have those weird-ass permissions
  # or a particular system, might be due to inherited permissions from parent
  # directory

  find /usr/$(get_libdir)/klibc/include/linux -type f | xargs chmod 0644
Comment 3 Roland Tapken 2007-05-13 11:03:56 UTC
Ebuild compiles fine without this find-Command. I guess bug #178053 should be opened again.
Comment 4 Christian Heim (RETIRED) gentoo-dev 2007-05-13 11:22:58 UTC
Just committed a fix for this, I introduced w/ fixing #178053 (note to self: always use ${D} as prefix in src_install).
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-05-13 16:14:24 UTC
*** Bug 178363 has been marked as a duplicate of this bug. ***
Comment 6 Flavio 2007-05-13 16:28:15 UTC
(In reply to comment #5)
> *** Bug 178363 has been marked as a duplicate of this bug. ***
> 

Hello, I'm sorry for the duplicate. Search engine didn't show any result about it, so I opened a new bug report.

Anyway.. I tried to do find /usr/$(get_libdir)/klibc/include/linux -type f | xargs chmod 0644

No way to solve my problem.. What's the real solution to that bug?
Comment 7 Flavio 2007-05-13 16:39:23 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > *** Bug 178363 has been marked as a duplicate of this bug. ***
> > 
> 
> Hello, I'm sorry for the duplicate. Search engine didn't show any result about
> it, so I opened a new bug report.
> 
> Anyway.. I tried to do find /usr/$(get_libdir)/klibc/include/linux -type f |
> xargs chmod 0644
> 
> No way to solve my problem.. What's the real solution to that bug?
> 

I also tried to do
find /usr/$(get_libdir)/klibc/include | xargs chmod o+rX
but, I can't fix it as you say.
Comment 8 Roland Tapken 2007-05-13 19:48:44 UTC
The find command is not the solution but the problem. You don't have to execute it, it is inside the dev-libs/klibc/klibc-1.4.13.ebuild. Comment #4 said a fix is commited, so it should be sufficient to sync your portage again.