From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#19733: disfunctional gcc binary when GCJ or gfortran is installed Date: Mon, 21 Dec 2015 16:38:51 +0100 Message-ID: References: <87wpuqonl3.fsf@gnu.org> <87si2yxr5h.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aB2ZB-0006qS-Vn for bug-guix@gnu.org; Mon, 21 Dec 2015 10:40:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aB2Z8-00004v-N0 for bug-guix@gnu.org; Mon, 21 Dec 2015 10:40:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:51407) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aB2Z8-00004r-Jw for bug-guix@gnu.org; Mon, 21 Dec 2015 10:40:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aB2Z8-0001aH-G7 for bug-guix@gnu.org; Mon, 21 Dec 2015 10:40:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87si2yxr5h.fsf@gnu.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-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 19733@debbugs.gnu.org Ludovic Courtès writes: > ludo@gnu.org (Ludovic Courtès) skribis: > >> Ricardo Wurmus skribis: >> >>> Commit 5f6887e8 fixes this for GCJ, but we still have this problem for >>> all variants of gfortran, gcc-objc, and gccgo, all of which are built >>> using the ‘custom-gcc’ procedure. >>> >>> It’s probably safe to add a build phase like this to ‘custom-gcc’: >>> >>> (add-after 'install 'remove-broken-or-conflicting-files >>> (lambda* (#:key outputs #:allow-other-keys) >>> (for-each delete-file >>> (find-files (string-append (assoc-ref outputs "out") "/bin") >>> ".*(c\\+\\+|cpp|g\\+\\+|gcc.*)")) >>> #t)) >> >> Sounds like it should work. The pattern should also include ‘gcov’. > > Could you give it a try? > > Ludo’, trying to tidy up the bug database. :-) Wouldn’t this cause a rebuild of a very large number of packages? Should I push the above (with ‘gcov’ added to the pattern) to a wip branch? ~~ Ricardo