From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 82BBB3858D28; Thu, 10 Nov 2022 09:24:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 82BBB3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668072265; bh=3Pe0/RQJbShHj2Hae72ymHI1+zST0SMqBkP6AwT5QHs=; h=From:To:Subject:Date:From; b=sqT5l7IugnhDDlrLD88PTRsUTDCutEU6ojl4l5rQ9xCXvwp27PZ4AiIDCEpnFRtzk LARecY2AUCwPnB2CQsc/PkdvMP8WmaKi5LCjS6h2Rooa1JYl1kmlEBWkIjGC/HErXs AKnK5N8BSLjRN1GoweIr+ncrWL0O40b7iGi6B+S8= From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug modula2/107607] New: tools-src/calcpath uses unportable realpath(1) Date: Thu, 10 Nov 2022 09:24:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: modula2 X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: gaius at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107607 Bug ID: 107607 Summary: tools-src/calcpath uses unportable realpath(1) Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: modula2 Assignee: gaius at gcc dot gnu.org Reporter: ro at gcc dot gnu.org Target Milestone: --- When trying to build the devel/modula-2 branch on Mac OS X 10.7/Darwin 11, = it failed when executing gcc/m2/tools-src/calcpath since that Darwin version doesn't have realpath(1) at all. It isn't mentioned in the Autoconf docs which are= a good source for portability advice. The possible alternative readlink -f cannot be used either because, while the command exists, the native version doesn't support the -f option. I'm currently cheating by using the coreutils 9.1 version, but building that on Darwin 11 is sort of a nightmare and seems way overkill just to run a si= ngle script.=