pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

sysutils/hal



The port sysutils/hal have a problem in i386 and amd64.

The problem shows with pen-drives.

1) if you inser the pen-drive and start hal, it shows the pen drive
	hal-device | grep sd0
2) you remove the pen-drive, hal removes all things relate to 
	the pen-dive including umass
3) when you insert the pen-drive AGAIN, hal does not insert the umass
	so the sd0 does not have a pace to tie, and so does it is not	
	added by the hal logic
4) if you restart hal with the pendrive, it returns to step(1).

Some hal guru is needed... 

Meanwhile the solution is to patch hald in order to NOT remove umass
from the hald storage tree, so the step(3) works

diff -up hald/netbsd/drvctl.c.orig hald/netbsd/drvctl.c
--- hald/netbsd/drvctl.c.orig   2015-01-27 21:09:39.000000000 -0200
+++ hald/netbsd/drvctl.c        2015-01-27 21:12:00.000000000 -0200
@@ -136,6 +136,10 @@ drvctl_dev_add(gchar *name)
 static void
 drvctl_dev_remove(gchar *name)
 {
+       if (!strncmp(name,"umass",5)) {
+               HAL_INFO (("NOT REMOVE dev_remove: %s", name));
+               return;
+       }
        HAL_INFO (("dev_remove: %s", name));
 
        devinfo_remove_branch (name, NULL);





Home | Main Index | Thread Index | Old Index