From patchwork Sun Jun 13 16:16:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Valters Jansons X-Patchwork-Id: 4427 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4G308g5LnTz3x6s for ; Sun, 13 Jun 2021 16:17:07 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4G308g29Nyz12j; Sun, 13 Jun 2021 16:17:07 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4G308g0RF3z2xZJ; Sun, 13 Jun 2021 16:17:07 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4G308d2PNQz2xMX for ; Sun, 13 Jun 2021 16:17:05 +0000 (UTC) Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4G308c3SrYz12j for ; Sun, 13 Jun 2021 16:17:04 +0000 (UTC) Received: by mail-lj1-x22a.google.com with SMTP id s22so16648475ljg.5 for ; Sun, 13 Jun 2021 09:17:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Fbx/6azvwSnNRsAT1uNBn97LUZVhT+C+7OE+ltDHBhg=; b=DiraKUhIeSoDgOTd2IKBzFWFf+y5QdFKRY6wKOr4xdo/GMeaMv7jyrpa/fyNlx4Osd 6obpSqDAl3JJYRLw/pc9MxtVq4nz/x3vhtm6lBB8RZtdWnjBJO5DNEtbXLnviEhvPw3y CbF3yFny59sWeuPpW7DHBTRHLHYnPV6ZYUH8g3HdsB+5d1x7JmyCQJAiDz5Uir49q8RL soEV5w5lmWOWzA+2e+G9wFfHWqCTfBgKihNU+v1nPKu1QQ6c2kZMJe2oobuuzdqw/xIB 2vGobg/kghmJynk3pI1NyeqVHDSa9o6/4cEoKvY6DUQXFlgAjFrF7k3RyxCXQyHEAPbi 3ivg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Fbx/6azvwSnNRsAT1uNBn97LUZVhT+C+7OE+ltDHBhg=; b=nRX8MWGOtt+WBJgWVYE5x+3WEoeueUCk5VU39gUcvkKIlo3f6Pww+zu563qIQ4DR/3 I4wR08uoMoYxIScsGMEaxL1R8JFDhQ9fyB8johaipSli4XOnqoVIqB/2nOUEaSDPM5pe zekkmB33CeOdS9YK6qpSGZOPSC3i1+HcciFIayZu32DzNuKLzQjDRZND+siT/Jhojz5k Ll7zkXQjkwAxUhkL97X8uZYwtuX++a2ueBIXasmgjMIFINf3wC27Q1209DObGed1aEHQ ZPDK08fXhGsft0EpYSmHfwHBFVvZw6UJon+6lssPfG6mO19BEKgJAtE4HlXYjFzVvO1z FjqQ== X-Gm-Message-State: AOAM531PsqDq1Z8Yw/jWnmS0GSRAAbMBehcGTKHQq9O3OagLrqHfExU3 R9UiEgBO4YqfYewbGJxbitJT0v39pHhAoQ== X-Google-Smtp-Source: ABdhPJxTSaPrjBWsl2s6DhnNGmMmD5p0CLV+Afpnc5ZBTJupVd6ChVFON5z3XDxE2nQX/B6D35ftDw== X-Received: by 2002:a2e:98d0:: with SMTP id s16mr10687433ljj.155.1623601021909; Sun, 13 Jun 2021 09:17:01 -0700 (PDT) Received: from DESKTOP-30GCCHK.localdomain ([185.65.163.128]) by smtp.gmail.com with ESMTPSA id i127sm1218278lfd.216.2021.06.13.09.17.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Jun 2021 09:17:01 -0700 (PDT) From: Valters Jansons To: IPFire Location Mailing List Subject: [PATCH] debian: Attribute all maintainers in changlog Date: Sun, 13 Jun 2021 19:16:25 +0300 Message-Id: <20210613161625.20616-1-valter.jansons@gmail.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 ARC-Authentication-Results: i=1; mail01.ipfire.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=DiraKUhI; spf=pass (mail01.ipfire.org: domain of valterjansons@gmail.com designates 2a00:1450:4864:20::22a as permitted sender) smtp.mailfrom=valterjansons@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=202003rsa; d=lists.ipfire.org; t=1623601024; a=rsa-sha256; cv=none; b=qLIs4QPLi4DjaOep1ekhnc2Di6nFNvyQMVHI2iTsCTrtU/RRUjqQe2tgwdWEwGCeAhs7vS Usc8j74A9VBh0gzLFt5Ly/N9prZ9GEDpccioGjhVaOMpogRPkzsUxCYJQTzc7SVRBRbBLz 4aRfCqTfhhJy+lN8YTXhwlsS+QXvpkeNvu7CYlGLppX40u8KQJvwBtHxp26w6sT0ISmA1D X0sGr/6RhyINJyYxIiAerF7of/RlcTv5SWclJvuClnKku6xJaSCtp779U28uDdS1I+GHQx vqLwNZWscIk/N4i3VRI102A1z34Ii0gF6nnczddo6WTFjOivJDBPzk6Co6yYxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.ipfire.org; s=202003rsa; t=1623601024; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:dkim-signature; bh=Fbx/6azvwSnNRsAT1uNBn97LUZVhT+C+7OE+ltDHBhg=; b=OoRi56J2o7bxPWdFSaD5zag7I3i6xyIMK+Hjm/8iFAG7hKdWPmaRL5L3potayItRV6FyXm 3GT1XmeAWWC21QMVkaWJQEmj+2dIk5omrtNmNCHAhC3nqGl6+a01l0Owy52Jn/guMb+uYl lrbQ+p+QO/NrP+aIMxJ9JfBFS+cpX73RpM7OEbv69+aKi2WfDhfTCOz2XAhEQ19cdeaMa3 ER7WbgLh03fR7yJEfrjl9P/NJgnDhRh46VwJpSf+8VIgku6UFi8w5LPUgSRMFMomNXPu8D tQvDE64viEOkOHYycA9yfIKTlkhbjyhYBU7HZxoqkUdHFMTkpaBjYO4sjrG0kA== X-Rspamd-Server: mail01.haj.ipfire.org X-Spamd-Result: default: False [-5.76 / 11.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; IP_REPUTATION_HAM(-0.95)[asn: 15169(-0.28), country: US(-0.01), ip: 2a00:1450:4864:20::(-0.66)]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; ARC_SIGNED(0.00)[lists.ipfire.org:s=202003rsa:i=1]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; BAYES_HAM(-3.00)[99.99%]; FROM_HAS_DN(0.00)[]; SPF_REPUTATION_HAM(-0.80)[-0.80045437161424]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[location@lists.ipfire.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::22a:from]; FREEMAIL_CC(0.00)[gmail.com]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4G308c3SrYz12j Authentication-Results: mail01.ipfire.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=DiraKUhI; spf=pass (mail01.ipfire.org: domain of valterjansons@gmail.com designates 2a00:1450:4864:20::22a as permitted sender) smtp.mailfrom=valterjansons@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-BeenThere: location@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: location-bounces@lists.ipfire.org Sender: "Location" This commit further builds on historical changelog modifications, to properly attribute all authors of the commits. An additional d/genchangelog.sh script has been added. This allows generation of changelog entries, internally using `debchange` (`dch`). The script accepts an argument, which is the commit range to generate entries for. Each commit's subject line (first line of body) is used, along with author name and email. This information is added to the changelog. Automatic detection (via `debchange` built-in functionality) is used to determine whether these entries should be added to an existing version number. If there is no UNRELEASED version, then a new version is automatically tagged. The new version tag will usually need to be modified, for example, replacing an automatically generated 0.9.6-2 with 0.9.7-1. The final release change (s/UNRELEASED/unstable/) needs to be done manually as well, when the Git tag is actually being tagged. `dch -r` can be useful for this particular purpose. Signed-off-by: Valters Jansons --- debian/changelog | 15 +++++++++------ debian/genchangelog.sh | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 6 deletions(-) create mode 100755 debian/genchangelog.sh diff --git a/debian/changelog b/debian/changelog index e58c0ca..6817fb3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,13 +1,16 @@ libloc (0.9.6-1) unstable; urgency=medium - * location-importer.in: skip networks with unknown country codes - * location-importer.in: process unaligned IP ranges in RIR data files - correctly + [ Michael Tremer ] + * location: Fix list-networks-by-as * database: Free mmapped countries section - * location-importer.in: reduce log noise for unusable networks - * location-importer.in: delete 6to4 IPv6 space as well + + [ Peter Müller ] * location-importer.in: fix typo - * location: Fix list-networks-by-as + * location-importer.in: delete 6to4 IPv6 space as well + * location-importer.in: reduce log noise for unusable networks + * location-importer.in: process unaligned IP ranges in RIR data files + correctly + * location-importer.in: skip networks with unknown country codes -- Michael Tremer Wed, 31 Mar 2021 14:06:00 +0100 diff --git a/debian/genchangelog.sh b/debian/genchangelog.sh new file mode 100755 index 0000000..85d3922 --- /dev/null +++ b/debian/genchangelog.sh @@ -0,0 +1,36 @@ +#!/bin/bash -e +gitshow () { + local format=$1 + local commit=$2 + + git show --no-patch --format=format:"$format" "$commit" +} + +main () { + if [ $# -lt 1 ]; then + local bn="$(basename $0)" + echo "Usage: $bn " >&2 + echo "Example: $bn 0.9.7..HEAD" >&2 + echo "Example: $bn 0.9.5..0.9.6^" >&2 + return 1 + fi + + local commitrange=$1 + + local commit + for commit in $(git rev-list --reverse "$commitrange"); do + # Skip commits with diffs that only have Makefile.am or d/ changes. + if [ "$(git diff --name-only "${commit}^..${commit}" -- . ':^Makefile.am' ':^debian/' | wc -l)" == 0 ]; then + continue + fi + + local author_name="$(gitshow %an "$commit")" + local author_email="$(gitshow %ae "$commit")" + local subject="$(gitshow %s "$commit")" + + echo "$author_name <$author_email> $subject" + DEBFULLNAME="$author_name" DEBEMAIL="$author_email" debchange --upstream --multimaint-merge "$subject" + done +} + +main "$@" || exit $?