From nobody Wed Feb 09 13:27:25 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id A0D6B19B40F5 for ; Wed, 9 Feb 2022 13:27:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jv0zd36J1z4Ygf for ; Wed, 9 Feb 2022 13:27:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 46E645E67 for ; Wed, 9 Feb 2022 13:27:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 219DRPVl078678 for ; Wed, 9 Feb 2022 13:27:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 219DRPEl078677 for ports-bugs@FreeBSD.org; Wed, 9 Feb 2022 13:27:25 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 261829] lang/expect: fix build with only lang/tcl87 installed Date: Wed, 09 Feb 2022 13:27:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: tcltk@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644413245; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cy9FL2mXs8GYbmNDy5wDQ7yfG+T5HMy7HRanZTJnFAQ=; b=IaApPaxnEnqOtShNQ+XliFCpPzf9HN8r1Jggwv6t1Oe8hXfMbzmQwTnzpnqzIkX2YZW7Mm AdtIb1uBtWEFElDFfnzAOXuKqjpxPabGDfGCBRGNqovug+CdP8dLeYm8MliyGU6dp9Bv5M rFY8P2eMWW8IBF2lF0NYZ0eKLuBYcY+BZsIazQ060CywCBoFkmROnApcEhWaSDI6CegHf2 /An0YrwoJk9nJQ0q/5Hc4z9DCYTanihTVUaV6LnZK2bhgwPd0+kqVbao9we61vHpnJcFi0 rDgVPIr23xGbh4NdySRwyizT5lvFx/cBcNC3VMM1i7MaRPldiNsJydQGVubinw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644413245; a=rsa-sha256; cv=none; b=fjawktsUjmEGCoZ34zFhh6ZS4ky1XYVNVNwUsj57CsMm4k5fw4tJPTQyPIcN5NePWPHYvR lchupQWhnhIZALuuXzfaK0Pvqm4bjPQEHe0L9fO7BLtOaBcNysDrKotTEtgUInTRNAyQFK Fjnm0bKDslOsJ2NSmuz1riAJflqfEnjJwKeLHcO4WStddZvZBbSjB0ci0yW2tjFFs67kUq +6mmwnTgOFCJclCF51vNZB6pGbbBuupE8dccq2LT1Q+uSdsarwTMTYiXLHTLUzOI/MfYiK /3OEr/5Y0oIcALVgHlYoWLfp94THlCvzPmn7Bt0KHJsm7ZXVO/YBYbxyzDv8Fw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261829 Bug ID: 261829 Summary: lang/expect: fix build with only lang/tcl87 installed Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: tcltk@FreeBSD.org Reporter: dim@FreeBSD.org Assignee: tcltk@FreeBSD.org Flags: maintainer-feedback?(tcltk@FreeBSD.org) Created attachment 231676 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D231676&action= =3Dedit Replace CONST84 with CONST If you have DEFAULT_VERSIONS+=3Dtcltk=3D8.7 in your make.conf, and therefor= e only have lang/tcl87 installed, lang/expect does not compile, complaining about = an bad identifier "CONST84". With the older lang/tcl86 installed, this is defined in /usr/local/include/tcl8.6/tcl.h: #ifdef USE_NON_CONST # ifdef USE_COMPAT_CONST # error define at most one of USE_NON_CONST and USE_COMPAT_CONST # endif # define CONST84 # define CONST84_RETURN #else # ifdef USE_COMPAT_CONST # define CONST84 # define CONST84_RETURN const # else # define CONST84 const # define CONST84_RETURN const # endif #endif #ifndef CONST86 # define CONST86 CONST84 #endif Since we are now in the next millennium, we can assume const always works, = and replace the CONST84 macro with just CONST. --=20 You are receiving this mail because: You are the assignee for the bug.=