home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   linux.debian.kernel      Debian kernel discussions      2,884 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,813 of 2,884   
   Nicolas Boulenguez to All   
   Bug#1064620: firmware-nonfree: suggestio   
   20 Feb 26 16:30:01   
   
   XPost: linux.debian.bugs.dist   
   From: nicolas@debian.org   
      
   Source: firmware-nonfree   
   Followup-For: Bug #1064620   
      
   Hello.   
   Most suggestions are now obsolete.   
   Here are the remaining trivial style changes,   
   rebased on top of debian/20260110-1.   
      
   From 438ddf66577cd6f6e0437898112e0267dfccdd50 Mon Sep 17 00:00:00 2001   
   From: Nicolas Boulenguez    
   Date: Fri, 23 Feb 2024 17:10:17 +0100   
   Subject: [PATCH 1/5] d/README.Debian: typo   
      
   ---   
    debian/README.source | 2 +-   
    1 file changed, 1 insertion(+), 1 deletion(-)   
      
   diff --git a/debian/README.source b/debian/README.source   
   index ae7ae1c..e1fa269 100644   
   --- a/debian/README.source   
   +++ b/debian/README.source   
   @@ -91,7 +91,7 @@ Optional per-file metadata:   
      
    [_base] desc: One-line description for this file, used in   
                            package description   
   -[_base] version: Verson number for this file, used in package   
   +[_base] version: Version number for this file, used in package   
                               description   
      
    To re-generate debian/control (and other files) based on these   
   --   
   2.47.3   
      
      
   From 48c4e05ac5263d3641003adbb1cff9debcab869d Mon Sep 17 00:00:00 2001   
   From: Nicolas Boulenguez    
   Date: Fri, 23 Feb 2024 17:28:04 +0100   
   Subject: [PATCH 2/5] d/rules: include /usr/share/dpkg/pkg-info.mk   
      
   Also compute VERSION_SOURCE on demand with one rewriting.   
   ---   
    debian/rules | 14 ++++++--------   
    1 file changed, 6 insertions(+), 8 deletions(-)   
      
   diff --git a/debian/rules b/debian/rules   
   index a96e9d8..c264841 100755   
   --- a/debian/rules   
   +++ b/debian/rules   
   @@ -1,10 +1,8 @@   
    #!/usr/bin/make -f   
    SHELL := sh -e   
   -SOURCE := $(shell dpkg-parsechangelog -SSource)   
   -VERSION := $(shell dpkg-parsechangelog -SVersion)   
   -VERSION_UPSTREAM := $(shell echo "$(VERSION)" | sed -e 's,-[^-]*$$,,')   
   -VERSION_BINNMU := $(shell echo "$(VERSION)" | sed -rne 's,.*\+b   
   [0-9]+)$$,\1,p')   
   -VERSION_SOURCE := $(patsubst %+b$(VERSION_BINNMU),%,$(VERSION))   
   +   
   +include /usr/share/dpkg/pkg-info.mk   
   +VERSION_SOURCE = $(shell echo "$(DEB_VERSION)" | sed -r 's,\+b([0-9]+)$$,,')   
      
    GENCONTROL = debian/bin/gencontrol.py   
      
   @@ -46,7 +44,7 @@ CONTROL_FILES += debian/bin/gencontrol.py debi   
   n/config/defines $(wildcard debia   
    # in the checksum.   
    debian/build/version-info: debian/changelog   
    	mkdir -p $(@D)   
   -	printf >$@ 'Source: %s\nVersion: %s\n' $(SOURCE) $(VERSION_SOURCE)   
   +	printf >$@ 'Source: %s\nVersion: %s\n' $(DEB_SOURCE) $(VERSION_SOURCE)   
      
    debian/control: $(GENCONTROL) $(CONTROL_FILES)   
    ifeq ($(wildcard debian/control.md5sum),)   
   @@ -71,8 +69,8 @@ debian/control-real: $(GENCONTROL) $(CONTROL_FILES)   
    	@echo   
    	exit 1   
      
   -DIR_ORIG = ../orig/$(SOURCE)-$(VERSION_UPSTREAM)   
   -TAR_ORIG_NAME = $(SOURCE)_$(VERSION_UPSTREAM).orig.tar.xz   
   +DIR_ORIG = ../orig/$(DEB_SOURCE)-$(DEB_VERSION_UPSTREAM)   
   +TAR_ORIG_NAME = $(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM).orig.tar.xz   
    TAR_ORIG = $(firstword $(wildcard ../$(TAR_ORIG_NAME)) $(wildcard   
   ../orig/$(TAR_ORIG_NAME)))   
      
    orig: $(DIR_ORIG)   
   --   
   2.47.3   
      
      
   From 5637fdd797adb1dd0f2b3075d13f0f5281bd18dc Mon Sep 17 00:00:00 2001   
   From: Nicolas Boulenguez    
   Date: Sun, 25 Feb 2024 01:16:09 +0100   
   Subject: [PATCH 3/5] gencontrol.py: remove unused process_template methods   
      
   ---   
    debian/bin/gencontrol.py | 16 ----------------   
    1 file changed, 16 deletions(-)   
      
   diff --git a/debian/bin/gencontrol.py b/debian/bin/gencontrol.py   
   index 1248438..d1feac7 100755   
   --- a/debian/bin/gencontrol.py   
   +++ b/debian/bin/gencontrol.py   
   @@ -273,22 +273,6 @@ You must agree to the terms of this license before it is   
   installed."""   
                print(package_metainfo_filename, '/usr/share/metainfo',   
                      file=install_fh)   
      
   -    def process_template(self, in_entry, vars):   
   -        e = Template()   
   -        for key, value in in_entry.items():   
   -            if isinstance(value, PackageDescription):   
   -                e[key] = self.process_description(value, vars)   
   -            elif key[:2] == 'X-':   
   -                pass   
   -            else:   
   -                e[key] = self.substitute(value, vars)   
   -        return e   
   -   
   -    def process_templates(self, in_entries, vars):   
   -        entries = []   
   -        for i in in_entries:   
   -            entries.append(self.process_template(i, vars))   
   -        return entries   
      
    if __name__ == '__main__':   
        GenControl()()   
   --   
   2.47.3   
      
      
   From 275dc01e41282bbde9cd96079a6c558f10a86f43 Mon Sep 17 00:00:00 2001   
   From: Nicolas Boulenguez    
   Date: Fri, 23 Feb 2024 17:22:19 +0100   
   Subject: [PATCH 4/5] gencontrol.py: open files with context managers   
      
   ---   
    debian/bin/gencontrol.py | 13 ++++++++-----   
    1 file changed, 8 insertions(+), 5 deletions(-)   
      
   diff --git a/debian/bin/gencontrol.py b/debian/bin/gencontrol.py   
   index d1feac7..7a140db 100755   
   --- a/debian/bin/gencontrol.py   
   +++ b/debian/bin/gencontrol.py   
   @@ -221,14 +221,16 @@ class GenControl(debian_linux.gencontrol.Gencontrol):   
                    self.templates.get('postinst.initramfs-tools', vars))   
      
            if 'license_accept' in config_entry:   
   -            license = open("%s/LICENSE.install" % package_dir, 'r').read()   
   +            with open("%s/LICENSE.install" % package_dir, 'r') as license_fh:   
   +                license = license_fh.read()   
                scripts.setdefault("preinst", []).append(   
                    self.templates.get('preinst.license', vars))   
      
                templates = list(self.templates.get_templates_contr   
   l('templates.license', vars))   
      
   [continued in next message]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca