[elbe-devel] [PATCH v3 1/1] fix version used for dev packages in sdk

Torben Hohn torben.hohn at linutronix.de
Fri Jan 31 16:30:12 CET 2020


On Fri, Jan 31, 2020 at 03:50:30PM +0100, Torben Hohn wrote:
> On Tue, Jan 28, 2020 at 10:21:26AM +0000, Soest Laurent wrote:
> > -dev packages should use the same version as installed packages in the
> > rootfs
> > 
> > Signed-off-by: Laurent Soest <laurent.soest at bernina.com>
> 
> I am not convinced, that this is the best solution, but lets take it for
> now.
> 
> Acked-by: Torben Hohn <torben.hohn at linutronix.de>

and merged to master

Thanks a lot !


> 
> > ---
> >  elbepack/rpcaptcache.py | 18 +++++++++++++++++-
> >  1 file changed, 17 insertions(+), 1 deletion(-)
> > 
> > diff --git a/elbepack/rpcaptcache.py b/elbepack/rpcaptcache.py
> > index 7cc19b9e8..5a1bb01a7 100644
> > --- a/elbepack/rpcaptcache.py
> > +++ b/elbepack/rpcaptcache.py
> > @@ -145,6 +145,9 @@ class RPCAPTCache(InChRootObject):
> >          src_list = [
> >              p.candidate.source_name for p in self.cache if (
> >                  p.is_installed and p.name not in ignore_pkgs)]
> > +        version_dict = {
> > +            p.name: p.candidate.version for p in self.cache if (
> > +                p.is_installed and p.name not in ignore_pkgs)}
> >          # go through all packages, remember package if its source package
> >          # matches one of the installed packages and the binary package is a
> >          # '-dev' package
> > @@ -154,6 +157,12 @@ class RPCAPTCache(InChRootObject):
> >                      s.name.endswith('-dev')))]
> >          for p in dev_list:
> >              if p.name not in ignore_dev_pkgs:
> > +                name_no_suffix = p.name[:-len('-dev')]
> > +                if name_no_suffix in version_dict:
> > +                    version = version_dict[name_no_suffix]
> > +                    candidate = p.versions.get(version)
> > +                    if candidate:
> > +                        p.candidate = candidate
> >                  p.mark_install()
> >          # ensure that the symlinks package will be installed (it's needed for
> >          # fixing links inside the sysroot
> > @@ -168,7 +177,14 @@ class RPCAPTCache(InChRootObject):
> >  
> >          for p in dbgsym_list:
> >              if p in self.cache:
> > -                self.cache[p].mark_install()
> > +                pkg = self.cache[p]
> > +                name_no_suffix = pkg.name[:-len('-dbgsym')]
> > +                if name_no_suffix in version_dict:
> > +                    version = version_dict[name_no_suffix]
> > +                    candidate = pkg.versions.get(version)
> > +                    if candidate:
> > +                        pkg.candidate = candidate
> > +                pkg.mark_install()
> >  
> >      def cleanup(self, exclude_pkgs):
> >          for p in self.cache:
> > -- 
> > 2.17.1
> > 
> > 
> > _______________________________________________
> > elbe-devel mailing list
> > elbe-devel at linutronix.de
> > https://lists.linutronix.de/mailman/listinfo/elbe-devel
> 
> -- 
> Torben Hohn
> Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
> Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99
> 
> Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
> can be found here): https://linutronix.de/kontakt/Datenschutz.php
> 
> Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen | 
> Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700 
> 806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel

-- 
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/kontakt/Datenschutz.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen | 
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700 
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner



More information about the elbe-devel mailing list