Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 128693 - udev-089/coldplug blockers needs to be mutual
Summary: udev-089/coldplug blockers needs to be mutual
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Greg Kroah-Hartman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: udev-meta
  Show dependency tree
 
Reported: 2006-04-03 14:17 UTC by Jakub Moc (RETIRED)
Modified: 2006-05-19 16:42 UTC (History)
3 users (show)

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


Attachments
patch to check for stale coldplug init script (and work around nodev-mounted /var) (udev-089-r2.ebuild.diff,2.38 KB, patch)
2006-04-06 02:36 UTC, Jakub Moc (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Moc (RETIRED) gentoo-dev 2006-04-03 14:17:38 UTC
udev-089 blocks <=coldplug-20040920, but not the other way round.

Aany reason why the block is version-specific, btw? This is the only coldplug version in portage. :)
Comment 1 Huanwen Qu 2006-04-03 14:43:21 UTC
I emerged the lastest udev and removed coldplug. From the changelog, we are told that the new udev provides coldplug functionality. But in practice, udev without coldplug did not start my ps2 mouse. So I emerged coldplug again and it worked.
Comment 2 Greg Kroah-Hartman (RETIRED) gentoo-dev 2006-04-03 14:45:14 UTC
If udev doesn't provide the exact same functionality, please file a new bug.

As for why the block is version specific, I just didn't know any better :)

Should I make the block on the coldplug side too?
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-04-03 14:56:29 UTC
(In reply to comment #2)
> As for why the block is version specific, I just didn't know any better :)

I believe just sys-apps/coldplug with no version works fine (not that it'd matter much).
 
> Should I make the block on the coldplug side too?

Yeah, otherwise you can still emerge coldplug after udev. 

BTW, coldplug ebuild should probably rm the installed init script, otherwise uninstalling it doesn't have any effect due to CONFIG_PROTECT (and maybe einfo to rc-update del coldplug?)
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-04-03 15:06:53 UTC
(In reply to comment #3)
> BTW, coldplug ebuild should probably rm the installed init script, otherwise
> uninstalling it doesn't have any effect due to CONFIG_PROTECT (and maybe einfo
> to rc-update del coldplug?)

Erm, uhm... won't work without coldplug version bump (retarded really); would have to be done in udev ebuild instead. 
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-04-06 02:36:33 UTC
Created attachment 84057 [details, diff]
patch to check for stale coldplug init script (and work around nodev-mounted /var)

OK, as requested in Bug 128302, comment Comment #11

- moved creation of devices in /lib/udev/devices to pkg_preinst() so that it doesn't fail w/ nodev-mounted /var
- only create them if they do not already exist
- check for stale coldplug init script and ask user to delete it if it exists
Comment 6 ferret 2006-05-12 01:11:41 UTC
Good patch.  Needs applying.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-05-19 15:13:45 UTC
(In reply to comment #6)
> Good patch.  Needs applying.

Uhm, it's actually applied in 090... :)

Greg, please put the udev blocker into coldplug ebuild so that this bug can be closed. Thanks.
Comment 8 Greg Kroah-Hartman (RETIRED) gentoo-dev 2006-05-19 15:36:26 UTC
(In reply to comment #7)
> Greg, please put the udev blocker into coldplug ebuild so that this bug can be
> closed. Thanks.

You mean to rev the coldplug ebuild to keep it from being installed if udev
is installed?
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-05-19 15:49:56 UTC
(In reply to comment #8)
> You mean to rev the coldplug ebuild to keep it from being installed if udev
> is installed?

Well yeah, I mean:

--- coldplug-20040920.ebuild.orig	2006-05-12 12:08:19.000000000 +0200
+++ coldplug-20040920.ebuild	2006-05-20 00:46:50.000000000 +0200
@@ -18,6 +18,7 @@
 
 # hotplug needs pcimodules utility provided by pcitutils-2.1.9-r1
 DEPEND=">=sys-apps/hotplug-20040920"
+RDEPEND="!>=sys-fs/udev-089"
 
 src_install() {
 	exeinto /etc/init.d

to prevent something like Bug 133668 :=) 
Comment 10 Greg Kroah-Hartman (RETIRED) gentoo-dev 2006-05-19 16:42:18 UTC
thanks, checked in now.