From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Aleix_Conchillo_Flaqu=C3=A9?= Newsgroups: gmane.lisp.guile.devel Subject: [PATCH] allow specifying a required version in GUILE_PROGS Date: Thu, 3 Oct 2013 15:55:27 -0700 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=089e0122797a01ae2504e7de1513 X-Trace: ger.gmane.org 1380840934 19679 80.91.229.3 (3 Oct 2013 22:55:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Oct 2013 22:55:34 +0000 (UTC) To: guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Oct 04 00:55:38 2013 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VRro1-0006eL-Vt for guile-devel@m.gmane.org; Fri, 04 Oct 2013 00:55:38 +0200 Original-Received: from localhost ([::1]:45536 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRro1-0002MK-JW for guile-devel@m.gmane.org; Thu, 03 Oct 2013 18:55:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRrnx-0002M4-4V for guile-devel@gnu.org; Thu, 03 Oct 2013 18:55:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VRrnu-0006xO-Am for guile-devel@gnu.org; Thu, 03 Oct 2013 18:55:32 -0400 Original-Received: from mail-lb0-x233.google.com ([2a00:1450:4010:c04::233]:58987) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRrnt-0006xC-NA for guile-devel@gnu.org; Thu, 03 Oct 2013 18:55:30 -0400 Original-Received: by mail-lb0-f179.google.com with SMTP id x18so2576091lbi.24 for ; Thu, 03 Oct 2013 15:55:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=N5T0xGQ+FySF4fVRFNdiplyNSjIbAaI08a5quK9iQpA=; b=md7zxqAr/VmFBWheM5NWvPQIl8FsKrWqKau+YOAvXjiNkohZQCsllnbLY3s55MXCC2 CX2mhk3+JuIu3NhbohB0Gtpwf6fUoJOxASQjOJzSQB+CWrV6DN5DmDs3s5DhpipgKfrv iHp69X9CvXatpXjUwcsoOj8YVWzZLmU9sJGU64T+wUfBdKGCnJBkuFTvFUEE/s3cSqcA cj5cJg9PG/O9UqbWsqR2FFGLg8SdTrNvRR6K61Tg2rg6MIMS0joJ7d1yjgkzHiartVLr kixJL6VoDOCecfcCph01hzlI4qndAZW2lr/soGUly8zRFiLdS9z7/jTl67ydBVNbf2ml IsHA== X-Received: by 10.152.170.135 with SMTP id am7mr9024930lac.25.1380840928021; Thu, 03 Oct 2013 15:55:28 -0700 (PDT) Original-Received: by 10.114.21.228 with HTTP; Thu, 3 Oct 2013 15:55:27 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::233 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:16665 Archived-At: --089e0122797a01ae2504e7de1513 Content-Type: text/plain; charset=UTF-8 The following patch allows to specify a required Guile version in GUILE_PROGS. By default, it requires >= 2.0. The following works: GUILE_PROGS([2.0]) GUILE_PROGS([2.0.9]) It also works with 1.8. I am not an expert on m4 macros. I've used "cut" instead of m4_bregexp. I tried it but couldn't get it right. In some packages I have implemented procedures which will be available in the next release of Guile. My plan is to remove these procedures and add a requirement on a Guile version. Let me know what you think. Aleix --089e0122797a01ae2504e7de1513 Content-Type: application/octet-stream; name="guile-progs.patch" Content-Disposition: attachment; filename="guile-progs.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hmcl0xfj0 RnJvbSA2NmZkYzVmZjhjMGZlYTZjMjg1YzVkZTAxY2Q4ZWZjMTJiYTU4ZTAyIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBBbGVpeCBDb25jaGlsbG8gRmxhcXVlIDxhY29uY2hpbGxvQGdt YWlsLmNvbT4KRGF0ZTogVGh1LCAzIE9jdCAyMDEzIDE1OjQ5OjA3IC0wNzAwClN1YmplY3Q6IFtQ QVRDSF0gYWxsb3cgc3BlY2lmeWluZyBhIHJlcXVpcmVkIHZlcnNpb24gaW4gR1VJTEVfUFJPR1MK CiogbWV0YS9ndWlsZS5tNDogR1VJTEVfUFJPR1Mgbm93IHRha2VzIGFuIG9wdGlvbmFsIGFyZ3Vt ZW50IHRvIHNwZWNpZnkgYQogIHJlcXVpcmVkIEd1aWxlIHZlcnNpb24uIEJ5IGRlZmF1bHQsIGl0 IHJlcXVpcmVzIEd1aWxlID49IDIuMC4gQSBtaWNybwogIHZlcnNpb24gY2FuIGFsc28gYmUgc3Bl Y2lmaWVkIChlLmcuIEdVSUxFX1BST0dTKFsyLjAuMTBdKSkuCi0tLQogbWV0YS9ndWlsZS5tNCB8 IDQ0ICsrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKy0tLS0tLS0tCiAxIGZpbGUg Y2hhbmdlZCwgMzYgaW5zZXJ0aW9ucygrKSwgOCBkZWxldGlvbnMoLSkKCmRpZmYgLS1naXQgYS9t ZXRhL2d1aWxlLm00IGIvbWV0YS9ndWlsZS5tNAppbmRleCBhM2UxZWYxLi41ZWMyMDU1IDEwMDY0 NAotLS0gYS9tZXRhL2d1a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