From owner-freebsd-ports@freebsd.org Tue Aug 14 16:09:13 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0FF65107CA13 for ; Tue, 14 Aug 2018 16:09:13 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-it0-x229.google.com (mail-it0-x229.google.com [IPv6:2607:f8b0:4001:c0b::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 955DA76F04; Tue, 14 Aug 2018 16:09:12 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-it0-x229.google.com with SMTP id g141-v6so20448924ita.4; Tue, 14 Aug 2018 09:09:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yR2q8GELML+14KYarYHnbcyPmwI4TiG9R5ynOdLqLF0=; b=J7BSsffuIn9+Jz9VSMy4kl9MX23PIg1qze8uCiLkNJdrIfo5DVf3HOU/tLL4OuFCV0 T4JolbNhMNzph5YGxh7yAPcJRX39spttgkcbl/YrrtyslXsfM/xzPIfM+h9EMdb8L8N6 YaGVYS+MbFL0hsia/UG8g0KMGPJAWXpQpifQhTwBkSnUF8idIyS01fzma2JMYzmP9Pc7 R/ZbjnDEXex+6yMnLPp8wJG+sjrt3XgT3sAdt5uYhrE53wxAM26jByhTlHntPO0YYsRJ ZEORH8FIhvyjY7fgsosxt54n96YlzpChlfNN0BDFVo+6XSyS0nyb6WxP0LNCv9Me69yF jI7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yR2q8GELML+14KYarYHnbcyPmwI4TiG9R5ynOdLqLF0=; b=djytZPcXHvIVhebZmR44DNHTq0NsCyoGYEKWhGgqRx2POa1D1oCI0H0BW4FnN6mHhH yQUHGUNoSKurChRRUrBLDbG7Qszl3dq/iWroigI4RTQOQmO1V3qjMsxXBmnDD7FmW9rc JwwATAPyfhbk6LEdxOeB8yYWhgSt+66V+4S8V4F9gUiiLv5tDTa008NuOlGFa2PXlRvF ayUVyV6oFawDZotIxqnXLCg5DMWpYPbtN9zHdMC+kQSHWd//Lr3uhO5j8a8m4Xb0yk1I DzyYQdyJyM7sAHCaKLzcyRAMsbtHZToki/J2NhKu+vmJT84gm+rqJjQ4lV1/jNUE1bwY BNUQ== X-Gm-Message-State: AOUpUlErqa1/zE4fZRDtEvY8LGdvNSdu9Gwtsm4yVhCSv4SDyMIcF5iH C7k35q8vpJBPISx76v1hKATwoUJm9B32Ydo+Nsxqmw== X-Google-Smtp-Source: AA+uWPyu56+bYV2NDoTj/SEd4pPjdCO2d4bdC6nWpxuOYIQaXiL2CJGc+k85Ucyue0UpF+iwrotTeACVvmgVgQRTBbU= X-Received: by 2002:a24:60d:: with SMTP id 13-v6mr15510991itv.1.1534262951699; Tue, 14 Aug 2018 09:09:11 -0700 (PDT) MIME-Version: 1.0 References: <05457c2b-b85c-a929-20e7-38ff1b2899d6@collabora.com> <87211ccd-bb2f-cd03-ecde-fd123d0c9ca5@collabora.com> <20180814153338.bujxg3a5uswj3y5n@ogg.in.absolight.net> In-Reply-To: <20180814153338.bujxg3a5uswj3y5n@ogg.in.absolight.net> From: blubee blubeeme Date: Wed, 15 Aug 2018 00:09:00 +0800 Message-ID: Subject: Re: workflow question: how do you maintain the port in sync with upstream? To: Mathieu Arnold Cc: Helen Koike , FreeBSD Ports Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Aug 2018 16:09:13 -0000 On Tue, Aug 14, 2018 at 11:33 PM Mathieu Arnold wrote: > On Tue, Aug 14, 2018 at 10:41:43PM +0800, blubee blubeeme wrote: > > This one is fairly straight forward, you can simply replace that string > > with a regex command; > > This is an example of running a replace command for strings after the > patch > > phase of the build; > > > > post-patch: > > @${REINPLACE_CMD} -e 's|for Linux|for FreeBSD|g' ${WRKSRC}/README > > Patching files in post-patch using sed SHOULD only be used to replace > dynamic content, never static content. > This is missing the point of the email since you can call that command in any stage of the port build process. Maybe we could append this info to the porters handbook. > > -- > Mathieu Arnold >