Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 364483 - [x11 overlay] xorg-server destroys driver files in pkg_postrm
Summary: [x11 overlay] xorg-server destroys driver files in pkg_postrm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-22 13:05 UTC by Julien Durillon
Modified: 2011-04-22 15:49 UTC (History)
2 users (show)

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


Attachments
Fixes the unwanted removal (0001-Fix-annoying-driver-removal-bug.patch,1.07 KB, patch)
2011-04-22 13:06 UTC, Julien Durillon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Julien Durillon 2011-04-22 13:05:38 UTC
I'm using xorg-server-9999::x11

My problem is the following:

During the pkg_postrm, there is 

    if [[ -z ${REPLACED_BY} && -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]]; then
        rm -rf "${ROOT}"/usr/$(get_libdir)/xorg/modules
    fi

Apparently, Tomas Chvatal (Yeah, git blamed him…) wrote REPLACED_BY instead of REPLACED_BY_VERSION.
Comment 1 Julien Durillon 2011-04-22 13:06:05 UTC
Created attachment 270867 [details, diff]
Fixes the unwanted removal
Comment 2 Julien Durillon 2011-04-22 13:07:10 UTC
Also, please fix http://devmanual.gentoo.org/ebuild-writing/eapi/index.html#variables to put REPLACED_BY by REPLACED_BY_VERSION.