From owner-freebsd-questions@freebsd.org Sat Mar 6 15:40:25 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 671D156B21C for ; Sat, 6 Mar 2021 15:40:25 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (ns.dreamchaser.org [66.109.141.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "dreamchaser.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Dt8211CQqz4WBQ; Sat, 6 Mar 2021 15:40:24 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from breakaway.dreamchaser.org (breakaway [192.168.151.122]) by nightmare.dreamchaser.org (8.15.2/8.15.2) with ESMTP id 126FeME6093043; Sat, 6 Mar 2021 08:40:22 -0700 (MST) (envelope-from freebsd@dreamchaser.org) Reply-To: freebsd@dreamchaser.org Subject: Re: sed -i empty argument compatibility issue To: Kyle Evans Cc: FreeBSD Mailing List References: <9178f6c5-631a-c2c2-c6b1-8def94a3397b@dreamchaser.org> <42cacf1d-88be-d8a2-9ff4-f82ce378adc7@dreamchaser.org> From: Gary Aitken Message-ID: <698998b7-e46c-b27f-29cf-7abd7b1a0b7b@dreamchaser.org> Date: Sat, 6 Mar 2021 08:35:17 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (nightmare.dreamchaser.org [192.168.151.101]); Sat, 06 Mar 2021 08:40:22 -0700 (MST) X-Rspamd-Queue-Id: 4Dt8211CQqz4WBQ X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Mar 2021 15:40:25 -0000 On 3/5/21 10:42 PM, Kyle Evans wrote: > Is this used only at build-time, or at runtime? The former can just > pull in gsed as a BUILD_DEPENDS and use a BINARY_ALIAS to stash it > first. Autoconfig takes some more work; > ac_cv_path_SED=${LOCALBASE}/bin/gsed instead, maybe. At runtime, your > best option is to patch the script to use gsed and slap a RUN_DEPENDS > on that bad boy. It's a build-time only issue, but I'm trying to come up with a solution that "just works" on both the linux end and the fbsd end, so porting doesn't involve any patch files. A BUILD_DEPENDS and BINARY_ALIAS would work, thanks. I see that now in the porter's hb, 5.17. That may be a better solution, as it would deal with any future instances of non-standard usage, although convincing the linux and windoze folks to use only standard features would be a good thing. Thanks, Gary