Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 355163 - =media-gfx/nvidia-cg-toolkit-2.1.0012 doins failed
Summary: =media-gfx/nvidia-cg-toolkit-2.1.0012 doins failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-16 10:24 UTC by Agostino Sarubbo
Modified: 2012-11-28 21:44 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 Agostino Sarubbo gentoo-dev 2011-02-16 10:24:56 UTC
>>> Emerging (4 of 5) media-gfx/nvidia-cg-toolkit-2.1.0012
 * Cg-2.1_October2008_x86_64.tgz RMD160 SHA1 SHA256 size ;-) ...                                    [ ok ]
 * Package:    media-gfx/nvidia-cg-toolkit-2.1.0012
 * Repository: gentoo
 * Maintainer: graphics@gentoo.org
 * USE:  amd64 elibc_glibc kernel_linux multilib test userland_GNU
>>> Unpacking source...
>>> Unpacking Cg-2.1_October2008_x86_64.tgz to /tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/work
>>> Source unpacked in /tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/work
>>> Compiling source in /tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/work ...
 * Nothing to compile.
>>> Source compiled.
>>> Test phase [none]: media-gfx/nvidia-cg-toolkit-2.1.0012

>>> Install nvidia-cg-toolkit-2.1.0012 into /tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/image/ category media-gfx
doins failed
doins failed
>>> Completed installing nvidia-cg-toolkit-2.1.0012 into /tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/image/
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2012-11-15 21:44:17 UTC
unreproducable. Any idea what happens?
Comment 2 Agostino Sarubbo gentoo-dev 2012-11-15 22:57:16 UTC
(In reply to comment #1)
> unreproducable. Any idea what happens?

reproducible in other systems.

It fails the doins in the for, not the other.
Comment 3 Heinrich Götzger 2012-11-22 16:47:51 UTC
Still not compiling:

# emerge media-gfx/nvidia-cg-toolkit
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) media-gfx/nvidia-cg-toolkit-2.1.0012
 * Cg-2.1_October2008_x86_64.tgz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                               [ ok ]
>>> Unpacking source...
>>> Unpacking Cg-2.1_October2008_x86_64.tgz to /var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/work
>>> Source unpacked in /var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/work
>>> Compiling source in /var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/work ...
>>> Source compiled.
>>> Test phase [not enabled]: media-gfx/nvidia-cg-toolkit-2.1.0012

