[haiku-bugs] Re: [Haiku] #10041: [PM] cannot override 'system' driver

  • From: "ttcoder" <trac@xxxxxxxxxxxx>
  • Date: Wed, 02 Oct 2013 11:38:13 -0000

#10041: [PM] cannot override 'system' driver
-------------------------+-----------------------------------
   Reporter:  ttcoder    |      Owner:  nobody
       Type:  bug        |     Status:  new
   Priority:  normal     |  Milestone:  R1
  Component:  - General  |    Version:  R1/Package Management
 Resolution:             |   Keywords:
 Blocked By:             |   Blocking:
Has a Patch:  0          |   Platform:  All
-------------------------+-----------------------------------

Comment (by ttcoder):

 Giving up for now.. Here's the latest..

 {{{
 Welcome to the Haiku shell.

 ~/Desktop> package create -C hda_new_package/ hda2.hpkg
 ----- Package Info ----------------
 header size:                     80
 heap size:                    30391
 TOC size:                      1377
 package attributes size:        127
 total size:                   30471
 -----------------------------------
 ~/Desktop> package list hda2.hpkg
 package-attributes:
         name: hda2
         summary: hda multi
         description: hda patched to provide multiple outputs/jacks
         vendor: hda2
         packager: ttcoder
         flags:
                 system_package
         architecture: x86_gcc2
         version: 1.0-1
         copyright: unknown
         license: MIT
         provides: hda
         replaces: hda
 add-ons                                  0  2013-10-02 12:50:28  drwxr-
 xr-x
   kernel                                 0  2013-10-02 12:50:46  drwxr-
 xr-x
     drivers                              0  2013-10-02 13:07:56  drwxr-
 xr-x
       bin                                0  2013-10-02 12:50:28  drwxr-
 xr-x
         hda                          71595  2012-11-17 01:03:01  -rwxr-
 xr-x
       dev                                0  2013-10-02 13:08:01  drwxr-
 xr-x
         audio                            0  2013-10-02 13:08:07  drwxr-
 xr-x
           hmulti                         0  2013-10-02 13:08:15  drwxr-
 xr-x
             hda                          0  2013-09-30 18:40:43
 lrwxrwxrwx  -> ../../../bin/hda
 .PackageInfo                           243  2013-10-02 13:34:53  -rw-r--
 r--
 ~/Desktop> mv hda2.hpkg /system/packages/
 ~/Desktop> pkgman search hda
 Installed  Name  Description
 ----------------------------
 system     hda2  hda multi
 ~/Desktop> ll /system/add-ons/kernel/drivers/bin/hda
 -r-xr-xr-x 1 user root 55939 2013-09-22 03:59 /system/add-
 ons/kernel/drivers/bin/hda
 ~/Desktop> echo argh, still not overriden
 argh, still not overriden
 ~/Desktop>

 }}}


 Also tried...
 - rebooting
 - using "freshens", or even "conflicts", instead of {{{replaces}}}

 But nothing changes the mtime of the "hda" system file...

 If we're lucky, I just missed (yet another) trick in .PackageInfo and
 someone will point it out..

 If we're unlucky it's actually impossible to update drivers on an existing
 hrev and driver development now requires rebuilding a whole haiku
 distribution, but I'd be shocked ;-)

--
Ticket URL: <http://dev.haiku-os.org/ticket/10041#comment:9>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: