Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 129160 Details for
Bug 190179
[patch] portage fails package checksum verifications when sys-devel/prelink is enabled, if not running as root
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to fix the problem (use "prelink --verify > tmpfile" instead of "prelink --undo -o tmpfile")
portage-2.1.2.12-prelink-cksum.patch (text/plain), 1.17 KB, created by
Israel G. Lugo
on 2007-08-25 14:59:15 UTC
(
hide
)
Description:
patch to fix the problem (use "prelink --verify > tmpfile" instead of "prelink --undo -o tmpfile")
Filename:
MIME Type:
Creator:
Israel G. Lugo
Created:
2007-08-25 14:59:15 UTC
Size:
1.17 KB
patch
obsolete
>Only in portage-2.1.2.12-prelink-cksum: .ChangeLog.swp >diff -durp portage-2.1.2.12/pym/portage_checksum.py portage-2.1.2.12-prelink-cksum/pym/portage_checksum.py >--- portage-2.1.2.12/pym/portage_checksum.py 2007-07-30 03:33:22.000000000 +0100 >+++ portage-2.1.2.12-prelink-cksum/pym/portage_checksum.py 2007-08-25 15:56:04.000000000 +0100 >@@ -190,14 +190,16 @@ def perform_checksum(filename, hashname= > mylock = portage_locks.lockfile(prelink_tmpfile, wantnewlockfile=1) > # Create non-prelinked temporary file to checksum. > # Files rejected by prelink are summed in place. >+ tmpfile_fd = os.open(prelink_tmpfile, os.O_CREAT | os.O_RDWR) > try: >- retval = portage_exec.spawn([PRELINK_BINARY, "--undo", "-o", >- prelink_tmpfile, filename], fd_pipes={}) >+ retval = portage_exec.spawn([PRELINK_BINARY, "--verify", >+ filename], fd_pipes={1:tmpfile_fd}) > if retval == os.EX_OK: > myfilename = prelink_tmpfile > except portage_exception.CommandNotFound: > # This happens during uninstallation of prelink. > prelink_capable = False >+ os.close(tmpfile_fd) > try: > if hashname not in hashfunc_map: > raise portage_exception.DigestException(hashname + \
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 190179
: 129160 |
131800