On 22/11/13 16:01 , "Łukasz Stelmach" <[email protected]> wrote:
>It was <2013-11-22 pią 13:34>, when Kanevskiy, Alexander wrote: >> On 22/11/13 11:07 , "Łukasz Stelmach" <[email protected]> wrote: >> >>>It was <2013-11-22 pią 06:42>, when Dong, Junfeng wrote: >>> >>>> I submitted the change of "Removed prepackages section of RD-PQ" >>> >>>My investigation led me to a conclusion that we need the %prepackages >>>section containing setup and filesystem packages. >>> >>>https://review.tizen.org/gerrit/12480 >> >> >> what exactly require packages to be installed with ignoring >>dependencies ? > >It is the way the dependency solver works. If a package without >dependencies (or with very weak ones) appears like boost-license, >terminfo-hwbase or hwdata we can't guaratee it won't be installed before >the setup and filesystem packages although it MUST NOT. Fortunately, >now, neither of the three packages has any files in /bin, /sbin, /lib or >other directories provided as symbolic links by the filesystem package. > > > If a package with a file in one of these directories is installed > BEFORE the filesystem package, the directory won't be symlinked and > an image ends up with separate /bin and /usr/bin, /sbin and > /usr/sbin and so on. this is clearly a bug in those packages that are lacking dependencies that needs to be exposed and fixed. > > >To prevent this from happening we can: > >1. Make all pacakge maintainers aware of the problem and hope they will >add dependency on the filesystem package if they provide anything in >/bin. (IMHO this is the least reliable solution). IMO, this is the best way. it should be explicit hierarchy of dependencies between packages. If package provides some file in directory hierarchy that this package doesn’t own (e.g. */bin), then it should be dependencies to components that provides those directories. Implicit dependency declaration (like in debbootstrap) is just a way to hide problem, not to solve them. > >2. Add filesystem as a dependency automatically to every package. >(I don't know if it is a good idea, it *might* incur a performance hit >to solver.) > >3. Use prepackages the same way debian has hardcoded a few package names >in its debootstrap scripts. > >I will be more than glad to here any fourth option I have missed. > >-- >Łukasz Stelmach >Samsung R&D Institute Poland >Samsung Electronics > -- Best regards, Alexander Kanevskiy. --------------------------------------------------------------------- Intel Finland Oy Registered Address: PL 281, 00181 Helsinki Business Identity Code: 0357606 - 4 Domiciled in Helsinki This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. _______________________________________________ Dev mailing list [email protected] https://lists.tizen.org/listinfo/dev