>>> Install nvidia-cg-toolkit-2.1.0012 into /var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/image/ category media-gfx
doins failed
 * ERROR: media-gfx/nvidia-cg-toolkit-2.1.0012 failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called src_install
 *   environment, line 2209:  Called die
 * The specific snippet of code:
 *           doins "${dir}"/* || die;
 * 
 * If you need support, post the output of `emerge --info '=media-gfx/nvidia-cg-toolkit-2.1.0012'`,
 * the complete build log and the output of `emerge -pqv '=media-gfx/nvidia-cg-toolkit-2.1.0012'`.
 * The complete build log is located at '/var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/temp/environment'.
 * Working directory: '/var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/work/usr/local/Cg/examples'
 * S: '/var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/work'

>>> Failed to emerge media-gfx/nvidia-cg-toolkit-2.1.0012, Log file:

>>>  '/var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/temp/build.log'


Need more input? Is reproducable always.

Thanks & cheers

Heinrich
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2012-11-22 16:50:45 UTC
Why does it work for me and not for you?
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2012-11-22 21:56:04 UTC
+  22 Nov 2012; Justin Lecher <jlec@gentoo.org>
+  nvidia-cg-toolkit-2.1.0012.ebuild:
+  Fix installation of examples, #355163
+

Found it.
Comment 6 Heinrich Götzger 2012-11-23 14:27:34 UTC
Hi Justin,

thanks for your fix, doins is not a problem any more.


I'm very sorry, but now there is following output:

 # emerge media-gfx/nvidia-cg-toolkit 
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) media-gfx/nvidia-cg-toolkit-2.1.0012
 * Cg-2.1_October2008_x86_64.tgz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                                                                                                                [ ok ]
>>> Unpacking source...
>>> Unpacking Cg-2.1_October2008_x86_64.tgz to /var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/work
>>> Source unpacked in /var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/work
>>> Compiling source in /var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/work ...
>>> Source compiled.
>>> Test phase [not enabled]: media-gfx/nvidia-cg-toolkit-2.1.0012

>>> Install nvidia-cg-toolkit-2.1.0012 into /var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/image/ category media-gfx
ACCESS DENIED  rename:       /usr/share/doc/nvidia-cg-toolkit-2.1.0012
mv: cannot move 'usr/local/Cg/examples' to '/usr/share/doc/nvidia-cg-toolkit-2.1.0012/': Permission denied
>>> Completed installing nvidia-cg-toolkit-2.1.0012 into /var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/image/

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-26088.log"

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: rename
S: deny
P: /usr/share/doc/nvidia-cg-toolkit-2.1.0012/
A: /usr/share/doc/nvidia-cg-toolkit-2.1.0012
R: /usr/share/doc/nvidia-cg-toolkit-2.1.0012
C: mv usr/local/Cg/examples /usr/share/doc/nvidia-cg-toolkit-2.1.0012/ 
--------------------------------------------------------------------------------

>>> Failed to emerge media-gfx/nvidia-cg-toolkit-2.1.0012, Log file:

>>>  '/var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/temp/build.log'


Is this input for a new ticket?

What can I do to get it running on my system or to give more information?

I tried:

# ll -d /usr/share/doc
drwxr-xr-x 1261 root root 61440 Nov 22 11:35 /usr/share/doc

and:
# mkdir /usr/share/doc/nvidia-cg-toolkit-2.1.0012

check:
# ls -lrta /usr/share/doc/nvidia-cg-toolkit-2.1.0012      
total 68
drwxr-xr-x 1262 root root 61440 Nov 23 14:20 ..
drwxr-xr-x    2 root root  4096 Nov 23 14:25 .


then I got:
# emerge media-gfx/nvidia-cg-toolkit 
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) media-gfx/nvidia-cg-toolkit-2.1.0012
 * Cg-2.1_October2008_x86_64.tgz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                                                                                                                [ ok ]
>>> Unpacking source...
>>> Unpacking Cg-2.1_October2008_x86_64.tgz to /var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/work
>>> Source unpacked in /var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/work
>>> Compiling source in /var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/work ...
>>> Source compiled.
>>> Test phase [not enabled]: media-gfx/nvidia-cg-toolkit-2.1.0012

>>> Install nvidia-cg-toolkit-2.1.0012 into /var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/image/ category media-gfx
ACCESS DENIED  rename:       /usr/share/doc/nvidia-cg-toolkit-2.1.0012/examples
mv: cannot move 'usr/local/Cg/examples' to '/usr/share/doc/nvidia-cg-toolkit-2.1.0012/examples': Permission denied
>>> Completed installing nvidia-cg-toolkit-2.1.0012 into /var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/image/

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-28476.log"

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: rename
S: deny
P: /usr/share/doc/nvidia-cg-toolkit-2.1.0012/examples
A: /usr/share/doc/nvidia-cg-toolkit-2.1.0012/examples
R: /usr/share/doc/nvidia-cg-toolkit-2.1.0012/examples
C: mv usr/local/Cg/examples /usr/share/doc/nvidia-cg-toolkit-2.1.0012/ 
--------------------------------------------------------------------------------

>>> Failed to emerge media-gfx/nvidia-cg-toolkit-2.1.0012, Log file:

>>>  '/var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/temp/build.log'

emerge has been started by user root.

Thanks & cheers

Heinrich
Comment 7 Justin Lecher (RETIRED) gentoo-dev 2012-11-23 14:45:45 UTC
I will look into that.
Comment 8 Ian 2012-11-28 17:23:23 UTC
I can confirm the new behaviour regarding the mv error.  Fresh install, amd64.
Comment 9 Ian 2012-11-28 18:12:51 UTC
I'm impatient, so I avoided this problem by emerging this one package with FEATURES="-sandbox" on the commandline.

I'm not a ebuild maintainer, but it is clearly a sandbox problem.  I suspect that the final dodir command not matching the mv destination directory is the culprit, but I'm just guessing and don't have the time to setup a proper overlay to test.
Comment 10 Justin Lecher (RETIRED) gentoo-dev 2012-11-28 18:34:58 UTC
oh, shit. I totally forgot this bug.
Comment 11 Justin Lecher (RETIRED) gentoo-dev 2012-11-28 18:44:04 UTC
+  28 Nov 2012; Justin Lecher <jlec@gentoo.org>
+  nvidia-cg-toolkit-2.1.0012.ebuild:
+  EAPI=0 doesn't know about ED
+
Comment 12 Heinrich Götzger 2012-11-28 20:25:38 UTC
Now it's installing. Thanks a lot!

# emerge media-gfx/nvidia-cg-toolkit
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) media-gfx/nvidia-cg-toolkit-2.1.0012
 * Cg-2.1_October2008_x86_64.tgz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                             [ ok ]
>>> Unpacking source...
>>> Unpacking Cg-2.1_October2008_x86_64.tgz to /var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/work
>>> Source unpacked in /var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/work
>>> Compiling source in /var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/work ...
>>> Source compiled.
>>> Test phase [not enabled]: media-gfx/nvidia-cg-toolkit-2.1.0012

>>> Install nvidia-cg-toolkit-2.1.0012 into /var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/image/ category media-gfx
mv: cannot move 'usr/local/Cg/examples' to '/var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/image//usr/share/doc/nvidia-cg-toolkit-2.1.0012/examples': Directory not empty
>>> Completed installing nvidia-cg-toolkit-2.1.0012 into /var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/image/

ecompressdir: bzip2 -9 /usr/share/man

 * QA Notice: The following shared libraries lack a SONAME
 * /usr/lib64/libCg.so
 * /usr/lib64/libCgGL.so

making executable: usr/lib64/libCg.so
making executable: usr/lib64/libCgGL.so

>>> Installing (1 of 1) media-gfx/nvidia-cg-toolkit-2.1.0012

>>> Recording media-gfx/nvidia-cg-toolkit in "world" favorites file...
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.



but this line might be interesting:

mv: cannot move 'usr/local/Cg/examples' to '/var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/image//usr/share/doc/nvidia-cg-toolkit-2.1.0012/examples': Directory not empty
Comment 13 Justin Lecher (RETIRED) gentoo-dev 2012-11-28 20:32:50 UTC
   28 Nov 2012; Justin Lecher <jlec@gentoo.org>
   nvidia-cg-toolkit-2.1.0012.ebuild:
+  Fix last block during move of examples
+
Comment 14 Heinrich Götzger 2012-11-28 21:44:24 UTC
Thanks you very much for the very quick fix!

# emerge  media-gfx/nvidia-cg-toolkit                        
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) media-gfx/nvidia-cg-toolkit-2.1.0012
 * Cg-2.1_October2008_x86_64.tgz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                             [ ok ]
>>> Unpacking source...
>>> Unpacking Cg-2.1_October2008_x86_64.tgz to /var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/work
>>> Source unpacked in /var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/work
>>> Compiling source in /var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/work ...
>>> Source compiled.
>>> Test phase [not enabled]: media-gfx/nvidia-cg-toolkit-2.1.0012

>>> Install nvidia-cg-toolkit-2.1.0012 into /var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/image/ category media-gfx
>>> Completed installing nvidia-cg-toolkit-2.1.0012 into /var/tmp/portage/media-gfx/nvidia-cg-toolkit-2.1.0012/image/

ecompressdir: bzip2 -9 /usr/share/man

 * QA Notice: The following shared libraries lack a SONAME
 * /usr/lib64/libCg.so
 * /usr/lib64/libCgGL.so

making executable: usr/lib64/libCg.so
making executable: usr/lib64/libCgGL.so

>>> Installing (1 of 1) media-gfx/nvidia-cg-toolkit-2.1.0012
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.