From owner-freebsd-ports@freebsd.org Thu Apr 6 19:34:48 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9F10CD32771 for ; Thu, 6 Apr 2017 19:34:48 +0000 (UTC) (envelope-from guyyur@gmail.com) Received: from mail-wr0-x22a.google.com (mail-wr0-x22a.google.com [IPv6:2a00:1450:400c:c0c::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 389C497C; Thu, 6 Apr 2017 19:34:48 +0000 (UTC) (envelope-from guyyur@gmail.com) Received: by mail-wr0-x22a.google.com with SMTP id o21so49618587wrb.2; Thu, 06 Apr 2017 12:34:48 -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; bh=GcuGF17vC8QyC4e0Vf2f/ZLTGeY2EFfYcFzMAzw30BM=; b=UFX0OgSCT1gs0fJq2FTEA7iLtG0zBVXP5Y7En8JUlOjZ4y9rJSUglCY020Uceow1oT n1ROtL6bvmybsH8r7mqLqjFOop4XYoHfKw4/RSSmCMXHxsFdU+0qntYoZruls+7DZJj2 ZQ3A9ARnPlnyxY6+Rffc+4o9fpTLciNslB/+g5C2wdu9ZY/c51s8GQrya35JZmnWzF03 gn8xajGAam07dQBQAfEBaX6Zi/xlYdRC9LNS6zxmLPvhCjjoNCVXoS47FsjtOkxVd/jl Jiq1YIyFk5tjch5l990aBhL6swnBsgxPC7KGOq1iz1u8S6+roDfnpBxZCxA37FLauCc7 MqOg== 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; bh=GcuGF17vC8QyC4e0Vf2f/ZLTGeY2EFfYcFzMAzw30BM=; b=RR358768LFCZTZbyx5H3Ck4LccaHUnsyzRH5BhBLYv+OGfRIjRQw/pKBG65uWlM1WJ yqCT/OAydN/I5UyyPR5h9Y6rQEtOeyHPL58bErpgM+VCv/PteiJn+v4Clas8nPoHInly g8FwJOTcOLJ2/6T87QcBmwbMotc5aGKx2i21IRec2Ghe3SG/3GtwzF28K+Mhc3NFsJAx qM/VtwFLno2TQa43PXlhlQ42O9EkMzuD2LVcy9DFXH6xlNcG/XsSymkRKAX0Iron301i 7oQnOQKisSVzjF0ZtTgV82rCNlSwrS+/rG0MtAH0LsCBMITQZObD3KL5JXMY1jOJz0XJ pyUA== X-Gm-Message-State: AFeK/H1CpRM/LLKfqOibPLTyu7wkeXNqgP3CfGXcuIezLEVN0man6VHP QCunu3PnI6MqojkazcqwxWzAyJc5WckR X-Received: by 10.28.113.12 with SMTP id m12mr25299658wmc.18.1491507286299; Thu, 06 Apr 2017 12:34:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.209.200 with HTTP; Thu, 6 Apr 2017 12:34:45 -0700 (PDT) From: Guy Yur Date: Thu, 6 Apr 2017 22:34:45 +0300 Message-ID: Subject: nano 2.8.0 reports bad regex when including nanorc files To: freebsd-ports@freebsd.org, danilo@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2017 19:34:48 -0000 Hi, nano 2.8.0 complains on bad regex for "[[:<:]]" and [[:>:]] when I include nanorc files in /usr/local/etc/nanorc: include "/usr/local/share/nano/awk.nanorc" Error in /usr/local/share/nano/awk.nanorc on line 22: Bad regex "[[:<:]](system|fflush)[[:>:]]": Invalid character class name In 2.7.5 the libc regex was used but in 2.8.0 the bundled regex is used and it doesn't support [[:<:]] and [[:>:]]. I saw it was already fixed upstream: https://savannah.gnu.org/bugs/?50705 https://savannah.gnu.org/bugs/?50714 http://git.savannah.gnu.org/cgit/nano.git/commit/configure.ac?id=8f2b5bbf3d1b23007aedc9f07f224da91f0ec479 http://git.savannah.gnu.org/cgit/nano.git/commit/configure.ac?id=cc91ee603c24429375ace5d4b55d85c396668c2e The fix defines GNU_WORDBOUNDS when the bundled regex lib is used so nano won't convert \< to [[:<:] and \> to [[:>:]] in fixbounds(). I got working nano by removing the \< to [[:<:]] ... reinplace from the Makefile and applying the commits to configure.ac and regenerating it. Patch for the port: https://github.com/guyyur/freebsd-ports_patches/blob/master/editors_nano__bad_regex.patch Thanks, Guy