From nobody Sat Nov 4 03:32:17 2023 X-Original-To: ports@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 4SMjq94DV8z4yktv for ; Sat, 4 Nov 2023 03:32:37 +0000 (UTC) (envelope-from tatsuki_makino@hotmail.com) Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01olkn2013.outbound.protection.outlook.com [40.92.52.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SMjq90pyQz3Rqn; Sat, 4 Nov 2023 03:32:37 +0000 (UTC) (envelope-from tatsuki_makino@hotmail.com) Authentication-Results: mx1.freebsd.org; none ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VFquZsNYPzq3740zl/pbqnBk0zv9B8QTiLm/oLqpoOBmeRjhWgGkma6sCICsNH9qsn43lHgfmUc58x7YLQgaRN9J5sbDRU1TFdiSOHm3QV999qOGu690Cf9mkdPShaAX6/s3u0wb4sVyXsu6jd1C4P5SYmMCOetkbtPtcbp/7Zj8V8UDMzNsu/eaB2E1qD54kWdZ8JVfk7EStfs0LrlRveny28BmlrUfoDH4YaT52SXbRXG6H81vXf22dejSesSBySFEo/aG5mr7pAQ8L39Lgr1oExoj4nbQSDYS0vWGVKRKjlzzI/eZZPw8y1th1gGWYITz0HdiY+rROD3VnuLa7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=4azDO4LuNsCCO8ZuvDJVYpC3h6RLG48RJsGBFXg3hsk=; b=Dmow/22DXXIYuF3sFFqY+yFkurnw2U493hX8PyACa8XOeoc6sjpRyRJGdg5vJ0r0G+7G7FbRK8JA/Ahs/yuefN7kb9uKpgAnD5YxzNJojH+Yv4pXWslZdcM1FqqJ5GYi497qxLVFxK/dnSQL6p1o1Yl7f5i0vWIUF522FbqawuZfGciLJVmhAP2+IE4jgsV7m7PkraRPFw7rgs3jxWjdv7t0fzwUHCBNsGpjtsAjUOhJ27MxlDYzVG6LWp21puXMTPewea5idUozvxn/RuKkVGsp3mJ5DLjQZ9HbfUgdxNx3sQXa43lTXTuD2dz6/nIJT1bzoeEu1CPNfcvrEHXXWg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4azDO4LuNsCCO8ZuvDJVYpC3h6RLG48RJsGBFXg3hsk=; b=jQR82nGeDJU2ylo8H6SPiPUbFX9WQjxtpWs2evjTdqqzkhPVASkdcAUqHXIVCH8iuldXQKE/gTBz5dm1MKNHEmljS2Z63U1nACpUUAGhW8c+n1cPij2DSPv2VBiqdBJJz7yhVksL+70LWkt6j8TaDpkdXcO5dV1YTbjdwGg/v8IFCJZC7IPL/zyJi4xUTgpDr3QA9sNo64Nsm5KSKx6pZrqXjqVbPXsnAP58bagFhN3cYURb+2Jh4UIFHM5zLSLXKV9q6vkGVEisMG+VKZVKxPyE4DrqkcFO5XeZ/me9eHblpD5OooZVvuU52P2CQs22Q0SPBjaGRIJnfRJ76iARng== Received: from SI2PR01MB5036.apcprd01.prod.exchangelabs.com (2603:1096:4:1f8::9) by KL1PR01MB5497.apcprd01.prod.exchangelabs.com (2603:1096:820:ee::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.24; Sat, 4 Nov 2023 03:32:32 +0000 Received: from SI2PR01MB5036.apcprd01.prod.exchangelabs.com ([fe80::fb1a:653f:16a:b4d2]) by SI2PR01MB5036.apcprd01.prod.exchangelabs.com ([fe80::fb1a:653f:16a:b4d2%5]) with mapi id 15.20.6954.024; Sat, 4 Nov 2023 03:32:32 +0000 Subject: Re: 'USES=shebangfix' doesn't work with samba ports To: Yasuhiro Kimura , "ports@FreeBSD.org" References: <20231101.194831.884534926634764408.yasu@FreeBSD.org> <20231103.181558.155976036412011835.yasu@FreeBSD.org> From: Tatsuki Makino Message-ID: Date: Sat, 4 Nov 2023 12:32:17 +0900 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.4 In-Reply-To: <20231103.181558.155976036412011835.yasu@FreeBSD.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TMN: [bFzPpD0fIwPkMbaDMC0cNDfG/ICEGibI] X-ClientProxiedBy: SG2P153CA0030.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c7::17) To SI2PR01MB5036.apcprd01.prod.exchangelabs.com (2603:1096:4:1f8::9) X-Microsoft-Original-Message-ID: <94713b2d-8bc3-af8e-ab85-2b26fcc48c3e@hotmail.com> List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SI2PR01MB5036:EE_|KL1PR01MB5497:EE_ X-MS-Office365-Filtering-Correlation-Id: eccc580a-6c9a-4d9b-49db-08dbdce6adac X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TTUdxeVDHqit6qsaEHTIF4ibHfPySm0zukPX5/AzLA1n+qxrQqeQov3S7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crT3hYa3M3V1E0?= =?utf-8?B?TGFBQ2tFRHJ0ZU9FVnpwZHRxUGh2MGMvOHNlc2J2Q3d3em9RQUpEUGhCRFIz?= =?utf-8?B?Z09yZWdrMmlnR2ZkTTFOUldEQkE4MGNHZlp3OXdzU1JSQitHbTJTZWJKUWhU?= =?utf-8?B?ZGdVTGcvd0JtbCtDY3VzQXJpSTZ5eUFxYm83QTdXN0JBSXc0bWFXdXFBbnhZ?= =?utf-8?B?V3gwc1NoTU5FR1NZUzdwLzJvUE1RZVBybGs0NGM4aWhrQVZlbkw4UTdlTlll?= =?utf-8?B?TzNFb2lScFR0QkZaSUdZR0dvUzBZT24vSWpySk82bGNBd01XQjk0djlPd05W?= =?utf-8?B?L2FBUkdFZm5NUm1WZ2hOLzlhSWNKU2svc3ZQaC90MlppZHpGZEMwL2tmWTJj?= =?utf-8?Q?qe6dXSP9ApLdt4ePDLK4aaUyencPxKB7rRUZ9u731Xpk=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-d8e84.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: eccc580a-6c9a-4d9b-49db-08dbdce6adac X-MS-Exchange-CrossTenant-AuthSource: SI2PR01MB5036.apcprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2023 03:32:32.4440 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR01MB5497 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:8075, ipnet:40.80.0.0/12, country:US] X-Rspamd-Queue-Id: 4SMjq90pyQz3Rqn Yasuhiro Kimura wrote on 2023/11/03 18:15: > Bug 274885 net/samba413 net/samba416: Make 'USES=shebangfix' work as is expected > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274885 Thank you very much. Then, if the solution is on Mk/Uses/shebangfix.mk side, the following patch could be used. It seems that there was a mechanism in bsd.port.mk to load again at a later time. This would mean that all variables can be handled. Regards. Below is the patch. This has only been written and not tested. diff --git a/Mk/Uses/shebangfix.mk b/Mk/Uses/shebangfix.mk index 20dba527996..92a2093ef08 100644 --- a/Mk/Uses/shebangfix.mk +++ b/Mk/Uses/shebangfix.mk @@ -35,6 +35,11 @@ .if !defined(_INCLUDE_USES_SHEBANGFIX_MK) _INCLUDE_USES_SHEBANGFIX_MK= yes +_USES_POST+= shebangfix +.endif + +.if defined(_POSTMKINCLUDED) && !defined(_INCLUDE_USES_SHEBANGFIX_POST_MK) +_INCLUDE_USES_SHEBANGFIX_POST_MK= yes SHEBANG_LANG+= bash java ksh perl php python ruby tcl tk