From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CNEbM41UXGFNFQAAgWs5BA (envelope-from ) for ; Tue, 05 Oct 2021 15:35:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id SPa1Lo1UXGFfTAAAB5/wlQ (envelope-from ) for ; Tue, 05 Oct 2021 13:35:09 +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 6FDB1BF4A for ; Tue, 5 Oct 2021 15:35:09 +0200 (CEST) Received: from localhost ([::1]:48266 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXkb6-0003mP-Im for larch@yhetil.org; Tue, 05 Oct 2021 09:35:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34720) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXkPO-0000dn-5S for guix-patches@gnu.org; Tue, 05 Oct 2021 09:23:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56046) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXkPN-00026O-Ry for guix-patches@gnu.org; Tue, 05 Oct 2021 09:23:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mXkPN-0008Ot-JC for guix-patches@gnu.org; Tue, 05 Oct 2021 09:23:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51015] [PATCH] Add Random Identity Generator (rig) Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 05 Oct 2021 13:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51015 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Chuan Wei Foo , 51015@debbugs.gnu.org Received: via spool by 51015-submit@debbugs.gnu.org id=B51015.163344017632277 (code B ref 51015); Tue, 05 Oct 2021 13:23:01 +0000 Received: (at 51015) by debbugs.gnu.org; 5 Oct 2021 13:22:56 +0000 Received: from localhost ([127.0.0.1]:39359 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXkPH-0008OX-Lv for submit@debbugs.gnu.org; Tue, 05 Oct 2021 09:22:56 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:39425) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXkPF-0008OE-DV for 51015@debbugs.gnu.org; Tue, 05 Oct 2021 09:22:54 -0400 Received: by mail-wm1-f65.google.com with SMTP id b136-20020a1c808e000000b0030d60716239so3013291wmd.4 for <51015@debbugs.gnu.org>; Tue, 05 Oct 2021 06:22:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=JiqQXQNvoj7Wyg3H/uBckRE++uJp1nfRVvpP+s+qSsQ=; b=pxGBSmyudbFzm4uI46AjyPpve5bNe3bdVNBRI0mmBqGFyTvwKZCyXxEsBWvoMmwPRh SEiK47/Um56j00hYEhfouSAEPfxtVirKxzhPGz5a1T0FH7U6OkgpNjcF3fKWGQpustAU VZcOlpNFmByR7Yk01eTPjVluA58W5dWTTHN4gImGqdr2ET96U00iF47kVt+FzA9fWnNO 2sDUyRoH1dK7DfZaM04n2YdmiPNrNIdHF8tpSleaBoNVOSG6jUIkxMRXRYHdgK0Nh/Sr EOAO2ZvEXEUgAW6mzF4hCQDuxtN/Vv3F6O9J2shbMGmfDeGO4ge6l3hyioEp+zUL9VPM L3WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=JiqQXQNvoj7Wyg3H/uBckRE++uJp1nfRVvpP+s+qSsQ=; b=CAniDlRnlkzT8zELR9md92pEpd+SlfqFhbeI/54uErZ+tECNDXJywwjnIA7jXXqmwf /HKJQQ9GWJFtYyAtFiIbzXcDUhKGJc0rahYBhLYuUE4uIIt66YsXlDdVFil2HDg59pU9 llLe1bk+rDHmNp4tCHSF2UhvnKU5ZmCyiQxKw6Yq/ND5L8k5L+ZLvAJjnPc6jDEB5HoL sNnfQ2d0XP60YRz86XToECRKe4RIPjGnacIyK16/cQhHKXiRS16fSMlmAh8QAhviG5TU OR8fnMUEZ/30EDZMizku0JWZP+4b0DfVR7AdgulTnsbSfqTxk+DLabdgmNwtr4Az0jdb bJjw== X-Gm-Message-State: AOAM533LyhsfGUrwZJ1gQoyrXAgAvNIj+vK8fzZ0oZH2wZDC0bhNhyBg h/WKvWOv+X1qa/86sxOBqzg= X-Google-Smtp-Source: ABdhPJzacQl9nn1A65DM/CvYYVMjcQ+9hCiF7EIEoljEz9qbtqwoaXxfSqNw5eG59mGhGxTu99k2fw== X-Received: by 2002:a1c:19c4:: with SMTP id 187mr3353139wmz.149.1633440167352; Tue, 05 Oct 2021 06:22:47 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id w18sm17751993wrt.79.2021.10.05.06.22.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Oct 2021 06:22:46 -0700 (PDT) Message-ID: From: Liliana Marie Prikler Date: Tue, 05 Oct 2021 15:22:45 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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=1633440909; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: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=JiqQXQNvoj7Wyg3H/uBckRE++uJp1nfRVvpP+s+qSsQ=; b=uy7TYiFYn+7cCGxcnU3iZB2JotjD9PWya8ftPBaVrtMYDwrqvbMK/3qLvZkveaDrjTmnO3 GD4/+1rcWD+WjIJs2ZiQUQnyqM4WlaWuR6mBsduZRUM8iscDM2DOFQkiQ161Ka0IVJirAO o6xePQIkouKHHuFMKoUng8oiQYe9ENla7hqkgIB2oeU/Cxu4tCPFFmZLJcD0+oLBik/Nq5 zlGvOq5NE4YXHmXYmV+iH/xyc0mTp30IUiAs5CZYpis3MLQM5biAm/KkSVRm2xWuNjES9d Q0ASXgU+RJCu8t4ri3Q180RBzTWEQ67TA1W3jHJ9oEIp/gyc/ELptM16tT9Mvg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633440909; a=rsa-sha256; cv=none; b=U2qC7C2/WlQah6FjeMxVCfJ+GUquGY0F/Pv1tHaDgUA46RkPK8970vbVfDGK9Iv8O1Ni4W jxOfNbY1PgR6wTAb/eiF4ECjkoyRZ5P5/gpzpGKUI2yXdPBK+bPlaNj1uImT9gHHOdpKys rmHSPcPw0Ul4z8i/v6Y+7pRhfGexVq4BT5/oma/hoq0v25rw24MXWGZOEraTP+WWxrLAXS hwvCKpnEdRZ9htk5HMpQtsdp+Iyqkwo/qO5LLCDXs0aQRfoYUIRJVskYThF7oZSwffB/y2 L2xN1z2PRr/4rT+zm3di+tZN8bzD9agphkyR3aXv8O2i5S+h6TQLnyeOEzEqPg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=pxGBSmyu; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=pxGBSmyu; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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: 6FDB1BF4A X-Spam-Score: -1.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: qlBMiJMsBCMI Hi, Am Montag, den 04.10.2021, 23:35 +0800 schrieb Chuan Wei Foo: > --- The commit message is missing here. In particular, a ChangeLog is always required, see “info '(guix)Submitting Patches'”. > gnu/packages/patches/rig.patch | 42 > ++++++++++++++++++++++++++++++++++ > gnu/packages/shellutils.scm | 29 +++++++++++++++++++++++ > 2 files changed, 71 insertions(+) > create mode 100644 gnu/packages/patches/rig.patch > > diff --git a/gnu/packages/patches/rig.patch > b/gnu/packages/patches/rig.patch > new file mode 100644 > index 0000000000..34b4ff6533 > --- /dev/null > +++ b/gnu/packages/patches/rig.patch > @@ -0,0 +1,42 @@ > +--- rig-1.11.orig/Makefile > ++++ rig-1.11/Makefile > +@@ -1,20 +1,23 @@ > +-PREFIX=/usr/local > ++PREFIX=${out} > + BINDIR=${PREFIX}/bin > + MANDIR=${PREFIX}/man > + DATADIR=${PREFIX}/share/rig > ++CXX=g++ > + > + all: rig rig.6 > + rig: rig.cc > +- g++ -g rig.cc -o rig -Wall -DDATADIR="\"$(DATADIR)\"" > ++ ${CXX} -O2 -g rig.cc -o rig -Wall -DDATADIR="\"$(DATADIR)\"" > + > + rig.6: rig.6.in > + sed s@DATADIR@"$(DATADIR)"@g < rig.6.in > rig.6 > + > + install: rig rig.6 > +- install -g 0 -m 755 -o 0 -s rig $(BINDIR) > +- install -g 0 -m 644 -o 0 rig.6 $(MANDIR)/man6/rig.6 > +- install -g 0 -m 755 -o 0 -d $(DATADIR) > +- install -g 0 -m 644 -o 0 data/*.idx $(DATADIR) > ++ install -m 755 -d $(DESTDIR)$(BINDIR) > ++ install -m 755 -d $(DESTDIR)$(DATADIR) > ++ install -m 755 -d $(DESTDIR)$(MANDIR)/man6/ > ++ install -m 755 rig $(DESTDIR)$(BINDIR)/rig > ++ install -m 644 data/*.idx $(DESTDIR)$(DATADIR) > ++ install -m 644 rig.6 $(DESTDIR)$(MANDIR)/man6/rig.6 You could provide the right #:make-flags, but more accurately replacing the install phase would also work for this, no? > + clean: > + rm -rf *~ *.rej *.orig *.o rig rig.6 > +--- rig-1.11.orig/rig.cc > ++++ rig-1.11/rig.cc > +@@ -26,6 +26,7 @@ > + #include > + #include > + #include > ++#include > + > + using namespace std; > + This one could technically be patched with a substitute* after unpack, which is probably better than shipping a patch for it. > diff --git a/gnu/packages/shellutils.scm > b/gnu/packages/shellutils.scm > index 94b5536df7..ef93977eb9 100644 > --- a/gnu/packages/shellutils.scm > +++ b/gnu/packages/shellutils.scm > @@ -35,6 +35,7 @@ > #:use-module (guix build-system gnu) > #:use-module (guix build-system go) > #:use-module (guix build-system python) > + #:use-module (gnu packages) > #:use-module (gnu packages autotools) > #:use-module (gnu packages base) > #:use-module (gnu packages bison) > @@ -398,3 +399,31 @@ the UNIX philosophy, these commands are designed > to be composed via pipes. A > large collection of functions such as basename, replace, contains or > is_dir > are provided as arguments to these commands.") > (license license:expat))) > + > +(define-public rig > + (package > + (name "rig") > + (version "1.11") > + (source (origin > + (method url-fetch) > + (uri (string-append "mirror://sourceforge/rig/rig/" > + version "/rig-" > + version ".tar.gz")) > + (sha256 > + (base32 > + "1f3snysjqqlpk2kgvm5p2icrj4lsdymccmn3igkc2f60smqck > gq0")) > + (patches (search-patches "rig.patch")))) > + (build-system gnu-build-system) > + (arguments '(#:phases (modify-phases %standard-phases > + (delete 'configure)) > + #:tests? #f)) > + (synopsis "Random identity generator") > + (description > + "RIG (Random Identity Generator) is a free replacement for a > shareware > +program out there called 'fake'. It generates random, yet real- > looking, > +personal data. It is useful if you need to feed a name to a Web > site, > +BBS, or real person, and are too lazy to think of one yourself. > Also, > +if the Web site/BBS/person you are giving the information to tries > to > +cross-check the city, state, zip, or area code, it will check out.") I think we can do without references to non-free software in that description. > + (home-page "http://rig.sourceforge.net") > + (license license:gpl2)) License is actually GPL2+. Regards, Liliana