diff -Nru linux-meta-3.2.0.126.141/debian/changelog linux-meta-3.2.0.150.164/debian/changelog --- linux-meta-3.2.0.126.141/debian/changelog 2017-03-31 16:50:24.000000000 +0000 +++ linux-meta-3.2.0.150.164/debian/changelog 2021-04-05 18:02:41.000000000 +0000 @@ -1,3 +1,149 @@ +linux-meta (3.2.0.150.164) precise; urgency=medium + + * Bump ABI 3.2.0-150 + + -- Thadeu Lima de Souza Cascardo Mon, 05 Apr 2021 15:02:41 -0300 + +linux-meta (3.2.0.149.163) precise; urgency=medium + + * Bump ABI 3.2.0-149 + + -- Thadeu Lima de Souza Cascardo Fri, 18 Sep 2020 11:55:32 -0300 + +linux-meta (3.2.0.148.162) precise; urgency=medium + + * Bump ABI 3.2.0-148 + + -- Sultan Alsawaf Wed, 10 Jun 2020 14:07:52 -0700 + +linux-meta (3.2.0.147.161) precise; urgency=medium + + * Bump ABI 3.2.0-147 + + -- Thadeu Lima de Souza Cascardo Tue, 02 Jun 2020 21:43:20 -0300 + +linux-meta (3.2.0.145.160) precise; urgency=medium + + * Bump ABI 3.2.0-145 + + * Packaging resync (LP: #1786013) + - [Packaging] resync git-ubuntu-log + + -- Sultan Alsawaf Fri, 22 May 2020 12:19:30 -0700 + +linux-meta (3.2.0.144.159) precise; urgency=medium + + * Bump ABI 3.2.0-144 + + -- Stefan Bader Fri, 08 Nov 2019 17:21:12 +0100 + +linux-meta (3.2.0.143.158) precise; urgency=medium + + * Bump ABI 3.2.0-143 + + -- Juerg Haefliger Fri, 13 Sep 2019 14:39:13 +0200 + +linux-meta (3.2.0.142.157) precise; urgency=medium + + * Bump ABI 3.2.0-142 + + -- Juerg Haefliger Fri, 05 Jul 2019 14:13:29 +0200 + +linux-meta (3.2.0.141.156) precise; urgency=medium + + * Bump ABI 3.2.0-141 + + -- Juerg Haefliger Fri, 07 Jun 2019 10:36:09 +0200 + +linux-meta (3.2.0.140.155) precise; urgency=medium + + * Bump ABI 3.2.0-140 + + -- Stefan Bader Fri, 10 May 2019 10:08:01 +0200 + +linux-meta (3.2.0.139.154) precise; urgency=medium + + * Bump ABI 3.2.0-139 + + -- Kleber Sacilotto de Souza Wed, 05 Dec 2018 21:54:38 +0100 + +linux-meta (3.2.0.138.153) precise; urgency=medium + + * Bump ABI 3.2.0-138 + + -- Juerg Haefliger Wed, 14 Nov 2018 12:12:07 +0100 + +linux-meta (3.2.0.137.152) precise; urgency=medium + + * Bump ABI 3.2.0-137 + + -- Kleber Sacilotto de Souza Wed, 31 Oct 2018 12:45:28 +0100 + +linux-meta (3.2.0.136.151) precise; urgency=medium + + * Bump ABI 3.2.0-136 + + -- Stefan Bader Tue, 25 Sep 2018 12:37:17 +0200 + +linux-meta (3.2.0.135.150) precise; urgency=medium + + * Bump ABI 3.2.0-135 + + -- Kleber Sacilotto de Souza Fri, 31 Aug 2018 17:56:16 +0200 + +linux-meta (3.2.0.134.149) precise; urgency=medium + + * Bump ABI 3.2.0-134 + + -- Stefan Bader Wed, 02 May 2018 17:42:15 +0200 + +linux-meta (3.2.0.133.148) precise; urgency=medium + + * Bump ABI 3.2.0-133 + + * Miscellaneous upstream changes + - Revert "UBUNTU: Make kernel image packages depend on cpu microcode updates" + + -- Kleber Sacilotto de Souza Mon, 29 Jan 2018 11:35:04 +0100 + +linux-meta (3.2.0.132.147) precise; urgency=medium + + * Make the kernel image packages depend on the cpu microcode updates, + to ensure they are pulled into all host installs of Ubuntu on upgrade. + LP: #1738259. [intel-microcode only] + + -- Steve Langasek Tue, 09 Jan 2018 11:29:02 -0800 + +linux-meta (3.2.0.132.146) precise; urgency=medium + + * Bump ABI 3.2.0-132 + + -- Kleber Sacilotto de Souza Sat, 06 Jan 2018 11:41:52 +0100 + +linux-meta (3.2.0.131.145) precise; urgency=medium + + * Bump ABI 3.2.0-131 + + -- Stefan Bader Wed, 13 Sep 2017 15:21:59 +0200 + +linux-meta (3.2.0.130.144) precise; urgency=medium + + * Bump ABI 3.2.0-130 + + -- Stefan Bader Tue, 18 Jul 2017 17:39:34 +0200 + +linux-meta (3.2.0.129.143) precise; urgency=medium + + * Bump ABI 3.2.0-129 + + -- Stefan Bader Tue, 27 Jun 2017 12:06:12 +0200 + +linux-meta (3.2.0.128.142) precise; urgency=medium + + * Bump ABI 3.2.0-128 + + -- Stefan Bader Wed, 14 Jun 2017 16:37:34 +0200 + linux-meta (3.2.0.126.141) precise; urgency=medium * Bump ABI 3.2.0-126 diff -Nru linux-meta-3.2.0.126.141/debian/scripts/misc/git-ubuntu-log linux-meta-3.2.0.150.164/debian/scripts/misc/git-ubuntu-log --- linux-meta-3.2.0.126.141/debian/scripts/misc/git-ubuntu-log 2017-03-30 10:47:52.000000000 +0000 +++ linux-meta-3.2.0.150.164/debian/scripts/misc/git-ubuntu-log 2020-03-05 15:13:39.000000000 +0000 @@ -1,6 +1,5 @@ #!/usr/bin/python3 -import os import sys import codecs @@ -13,16 +12,39 @@ sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach()) entries = [] + + def add_entry(entry): if entry and 'ignore' not in entry: - if 'bugs' not in entry and 'cves' in entry: - for cve in entry['cves']: - if cve not in bugs: - bugs.append(cve) + combo = [] + for bug in set(entry.get('bugs', [])): + combo.append(bug) + for cve in set(entry.get('cves', [])): + combo.append(cve) + combo = sorted(combo) + + if len(combo) == 0: + if entry.get('subject', "").startswith('UBUNTU'): + combo = '__packaging__' + else: + combo = '__mainline__' + else: + if entry.get('subject', "") == 'UBUNTU: link-to-tracker: update tracking bug': + # Construct a key with '__trackingbug__' on the first position + # and the tracking bug number afterwards + combo.insert(0, '__trackingbug__') + # Tracking bug goes at the top + keys.insert(0, combo) + else: + if combo not in keys: + keys.append(combo) + + entry['key'] = combo entries.append(entry) + # Suck up the git log output and extract the information we need. -bugs = [] +keys = [] entry = None subject_wait = False for line in sys.stdin: @@ -39,14 +61,16 @@ subject_wait = False entry['subject'] = line.strip() - elif line.startswith(' BugLink: ') and 'launchpad.net' in line: - bits = line.strip().split(maxsplit=1) - bits = bits[1].split('/') - entry.setdefault('bugs', []).append(bits[-1]) - - # Accumulate bug numbers. - if bits[-1] not in bugs: - bugs.append(bits[-1]) + elif line.startswith(' BugLink: '): + bits = line.strip().split(maxsplit=2) + if len(bits) > 2: + # There is text after the URL, so use that (after stripping the + # enclosing characters) + entry.setdefault('bugs', []).append(bits[2][1:-1]) + elif 'launchpad.net' in bits[1]: + # Extract the bug number from the launchpad URL + bits = bits[1].split('/') + entry.setdefault('bugs', []).append(bits[-1]) elif line.startswith(' CVE-'): entry.setdefault('cves', []).append(line.strip()) @@ -54,6 +78,11 @@ elif line.startswith(' Ignore:'): entry['ignore'] = True + elif line.startswith(' Properties:'): + for prop in line.strip().split()[1:]: + if prop in ('ignore', 'no-changelog'): + entry['ignore'] = True + add_entry(entry) entries.reverse() @@ -66,60 +95,72 @@ del entry['author'] # Lump everything without a bug at the bottom. -bugs.append('__packaging__') -bugs.append('__mainline__') +keys.append('__packaging__') +keys.append('__mainline__') emit_nl = False -for bug in bugs: - if bug == '__packaging__': - title = 'Miscellaneous Ubuntu changes' - elif bug == '__mainline__': - title = 'Miscellaneous upstream changes' - elif bug.startswith('CVE-'): - title = bug +for key in keys: + if key == '__packaging__': + title_set = ['Miscellaneous Ubuntu changes'] + elif key == '__mainline__': + title_set = ['Miscellaneous upstream changes'] else: - bug_info = None + title_set = [] + for bug in key: + if bug.startswith('CVE-'): + title_set.append(bug) + elif bug == '__trackingbug__': + # Look for the tracking bug number on the second + # position of the key + continue + elif bug.isdigit(): + # Assume that it is an LP bug number if 'bug' contains only digits + bug_info = None + + try: + # urllib.request.urlcleanup() + request = urllib.request.Request('https://api.launchpad.net/devel/bugs/' + bug) + request.add_header('Cache-Control', 'max-age=0') + with urllib.request.urlopen(request) as response: + data = response.read() + bug_info = json.loads(data.decode('utf-8')) + + title = bug_info['title'] + if 'description' in bug_info: + for line in bug_info['description'].split('\n'): + if line.startswith('Kernel-Description:'): + title = line.split(' ', 1)[1] + + except urllib.error.HTTPError: + title = 'INVALID or PRIVATE BUG' + + title += ' (LP###' + bug + ')' + title_set.append(title) + else: + # Finally treat 'bug' itself as the title + title_set.append(bug) - try: - #urllib.request.urlcleanup() - request = urllib.request.Request('https://api.launchpad.net/devel/bugs/' + bug) - request.add_header('Cache-Control', 'max-age=0') - with urllib.request.urlopen(request) as response: - data = response.read() - bug_info = json.loads(data.decode('utf-8')) - - title = bug_info['title'] - if 'description' in bug_info: - for line in bug_info['description'].split('\n'): - if line.startswith('Kernel-Description:'): - title = line.split(' ', 1)[1] + emit_title = True + for entry in entries: + if entry['key'] != key: + continue - except urllib.error.HTTPError: - title = 'INVALID or PRIVATE BUG' + if emit_title: + if emit_nl: + print('') + emit_nl = True - title += ' (LP###' + bug + ')' + title_lines = textwrap.wrap('#// '.join(title_set), 76) + print(' * ' + title_lines[0].replace('LP###', 'LP: #').replace('#//', ' //')) + for line in title_lines[1:]: + line = line.replace('LP###', 'LP: #').replace('#//', ' //') + print(' ' + line) - emit_title = True - for entry in entries: - if (bug == '__packaging__' and 'bugs' not in entry and 'cves' not in entry and 'author' in entry) or \ - (bug == '__mainline__' and 'bugs' not in entry and 'cves' not in entry and 'author' not in entry) or \ - ('bugs' in entry and bug in entry['bugs']) or \ - ('cves' in entry and bug in entry['cves']): - if emit_title: - if emit_nl: - print('') - emit_nl = True - - title_lines = textwrap.wrap(title, 76) - print(' * ' + title_lines[0].replace('LP###', 'LP: #')) - for line in title_lines[1:]: - line = line.replace('LP###', 'LP: #') - print(' ' + line) + emit_title = False - emit_title = False + if key[0] != '__trackingbug__': title_lines = textwrap.wrap(entry['subject'], 76) print(' - ' + title_lines[0]) for line in title_lines[1:]: line = line.replace('LP###', 'LP: #') print(' ' + line) -