First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 91733
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: SpanKY <vapier@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: John Mylchreest (RETIRED) <johnm@gentoo.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 91733 depends on: Show dependency tree
Bug 91733 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-05-06 13:23 0000
The following code is in the svgalib ebuild, although it should probably check
the udev version as well, and install a rules.d file if its newer or equal to
than 052.

if [[ -e ${ROOT}/dev/.devfsd ]] ; then
                insinto /etc/devfs.d
                newins "${FILESDIR}"/svgalib.devfs svgalib
        elif [[ -e ${ROOT}/dev/.udev ]] ; then
                dodir /etc/udev/permissions.d
                echo "svga*:root:video:0660" > \
                        "${D}"/etc/udev/permissions.d/30-${PN}.permissions
        fi


Could I maybe suggest something like this?

elif [[ -e ${ROOT}/dev/.udev ]] ; then
    version=`udevinfo -V`
    version=${version//* }
    if [[ ${version} -ge 052 ]]; then
        dodir /etc/udev/rules.d
        echo "KERNEL="svga*", NAME="%k", MODE="0660" \
            "${D}"/etc/udev/rules.d/30-${PN}.rules
    else
        dodir /etc/udev/permissions.d
        echo "svga*:root:video:0660" > \
            "${D}"/etc/udev/permissions.d/30-${PN}.permissions
    fi
fi


although, might I add this isnt tested :)

Reproducible: Always
Steps to Reproduce:

------- Comment #1 From SpanKY 2005-05-07 01:12:50 0000 -------
ive cleaned up the ebuild to check the portage way (best_version udev) and
install rules.d / permissions.d files accordingly, thanks

side note, your quoting is wrong, it should be:
echo 'KERNEL="svga*" ...'

------- Comment #2 From John Mylchreest (RETIRED) 2005-05-07 04:04:53 0000 -------
yeah I noticed once I posted it :) Missing > too.
Just wrote it into the bug on the fly.

Cheers.

First Last Prev Next    No search results available      Search page      Enter new bug