From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:45711) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtAwU-0008Mx-3M for guix-patches@gnu.org; Mon, 11 Feb 2019 07:44:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtAwR-0007n3-Ks for guix-patches@gnu.org; Mon, 11 Feb 2019 07:44:09 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:43964) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gtAwN-0007kz-VG for guix-patches@gnu.org; Mon, 11 Feb 2019 07:44:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gtAwL-0000r1-Kh for guix-patches@gnu.org; Mon, 11 Feb 2019 07:44:03 -0500 Subject: [bug#34433] [PATCH 1/1] gnu: Fix aegisub. Resent-Message-ID: References: <20190211133641.7e448f1d@alma-ubu> From: Ricardo Wurmus In-reply-to: <20190211133641.7e448f1d@alma-ubu> Date: Mon, 11 Feb 2019 13:42:44 +0100 Message-ID: <87pnrylcmz.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Cc: 34433@debbugs.gnu.org Hi Bj=C3=B6rn, > * gnu/packages/video.scm (aegisub)[arguments]: Add phase to fix > boost headers. Thanks! > + (add-after 'unpack 'fix-boost-headers > + (lambda _ > + (for-each > + (lambda (f) > + (substitute* f > + (("#include ") > + "#include "))) > + (list > + "src/subtitles_provider_libass.cpp" > + "src/colour_button.cpp" > + "src/video_provider_dummy.cpp" > + "./src/video_frame.cpp")) > + #t))))) It=E2=80=99s better to give =E2=80=9Csubstitute*=E2=80=9D a list of files i= nstead of using =E2=80=9Cfor-each=E2=80=9D. (lambda _ (substitute* '("src/subtitles_provider_libass.cpp" "src/colour_button.cpp" "src/video_provider_dummy.cpp" "src/video_frame.cpp") (("#include ") "#include ")) #t) Okay with these changes. --=20 Ricardo