Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 408249 - app-portage/eix-0.25.3 file collision /var/cache/eix
Summary: app-portage/eix-0.25.3 file collision /var/cache/eix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Martin Väth
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-15 01:21 UTC by Samuli Suominen (RETIRED)
Modified: 2012-03-15 03:59 UTC (History)
1 user (show)

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


Attachments
build.log (app-portage:eix-0.25.3:20120315-010554.log,17.01 KB, text/plain)
2012-03-15 01:21 UTC, Samuli Suominen (RETIRED)
Details
Provide migration path (foo.patch,496 bytes, patch)
2012-03-15 03:13 UTC, Samuli Suominen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Samuli Suominen (RETIRED) gentoo-dev 2012-03-15 01:21:57 UTC
Created attachment 305405 [details]
build.log

[ebuild     U  ] app-portage/eix-0.25.3 [0.25.0] USE="dep nls -debug -doc -optimization -security -sqlite -strong-optimization -tools -zsh-completion" 0 kB

>>> Installing (1 of 1) app-portage/eix-0.25.3
 * checking 19 files for package collisions
 * This package will overwrite one or more files that may belong to other
 * packages (see list below). You can use a command such as `portageq
 * owners / <filename>` to identify the installed package that owns a
 * file. If portageq reports that only one package owns a file then do
 * NOT file a bug report. A bug report is only useful if it identifies at
 * least two or more packages that are known to install the same file(s).
 * If a collision occurs and you can not explain where the file came from
 * then you should simply ignore the collision since there is not enough
 * information to determine if a real problem exists. Please do NOT file
 * a bug report at http://bugs.gentoo.org unless you report exactly which
 * two packages install the same file(s). Once again, please do NOT file
 * a bug report unless you have completely understood the above message.
 * 
 * package app-portage/eix-0.25.3 NOT merged
 * 
 * Detected file collision(s):
 * 
 * 	/var/cache/eix
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * None of the installed packages claim the file(s).
 * 
 * Package 'app-portage/eix-0.25.3' NOT merged due to file collisions. If
 * necessary, refer to your elog messages for the whole content of the
 * above message.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2012-03-15 01:30:16 UTC
-rw-rw-r-- 1 portage portage 5332298 Mar 15 02:01 /var/cache/eix

rm -f it -> update -> now it's a directory in 0.25.3.  but eix's ebuild should take care of the old cache file, propably punt it from pkg_preinst() to allow succesful emerge.
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-03-15 02:28:35 UTC
(In reply to comment #1)
> -rw-rw-r-- 1 portage portage 5332298 Mar 15 02:01 /var/cache/eix
> 
> rm -f it -> update -> now it's a directory in 0.25.3.  but eix's ebuild
> should take care of the old cache file, propably punt it from pkg_preinst()
> to allow succesful emerge.

1) known. 2) Questionable on the proper way to do it. Suggestions? Patch?

*eix-0.25.3 (14 Mar 2012)

  14 Mar 2012; Jeremy Olexa <darkside@gentoo.org> +eix-0.25.3.ebuild:
  Version bump from upstream. Due to filesystem layout changes, there WILL be a
  file collision for /var/cache/eix. It is safe to remove this file and then
  regenerate it with 'eix-update'
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2012-03-15 03:13:25 UTC
Created attachment 305417 [details, diff]
Provide migration path
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2012-03-15 03:17:53 UTC
(In reply to comment #3)
> Created attachment 305417 [details, diff] [details, diff]
> Provide migration path

bah, just drop the ebegin/eend crap from this one and it's good enough imho
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-03-15 03:46:54 UTC
Ok, thanks.

+  15 Mar 2012; Jeremy Olexa <darkside@gentoo.org> eix-0.25.3.ebuild:
+  Add file collision avoidance logic by Samuli Suominen in bug 408249
Comment 6 ScytheMan 2012-03-15 03:57:03 UTC
Would it make sense to delete /var/cache/eix.previous, too? It's handled in /var/cache/eix/

Otherwise this would create another orphaned file in filesystem.
Comment 7 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-03-15 03:59:56 UTC
(In reply to comment #6)
> Would it make sense to delete /var/cache/eix.previous, too? It's handled in
> /var/cache/eix/
> 
> Otherwise this would create another orphaned file in filesystem.

Not critical & already handled.

pkg_postinst() {
    # fowners in src_install doesn't work for owner/group portage:
    # merging changes this owner/group back to root.
    use prefix || chown portage:portage "${EROOT}var/cache/${PN}"
    local obs="${EROOT}var/cache/eix.previous"
    ! test -f "${obs}" || ewarn "Found obsolete ${obs}, please remove it"
}