From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#34531: Guix profile fails on Overdrive 1000 Date: Wed, 20 Feb 2019 21:53:39 +0100 Message-ID: <87a7iq5gh8.fsf@elephly.net> References: <20190218200552.GB1881@jurong> <87mumsom9l.fsf@fastmail.com> <20190219082728.GA5650@jurong> <87lg2bvrne.fsf@elephly.net> <20190219161954.47234638@scratchpost.org> <20190220115136.422bdf5b@scratchpost.org> <87va1eu1gp.fsf@elephly.net> <20190220142634.56868dba@scratchpost.org> <87k1hutpvw.fsf@elephly.net> <20190220172603.1a675f61@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:43500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwYsb-0003u3-Kg for bug-guix@gnu.org; Wed, 20 Feb 2019 15:54:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gwYsY-0000kq-H4 for bug-guix@gnu.org; Wed, 20 Feb 2019 15:54:08 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:57858) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gwYsX-0000ch-W2 for bug-guix@gnu.org; Wed, 20 Feb 2019 15:54:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gwYsT-0004EK-V7 for bug-guix@gnu.org; Wed, 20 Feb 2019 15:54:03 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <20190220172603.1a675f61@scratchpost.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Danny Milosavljevic Cc: 34531@debbugs.gnu.org Danny Milosavljevic writes: > It almost works, but it seems not to find the "test_" lines. > > I've reduced the problem to: > > scheme@(guile-user)> ,use (ice-9 regex) > scheme@(guile-user)> (fold-matches "^void" "blah\nvoid\n" '() cons) > $24 = () > > After reading the documentation, I've revised it to: > > scheme@(guile-user)> ,use (ice-9 regex) > scheme@(guile-user)> (fold-matches "^void" "blah\nvoid\n" '() cons regexp/newline) > $25 = () Try this instead: (fold-matches (make-regexp "^void" regexp/newline) "blah\nvoid\n" '() cons) Or rather (list-matches (make-regexp "^void" regexp/newline) "blah\nvoid\n") -- Ricardo