From nobody Thu Apr 25 19:28:47 2024 X-Original-To: freebsd-questions@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 4VQQrt0Szxz5JNtN for ; Thu, 25 Apr 2024 19:29:02 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VQQrs2mGQz4hhk for ; Thu, 25 Apr 2024 19:29:01 +0000 (UTC) (envelope-from tomek@cedro.info) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=fqaxiiux; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::1134) smtp.mailfrom=tomek@cedro.info Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-61b2218ab6fso11786567b3.1 for ; Thu, 25 Apr 2024 12:29:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; t=1714073340; x=1714678140; darn=freebsd.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=aCZYG4JtjNm3iVbV2KDHZLHYAOSrf5dA/uLmSzmSBP8=; b=fqaxiiuxxKYqEcKrGnspj1LpGEzrM3iHJ6F/5KcBf1lTDyPABt9htwFRiE1TuOPnNM wINm4e9QLxWnygxHXJhMv9W50jPOSlG2X0ZinMEi1x+t88uJ4j/aRDg1gyRtWNQqb/6g pd8cruI5usA8Wcnk7e8QWrtqe8dHypB4fgfBwYlCMouYUJ1ASXd2F1YfQUa5J/Pt4Yrb 6AGGwJ6JuC7ZmNhPl3yGuRSvPYuRrzON3UEqNz3PKuqEtR7+At2Y5rK4PqVGe+19jnP7 bdFczyraFejNjB/tS23W55Azd6eNMNb1i/+Pb5p1KrqCIYxB4+Vx4RJQktDCsSV+Ruvc vnGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714073340; x=1714678140; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aCZYG4JtjNm3iVbV2KDHZLHYAOSrf5dA/uLmSzmSBP8=; b=o2K4qJJe5qrXBJCtA4+KOvgEBdOanOt6cuOP3xx15RyfwQMU14PgwizeqLmAu08Pqu AzIZbbUb23hwZjnLjiexpfgCVVWLYgPB7PdBZyls6N6pFiMG9RJy9lbSYXjGavLfdMca Ege2bw4za61BF02KhSccHRfZ/WsR0UlEWnS91Iro7AGwjO4keL0xV0qEP7p8m42chHr1 TlRnkJbTTcrpnk3fVTMBkrdaTvciS0AUERuhzzng901cJal++rpw7Jw4KqD3cZtI4kO+ KlynPGf6g95Up2wyhshmsL/1pfvN9GjyfBYPcoBUx+kNz0n3w3jR14nubCfowpa4lu8h 9Wxw== X-Gm-Message-State: AOJu0YxNzHQ+8Ag//khi62lwOh6Q9upQoKFDKKhtjOx2m3mRotk45sPI 7w/O3JGdiep5VV2qRjmn4DJCM+6PbjMhtRrV1HEWVMkK9XwyKbb1RfkNUG9JxCcYQOy7+KzVqNM = X-Google-Smtp-Source: AGHT+IEPpfBWJ9mMKFzRsy7nSbVFqcMR7ZCjdzOiGbIXAPBmCeb++K9vGLdBVNbrwJtuvcSO2jk2Kw== X-Received: by 2002:a05:690c:6202:b0:610:fc58:c51d with SMTP id hl2-20020a05690c620200b00610fc58c51dmr484597ywb.20.1714073340265; Thu, 25 Apr 2024 12:29:00 -0700 (PDT) Received: from mail-yw1-f175.google.com (mail-yw1-f175.google.com. [209.85.128.175]) by smtp.gmail.com with ESMTPSA id v62-20020a818541000000b0061ab7b7a119sm3660501ywf.21.2024.04.25.12.28.59 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Apr 2024 12:28:59 -0700 (PDT) Received: by mail-yw1-f175.google.com with SMTP id 00721157ae682-61587aa9f4cso15649037b3.3 for ; Thu, 25 Apr 2024 12:28:59 -0700 (PDT) X-Received: by 2002:a5b:70a:0:b0:dc2:65da:d3af with SMTP id g10-20020a5b070a000000b00dc265dad3afmr559226ybq.65.1714073338919; Thu, 25 Apr 2024 12:28:58 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 References: <3DBC8F99-C32B-4AEE-9EB4-99F4CA54DD27@nxg.name> In-Reply-To: <3DBC8F99-C32B-4AEE-9EB4-99F4CA54DD27@nxg.name> From: Tomek CEDRO Date: Thu, 25 Apr 2024 21:28:47 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: bsd sed / make vs bsd sed / make To: FreeBSD Questions Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; R_SPF_NA(0.00)[no SPF record]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MIME_TRACE(0.00)[0:+]; MISSING_XM_UA(0.00)[]; ARC_NA(0.00)[]; DMARC_NA(0.00)[cedro.info]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1134:from,209.85.128.175:received]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[cedro.info:+] X-Rspamd-Queue-Id: 4VQQrs2mGQz4hhk On Thu, Apr 25, 2024 at 8:53=E2=80=AFPM Norman Gray wrote: > Tomek, hello. > On 25 Apr 2024, at 18:36, Tomek CEDRO wrote: > > Is there an elegant way to > > use BSD make here with no dramatic code modification? > > As Souji says, this is not easy in general. Resorting to galling gmake f= rom make wouldn't be pretty, but might be necessary. > > The core of GNU Make and pmake/bmake (ie, the FreeBSD version) are the sa= me, and it's not too hard to write a basic Makefile which will work with bo= th implementations. But as soon as you step beyond that core -- ie, as soo= n as you need a non-basic Makefile -- the two go in different directions, a= nd are almost immediately thoroughly incompatible with each other. Yeah, modification of existing gmakefiles is not an option (too many), and there is a cmake implementation worked on, so I will try simple bmake -> gmake wrapper :-) Thanks everyone :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info