Summary: | New ebuild for xfce4-hdaps-0.0.5 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Michael Orlitzky <mjo> |
Component: | New packages | Assignee: | XFCE Team <xfce> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://michael.orlitzky.com/code/xfce4-hdaps.php | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Ebuild for xfce4-hdaps-0.0.5.ebuild
ebuild |
Description
Michael Orlitzky
![]() Created attachment 225119 [details]
Ebuild for xfce4-hdaps-0.0.5.ebuild
Hi, I would recommend adding a kernel check for 2.6.28 and warning if something older is being used. Is there a way to *require* (greater than or equal to) a specific kernel version? HDAPSD already spits out a warning in pkg_postinst(), but the user is free to ignore it and render the daemon (and plugin) useless. (In reply to comment #3) > Is there a way to *require* (greater than or equal to) a specific kernel > version? HDAPSD already spits out a warning in pkg_postinst(), but the user is > free to ignore it and render the daemon (and plugin) useless. > linux-info.eclass if kernel_is lt 2 6 28; then echo "do something" fi hint, emerge eclass-manpages man 5 linux-info.eclass less /usr/portage/eclass/linux-info.eclass Yep, that's what HDAPSD is doing. I suppose it's the correct approach, since a newer kernel is really a run-time dependency. I'll re-echo it in my pkg_postinst(). Created attachment 225129 [details]
ebuild
how about this? added missing depends, linux-info usage, debug use flag, ...
Looks good to me. A warning might be more appropriate than an error for the kernel version, but everything else is definitely an improvement. Changed to warning, and committed. Too bad the package is still using the obsolete libxfcegui4... should be using libxfce4ui, but that's another story. thanks! I'll email the author and see if I can get that fixed... |