From nobody Tue Nov 29 06:47:48 2022 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 4NLtFs2zrhz4j08j for ; Tue, 29 Nov 2022 06:48:17 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-vs1-f45.google.com (mail-vs1-f45.google.com [209.85.217.45]) (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 4NLtFs12xlz3KQ7 for ; Tue, 29 Nov 2022 06:48:17 +0000 (UTC) (envelope-from 6yearold@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-vs1-f45.google.com with SMTP id 125so12947790vsi.9 for ; Mon, 28 Nov 2022 22:48:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc: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=QydgvdqDV8wJrC5ZCAU97NsqTw0aUCXHtpAmjlxL+G8=; b=4ff2m/7Ls9dxtWbloDseVtUGodEQxr/nApU3tLyyzCN+RQFaSCuR3auy36JP5BbG9d SySsB/ZGeG0FfMR80FVJmG2W6EmXLFtq80BsweBVMxgDXAPPlDfPAk3ScWztjJKTQ6Lv EUuxw4IxWYxM3sHYEtIkKhJkyAtnoytYzsaDRMPQwerEWaeiqZZseCus4kxrkctNslZV K6U0L2aC2H63GLWR3RCQaIIDFbo2WVZtcWzpuFYInBUswlHWHlw8RXVx85+h55Q9bk+I 05Rqket/ECMrJHPgFcjCLPShyU4vjFmF4gqnDTQ2Jk4VKgpB04bTgSt1VPksuawAJek/ G5ug== X-Gm-Message-State: ANoB5pk5BuuPHNp37Zmv/2zphT+kcJQIrrE6t2lzXyO1SiJ8fmMsyC1u G8eJZsgC4Evf6HjB49S7Fh5Ts4cS/1C1ZZFD X-Google-Smtp-Source: AA0mqf4O5XcgCGZBEW1tyfC1A1h0wt1uS3thnsSTHCozT9ZvtoTfUaQnHAKyvKpT39tkErdz2bWPWQ== X-Received: by 2002:a67:e0de:0:b0:3b0:a793:3d46 with SMTP id m30-20020a67e0de000000b003b0a7933d46mr3808749vsl.62.1669704495756; Mon, 28 Nov 2022 22:48:15 -0800 (PST) Received: from mail-vs1-f48.google.com (mail-vs1-f48.google.com. [209.85.217.48]) by smtp.gmail.com with ESMTPSA id e8-20020ab03568000000b0040ea0b39778sm1725045uaa.11.2022.11.28.22.48.14 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Nov 2022 22:48:15 -0800 (PST) Received: by mail-vs1-f48.google.com with SMTP id 125so12947754vsi.9 for ; Mon, 28 Nov 2022 22:48:14 -0800 (PST) X-Received: by 2002:a67:df06:0:b0:3aa:2cb7:fa41 with SMTP id s6-20020a67df06000000b003aa2cb7fa41mr20552399vsk.45.1669704494799; Mon, 28 Nov 2022 22:48:14 -0800 (PST) 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 References: <667de09b-c23f-42e4-00ba-c52e4266c23a@fechner.net> In-Reply-To: From: Gleb Popov Date: Tue, 29 Nov 2022 09:47:48 +0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Question to EXTRACT_ONLY To: Matthias Fechner Cc: ports@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4NLtFs12xlz3KQ7 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Tue, Nov 29, 2022 at 12:14 AM Matthias Fechner wrote: > > Dear all, > > I found some good explanation in `man make`, but some questions are > open, maybe someone can give a little bit more insight. > > On 28.11.22 19:12, Matthias Fechner wrote: > > EXTRACT_ONLY= ${ALLFILES:Nprebuilt*:} > it takes the variable ${ALLFILES}, the :N operator removes everything > that matches, so in this case every string that begins with prebuilt is > removed. > But what does the last `:` at the end of this string? > > > > EXTRACT_ONLY+= ${DISTFILES:N*.mod\:*:N*.mod:C/:.*//} > > So if I understood this correctly at takes the variable ${DISTFILES} and > removes everything that matches `*.mod:*`. > Then as next it removes everything that matches `*.mod`. > As last step a regular expression is executed that removes `:*` (the * > is here any character), so the string `ksdjhe:sdhg34` is changed to > `ksdjhe`. This one is a correct interpretation. As for the first one, I'm also unsure about the last ":" Maybe it is a part of the :N argument?