Message ID | CA+sCei2yFes5MN_Ldsd=OdES6orNQi=ehpP+PpUtG7CFwf9aLA@mail.gmail.com |
---|---|
State | Accepted |
Headers |
Return-Path: <location-bounces@lists.ipfire.org> 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 4FF4f672n8z3yBS for <patchwork@web04.haj.ipfire.org>; Tue, 6 Apr 2021 11:13:50 +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) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4FF4f63nQVzgy; Tue, 6 Apr 2021 11:13:50 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4FF4f63F4pz2xPC; Tue, 6 Apr 2021 11:13:50 +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) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4FF4f54Mdrz2xMX for <location@lists.ipfire.org>; Tue, 6 Apr 2021 11:13:49 +0000 (UTC) Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) (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 4FF4f15rgBzQK for <location@lists.ipfire.org>; Tue, 6 Apr 2021 11:13:45 +0000 (UTC) Received: by mail-io1-xd2b.google.com with SMTP id k25so8203173iob.6 for <location@lists.ipfire.org>; Tue, 06 Apr 2021 04:13:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=ElQh7NysNT5CSB9g/YXHfAKFa9JdZTfQPXEPIGojrQg=; b=PjF/ef+g16LSAG++fid6wIRGFQIxqBvr92tEQQW+m/qNok7IlyPELe1pat2oiV1Iao vCmhuYNSzJsOB5rTJDQRiNqDtm2DoXs+BHTK4XCZPecgjMoWu9lx21zneVUqMf/Rvv2V TrpxR6EnqB0So//MB3erN1/85ZQ2wEORg7QFr60UtgufYSrwQSdaJ/Tg8bo36i/K4zMZ 9NB+WiXQjp6xO4ZkRiaWqWwlQNvrRy5SzGHqlNFCVaijzoLvnXKZwUwZRtJiyjObw8Kc AIA5fvYWPUOQDNTiYfL1fQiH9Eu9CO+n00zdXECdlCp+Iv4oTt0dddyCbBIzAPmGuxyA zbqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=ElQh7NysNT5CSB9g/YXHfAKFa9JdZTfQPXEPIGojrQg=; b=oz7GdOW1aZqHSqa0XzmnUpsKhN069BvqLp++mqcBywL1zhokFuvnxdaX8ZpwWQynBo E8cmPe4nvTdNmwxyO+y3yr5nX7Qh4qi8LD5NvZzMFwTV3lAwT8Ilzm2PuoxEaSQCZPdu ysQJrkW8ww9ra6/YBvs0e6d2BWkPOQkiZ9IqgouL+/V1hHHmsDjJsSIyXOwJk1Ycrf/E WhhCQiCsvOuRMbNFDVVtFLdSihWRd7iizwikTt+vQ71FMrC5KSQnL+zW25X8N510illN a0FRKEqaFesofSSHajkScXuK9VbH9jB2q+PNZvwVgYwYhJGqGeGnvVF3fam0kKqsZWC+ 7QoA== X-Gm-Message-State: AOAM531WKk71WYOaAjQDCaRdtr4BoQBdS2IGYjvABnrw1pwJb/W9Bl/x 2TMOqnZplx1zJOGiRaSlhhFBg3+EabKiv7TpRQM37f4Ezasw/w== X-Google-Smtp-Source: ABdhPJzU4CQN8f2wK/7mFQbeYlkbtDsX2bEdwONYJgxNDd5gd2Lo9vC9xrqIXKkiKTwvQXUk4B26KydGRbPyYtKgn2s= X-Received: by 2002:a05:6602:92:: with SMTP id h18mr24059188iob.28.1617707624507; Tue, 06 Apr 2021 04:13:44 -0700 (PDT) MIME-Version: 1.0 From: Valters Jansons <valter.jansons@gmail.com> Date: Tue, 6 Apr 2021 14:13:31 +0300 Message-ID: <CA+sCei2yFes5MN_Ldsd=OdES6orNQi=ehpP+PpUtG7CFwf9aLA@mail.gmail.com> Subject: [PATCH] debian: Add intltoolize to dh_auto_configure To: IPFire Location Mailing List <location@lists.ipfire.org> Content-Type: text/plain; charset="UTF-8" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.ipfire.org; s=202003rsa; t=1617707625; 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: dkim-signature; bh=ElQh7NysNT5CSB9g/YXHfAKFa9JdZTfQPXEPIGojrQg=; b=tbLSGUJCT3nwCAoDo+EOBTQ1hfDSFfWMYhwd7l65tbVrVU25KULTeMK8gUiVYZlv0BogSp nn94+uByTHngjmF9FVTSrstyBy2JyXzeIGT7xjyT666B6B6HFPKPUGjJF+T+Cm1+NueXdM 5QgDRwOOhA79E5me+0NBsuoC1ZWFhZT9NQPdYemYYl7SS4DX9cNyCs2qpPma3wmB+04cMu BPbXJ/XYbCZZRXGLESIykA/rzY50+v55ovNWnE1+YzqsVrTtElKrP8AO9S9Dw717gKX4Xz 9BJsr7Ptks0IjhQUJ9ei/b8nPr6E14OnDu39cpKrlMzB+DwU3AoTi+FgmIocsg== ARC-Seal: i=1; s=202003rsa; d=lists.ipfire.org; t=1617707625; a=rsa-sha256; cv=none; b=PqnLSb0mkz6qt6qx1yXjhxdR+ju+SnIm5zV9B5dkqNGKgQD/OaqXfzcM7Cm9jZxQ1E+iFu osGRby0I6307yQ2vcLtVa6NW84cFhMwFGCmyQBfDLDK0D3w1Iv1/DXzcY7gK60kLTyI8lu aV19XHMw/WHPanZ/+3VzgnwMBYHSq7IS/czQAL4q5RIQiZkFA2vp/+QMa8JXp56rFnhXeS LCQMMQ8PvYqpKjm0W6916o0LekwGcOPGY+1pZsqJTHWLxDKCkEFfkvVcMAylJZZiAy/vHZ S1LOxzAUpIYijfXiVeLFbcasYW8W8YW45thtzcwve/viax5BcBrcSIpfwz+4SQ== ARC-Authentication-Results: i=1; mail01.ipfire.org; dkim=pass header.d=gmail.com header.s=20161025 header.b="PjF/ef+g"; spf=pass (mail01.ipfire.org: domain of valterjansons@gmail.com designates 2607:f8b0:4864:20::d2b as permitted sender) smtp.mailfrom=valterjansons@gmail.com X-Rspamd-Queue-Id: 4FF4f15rgBzQK Authentication-Results: mail01.ipfire.org; dkim=pass header.d=gmail.com header.s=20161025 header.b="PjF/ef+g"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mail01.ipfire.org: domain of valterjansons@gmail.com designates 2607:f8b0:4864:20::d2b as permitted sender) smtp.mailfrom=valterjansons@gmail.com X-Rspamd-Server: mail01.haj.ipfire.org X-Spamd-Result: default: False [-5.81 / 11.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)[]; FREEMAIL_FROM(0.00)[gmail.com]; IP_REPUTATION_HAM(-1.81)[asn: 15169(-0.19), country: US(-0.01), ip: 2607:f8b0:4864:20::(-0.71)]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[location@lists.ipfire.org]; ARC_SIGNED(0.00)[lists.ipfire.org:s=202003rsa:i=1]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::d2b:from]; MID_RHS_MATCH_FROMTLD(0.00)[]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: location@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <location.lists.ipfire.org> List-Unsubscribe: <https://lists.ipfire.org/mailman/options/location>, <mailto:location-request@lists.ipfire.org?subject=unsubscribe> List-Archive: <http://lists.ipfire.org/pipermail/location/> List-Post: <mailto:location@lists.ipfire.org> List-Help: <mailto:location-request@lists.ipfire.org?subject=help> List-Subscribe: <https://lists.ipfire.org/mailman/listinfo/location>, <mailto:location-request@lists.ipfire.org?subject=subscribe> Errors-To: location-bounces@lists.ipfire.org Sender: "Location" <location-bounces@lists.ipfire.org> |
Series |
debian: Add intltoolize to dh_auto_configure
|
|
Commit Message
Valters Jansons
April 6, 2021, 11:13 a.m. UTC
Debian has automated building tools that handle source trees directly. It is expected that you can pick up a source tarball, and with the appropriate debian/ subtree, a successful build can be produced using the `debuild` tool. This depends on all the build steps having been included as part of the debian/rules file (see: `man debuild`). This commit ensures there is no need to manually run autogen.sh on a locally extracted source tarball prior to building for Debian. This is accomplished by adding the `intltoolize` command to the override_dh_auto_configure step in d/rules. There is no need to add the `autoreconf` command due to dh-autoreconf always handling that prior to the dh_auto_configure step. --- debian/rules | 1 + 1 file changed, 1 insertion(+) -- 2.31.1
Comments
Hello Valters, Thank you very much for your patch. It didn’t apply because all tabs were replaced by spaces in this email. I took care of this manually and pushed it into the master branch. Do you have any more experience with the Debian build system? We kind of put this together without a lot of background knowledge and have a couple of (probably minor) things that could need fixing. Are you able to help? -Michael > On 6 Apr 2021, at 12:13, Valters Jansons <valter.jansons@gmail.com> wrote: > > Debian has automated building tools that handle source trees directly. > It is expected that you can pick up a source tarball, and with the > appropriate debian/ subtree, a successful build can be produced using > the `debuild` tool. This depends on all the build steps having been > included as part of the debian/rules file (see: `man debuild`). > > This commit ensures there is no need to manually run autogen.sh > on a locally extracted source tarball prior to building for Debian. > This is accomplished by adding the `intltoolize` command to the > override_dh_auto_configure step in d/rules. > > There is no need to add the `autoreconf` command due to dh-autoreconf > always handling that prior to the dh_auto_configure step. > --- > debian/rules | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/debian/rules b/debian/rules > index 4e544d7..8893b7b 100755 > --- a/debian/rules > +++ b/debian/rules > @@ -10,6 +10,7 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all > dh $@ --with python3 --with-systemd > > override_dh_auto_configure: > + intltoolize --force --automake > dh_auto_configure -- --disable-perl > > override_dh_perl: > -- > 2.31.1
On Wed, Apr 7, 2021 at 6:08 PM Michael Tremer <michael.tremer@ipfire.org> wrote: > It didn’t apply because all tabs were replaced by spaces in this email. I took care of this manually and pushed it into the master branch. Sorry - must have been copy-paste from my terminal that went wrong, as I was grabbing the patch content and pasting it by hand. Thank you for dealing with this. > Do you have any more experience with the Debian build system? We kind of put this together without a lot of background knowledge and have a couple of (probably minor) things that could need fixing. Are you able to help? I have some experience poking around with builds. Initial look at highlights a missing changelog, a debhelper compatibility level that could be updated and some apparent auto-test workflow issues, but I have not had the ability to dig deeper if that's something on my local system. Is there something in particular you would be looking for? -Valters
Hello, > On 12 Apr 2021, at 13:50, Valters Jansons <valter.jansons@gmail.com> wrote: > > On Wed, Apr 7, 2021 at 6:08 PM Michael Tremer <michael.tremer@ipfire.org> wrote: >> It didn’t apply because all tabs were replaced by spaces in this email. I took care of this manually and pushed it into the master branch. > > Sorry - must have been copy-paste from my terminal that went wrong, as > I was grabbing the patch content and pasting it by hand. Thank you for > dealing with this. No problem. I recommend using git-send-email(8) which takes care of all of this for you, but other ways work, too. > >> Do you have any more experience with the Debian build system? We kind of put this together without a lot of background knowledge and have a couple of (probably minor) things that could need fixing. Are you able to help? > > I have some experience poking around with builds. Great! > Initial look at > highlights a missing changelog, a debhelper compatibility level that > could be updated and some apparent auto-test workflow issues, but I > have not had the ability to dig deeper if that's something on my local > system. That is a good start... > Is there something in particular you would be looking for? Yes, the linter is showing a lot of issues and I am not sure what is important to fix and what doesn’t matter at all. We also have a problem that one file never makes it into the correct package no matter what: https://bugzilla.ipfire.org/show_bug.cgi?id=12468 Stefan originally packaged this and this was good enough. This was his first package and the whole build system feels quite tricky. If you like, you can grab that bug and solve it. Generally we would like to get this package into Debian at some point. Tor are now using our library and building things like Tor should be possible on a stock Debian with the right dependencies installed. We are also looking at making this package available in more distributions so that our software is ready to install very quickly and without any export knowledge on how to build something. Best, -Michael > > -Valters
On Tue, Apr 13, 2021 at 9:53 PM Michael Tremer <michael.tremer@ipfire.org> wrote: > We also have a problem that one file never makes it into the correct package no matter what: https://bugzilla.ipfire.org/show_bug.cgi?id=12468 > > Stefan originally packaged this and this was good enough. This was his first package and the whole build system feels quite tricky. If you like, you can grab that bug and solve it. I can confirm the .deb files only contain usr/share/doc/location-importer/ as reported in the bug. This can be independently verified by downloading a location-importer.deb from https://packages.ipfire.org/location/buster/ and querying the package contents with `dpkg -c location-importer_0.9.6-1_$ARCH.deb`. Would be interesting to see build logs for this. Maybe they could shed some light. --Valters
diff --git a/debian/rules b/debian/rules index 4e544d7..8893b7b 100755 --- a/debian/rules +++ b/debian/rules @@ -10,6 +10,7 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all dh $@ --with python3 --with-systemd override_dh_auto_configure: + intltoolize --force --automake dh_auto_configure -- --disable-perl override_dh_perl: