From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CBkcMUloU2FDCgAAgWs5BA (envelope-from ) for ; Tue, 28 Sep 2021 21:08:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id CFjrLEloU2G6ZQAA1q6Kng (envelope-from ) for ; Tue, 28 Sep 2021 19:08:57 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4A13D12287 for ; Tue, 28 Sep 2021 21:08:57 +0200 (CEST) Received: from localhost ([::1]:45392 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVITI-0007b9-Be for larch@yhetil.org; Tue, 28 Sep 2021 15:08:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38852) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVILf-0003tG-5f for guix-patches@gnu.org; Tue, 28 Sep 2021 15:01:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35438) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVILe-00016J-IC; Tue, 28 Sep 2021 15:01:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mVILe-0005SI-Cy; Tue, 28 Sep 2021 15:01:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50873] [bug#50796] [PATCH] gnu: Add pn. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: ludo@gnu.org, andrew@trop.in, guix-patches@gnu.org Resent-Date: Tue, 28 Sep 2021 19:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50873 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50873@debbugs.gnu.org Cc: Antero Mejr , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Andrew Tropin X-Debbugs-Original-Xcc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Andrew Tropin Received: via spool by 50873-submit@debbugs.gnu.org id=B50873.163285560820895 (code B ref 50873); Tue, 28 Sep 2021 19:01:02 +0000 Received: (at 50873) by debbugs.gnu.org; 28 Sep 2021 19:00:08 +0000 Received: from localhost ([127.0.0.1]:46983 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVIKl-0005Qx-Ij for submit@debbugs.gnu.org; Tue, 28 Sep 2021 15:00:07 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:35054 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVIKj-0005Ov-5K for 50873@debbugs.gnu.org; Tue, 28 Sep 2021 15:00:06 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1632855597; bh=I3+vKjvVEU+BvmdcCEqPRwJFryDUq7b6fVQxN31/IYs=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=GVlpQU7UbD+Wq+Gl62YnGRKAdaDDP5iue4/7WYNGp+TyuiNaJQ+NuSKbQ7KzFJQ/h 88yZwsF11C7//jaiphjuvb9y9bp1/hQeFUaXSgjSnEVtgF35Ctgpmdj3nqGR0TQi1g z5aQNLwQLgC02sbobfMS5/7Q4a+NNr43hPlEfy9M= In-Reply-To: <20210925032815.68194-1-antero@mailbox.org> References: <20210925032815.68194-1-antero@mailbox.org> Date: Tue, 28 Sep 2021 20:59:52 +0200 Message-ID: <87lf3g34rb.fsf@yoctocell.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632856137; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=RYaH9haJtgjQJTPr/03P7LN9p0hEuCFdNfA/Br+tZrQ=; b=AiIhx4F4iR1uRJjA4renEw/Q1qV6nmMfBIo7vMCC1sSS3PhvjkGiFKsFPrVWsmNUU8KXyO YjG2+C4mLB/wXrgOpWkIdUV36InP7TY2ft9k8xjjBgpIC/wqy8vMgNnOgcCV3qAp65ergK zOLgn9At9ONGLle7eo5IzwsIrsjOR3Pqa8fcYyPDyNLN17vN4arMX2Vry3AYBOyAFqZhnJ mu/7PbmP4BnTngK/GTMFsnSYmisJDDZnzqsMsajTGgJjR9+pSchazKF097hm43gwktv0bj 765BGCMCqZsvNEEGPX4zcqL6LkOvgSNhZlrKu1P5KLXaBwHXT0qcCSeZQTL8oQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632856137; a=rsa-sha256; cv=none; b=GpthUnAEdj5KwbX+xhWIgYZG1zsh3/a7GoK2hrO0VMFKhw4eXe73LG1tr42cXqi9E1RZ08 GTuDhr1sWg2fUkMfYIoOu4o7/sCHEoZZqpnqNySVn1Sil0tpyfQ8qzrx/30ZeztfK1B9Fv JnKchj+Fsz28N4hUSBsYhmYeYRfMSX+W/EGaDwZMNHPKtO0tHzDNfjWppRN4oxou+gynT6 JNM9/H1bhJtIWhr7nNYPnS+GGivemdfNTZx1WL/eskyKt6QKrgivUgKlxHzDfPkmLBUL6F jChprf1iSYlmsFyRTHQZB4mI33jBXMZ/jkV5iFB3mCDCwdVQVO19Ra4LX3sxtg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=GVlpQU7U; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.90 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=GVlpQU7U; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 4A13D12287 X-Spam-Score: -1.90 X-Migadu-Scanner: scn0.migadu.com X-TUID: PpSOpctGNB20 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Fri, Sep 24 2021, Antero Mejr via Guix-patches via wrote: > * gnu/packages/telephony.scm (pn): New variable. The =E2=80=98libphonenumber=E2=80=99 package is also added; this should be = split into patches, each adding one new package. > --- > Add pn and its dependencies. > It's a phone number CLI tool used by Linux phone GUIs like SXMO. > > gnu/packages/telephony.scm | 72 ++++++++++++++++++++++++++++++++++++++ > 1 file changed, 72 insertions(+) > > diff --git a/gnu/packages/telephony.scm b/gnu/packages/telephony.scm > index 48bbe12920..9015cf536a 100644 > --- a/gnu/packages/telephony.scm > +++ b/gnu/packages/telephony.scm > @@ -20,6 +20,7 @@ > ;;; Copyright =C2=A9 2020, 2021 Maxim Cournoyer > ;;; Copyright =C2=A9 2020 Vincent Legoll > ;;; Copyright =C2=A9 2021 LibreMiami > +;;; Copyright =C2=A9 2021 Antero Mejr > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -54,12 +55,14 @@ > #:use-module (gnu packages documentation) > #:use-module (gnu packages file) > #:use-module (gnu packages protobuf) > + #:use-module (gnu packages gawk) > #:use-module (gnu packages gettext) > #:use-module (gnu packages gl) > #:use-module (gnu packages glib) > #:use-module (gnu packages gnome) > #:use-module (gnu packages gnupg) > #:use-module (gnu packages gtk) > + #:use-module (gnu packages icu4c) > #:use-module (gnu packages image) > #:use-module (gnu packages libcanberra) > #:use-module (gnu packages linphone) > @@ -907,3 +910,72 @@ Initiation Protocol (SIP) and a multimedia framework= .") > telephony functionality into custom Telegram clients.") > (home-page "https://github.com/zevlg/libtgvoip") > (license license:unlicense))) > + > +(define-public libphonenumber > + (package > + (name "libphonenumber") > + (version "8.12.33") > + (source > + (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/google/libphonenumber") > + (commit (string-append "v" version)))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 > + "0r12icyig6jy0v87j9n3w14acfa2yfckzzfbmnjx1hww6qc9ih25")))) > + (build-system cmake-build-system) > + (arguments > + `(#:tests? #f There should be a comment explaining why tests are disabled. > + #:phases > + (modify-phases %standard-phases > + (add-after 'unpack 'enter-dir > + (lambda _ (chdir "cpp") #t))))) Phases don=E2=80=99t have to return #t. > + (inputs > + `(("boost" ,boost) > + ("googletest" ,googletest) > + ("protobuf" ,protobuf) > + ("icu4c" ,icu4c))) > + (home-page "https://github.com/google/libphonenumber") > + (synopsis "C++ library for phone number parsing") > + (description > + "libphonenumber is Google's common Java, C++ and JavaScript library= for > +parsing, formatting, and validating international phone numbers.") I would use @code{libphonenumber}. The package doesn=E2=80=99t seem to be reproducible; =E2=80=98guix build li= bphonenumber =2D-rounds=3D2=E2=80=99 fails with =2D-8<---------------cut here---------------start------------->8--- guix build: error: derivation `/gnu/store/a0vycg9ic70bziygn098bbvw4hy39zzb-= libphonenumber-8.12.33.drv' may not be deterministic: output `/gnu/store/1i= fj4ndpf3mv8nwbjp0gzrx5jpjvghgb-libphonenumber-8.12.33' differs =2D-8<---------------cut here---------------end--------------->8--- Could you look into this? > + (license license:asl2.0))) > + > +(define-public pn > + (package > + (name "pn") > + (version "0.9.0") > + (source > + (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/Orange-OpenSource/pn") > + (commit (string-append "v" version)))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 > + "1lvzb0yixj7wmmqzsri20k9nn3gf06j0yjvmg2mi1zihywq7s4dx")))) > + (build-system cmake-build-system) > + (arguments > + `(#:tests? #f Why are tests disabled? > + #:phases > + (modify-phases %standard-phases > + (add-after 'unpack 'sub-bin-path > + (lambda _ > + (substitute* "CMakeLists.txt" (("DESTINATION \\$\\{AWKLIBPA= TH\\}") > + "DESTINATION bin"))))))) > + (inputs > + `(("libphonenumber" ,libphonenumber) > + ("icu4c" ,icu4c) > + ("protobuf" ,protobuf) > + ("gawk" ,gawk))) > + (home-page "https://github.com/Orange-OpenSource/pn") > + (synopsis "Command-line validation tool for phone numbers") > + (description > + "pn is a tool that allows command line user/programmers to operate = on > +phone numbers (get validity information, reformat them, or extract numbe= rs > +from a text snippet), using libphonenumber.") I suggest @code{pn} provides a command line tools that allows on to operate on phone numbers (get validity information, reformat them, or extract numbers from a text snippet), using @code{libphonenumber}. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJJBAEBCAAzFiEEAVhh4yyK5+SEykIzrPUJmaL7XHkFAmFTZikVHHB1YmxpY0B5 b2N0b2NlbGwueHl6AAoJEKz1CZmi+1x5OO0P/1Rxx51OXlTRsGt1+4D5VatanM5t yBNIjzUdPVdJF4q3JYgH9WWwSHEysUlI18taLmVn+XcTUOcMiBiMf8cU8rLEgcol 2TYpzU8E4s6qijF5VSF7GN8+6fT3SvgbgneGSriCnGTOM1DaZM2ZRCdtX4rOYK3t aKNbTdKjUD5PDlNycoRQY/SSvrOftSuWLcUhcjS0kDjoQFL8QG7ZP2OUalBf4kfE IzoUOPJe5AYGor9b15YPiEGdghgMVRBWdSGlmkEO9PREtZPkSpilg4OicOkDuhrJ NadhOuTvAwFKFdMUcaTyg1nqvQdwqWUYcHDIDsYDga5gDM4TrdzgUdhpd44qirRn JW3lEbiDkj7+SO+jd1yYcUTaTMcDimlzuGuGFVyyX0U/rtYI2kNeESpGyab7zdPt M+oO0YkrWfDG1itr1jhGbluJk10PGqUA4M44o76uTTkqsI1F5U+90oZ3ulgZnLxb 7iBT4sJvjHOodRW/swUZkmvbgkhGx1A+kpCpz7Cg+yb6Qr4Q47BuPpwg6zKVFmIW TEsFH4GpPR1eVKTkjycXwpxHWyWZnc1eyBi9EO3DqZXxvOVJxzZRGPx+dYJ3Jznl I6oGCIt3X4IQ2bHEc2lW1dcFG0+APTM5fxYNOyMnqcMsjJu7+d/BkYZRL5RHTFsv QfwZdt6NmeGYSmUg =1DBg -----END PGP SIGNATURE----- --=-=-=--