From nobody Tue Sep 27 01:44:51 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 4Mc2Vz63kzz4cpVf for ; Tue, 27 Sep 2022 01:44:59 +0000 (UTC) (envelope-from freebsd@gushi.org) Received: from prime.gushi.org (prime.gushi.org [IPv6:2620:137:6000:10::142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "prime.gushi.org", Issuer "RapidSSL TLS DV RSA Mixed SHA256 2020 CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mc2Vz0gQkz3H8R for ; Tue, 27 Sep 2022 01:44:59 +0000 (UTC) (envelope-from freebsd@gushi.org) Received: from smtpclient.apple ([IPv6:2601:602:87f:b05d:b8a8:144:d42d:c717]) (authenticated bits=0) by prime.gushi.org (8.16.1/8.16.1) with ESMTPSA id 28R1iurc004317 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 26 Sep 2022 18:44:57 -0700 (PDT) (envelope-from freebsd@gushi.org) DKIM-Filter: OpenDKIM Filter v2.10.3 prime.gushi.org 28R1iurc004317 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gushi.org; s=prime2014; t=1664243097; bh=RjRmbCPMF94XgMwJk8y0tHnyPijeo+0L+t9fKLA+SPM=; h=From:Subject:Date:To; z=From:=20Dan=20Mahoney=20|Subject:=20pkg=20ques tion:=20how=20to=20patch=20a=20startup=20file,=20but=20make=20it=2 0so=20that=20an=0D=0A=20upgrade=20to=20the=20package=20still=20ove rwrites=20it|Date:=20Mon,=2026=20Sep=202022=2018:44:51=20-0700|To: =20ports@freebsd.org; b=i6g3o4gQ4RKxZJ81V/rlw8erMs9y/HdFi34PF7ULOfTWEb8wjdqLdcCKWeV51949s 7edDs366fT3XLz+OQ3dw+L1SRAwZPrNg9qS2aN7ZZmEePPdQ9PC2tXtOokw83B/xfA RO8j8XNQWnXLSUQS2g8kn0Nm4izqOwuShPPwQEKg+u4lAx4B+++7rFZWyUwcC0dn2g FvtHsB7NJDGqg9VJKb0L9phbrLWmEo8rP1RqfRQ5JbhbBs4ZfoAVtyl+343L5CobBG CiAdHDIt02IwgKVZXmgrYfS3fMBhz7SBTSWACiSr4H9rgeMl2nm2/QboIvVb08JZPa eFnesWib+k+dw== X-Authentication-Warning: prime.gushi.org: Host [IPv6:2601:602:87f:b05d:b8a8:144:d42d:c717] claimed to be smtpclient.apple From: Dan Mahoney Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: pkg question: how to patch a startup file, but make it so that an upgrade to the package still overwrites it Message-Id: <335B9554-093C-4397-884E-4021C55F64FC@gushi.org> Date: Mon, 26 Sep 2022 18:44:51 -0700 To: ports@freebsd.org X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4Mc2Vz0gQkz3H8R X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gushi.org header.s=prime2014 header.b=i6g3o4gQ; dmarc=pass (policy=none) header.from=gushi.org; spf=pass (mx1.freebsd.org: domain of freebsd@gushi.org designates 2620:137:6000:10::142 as permitted sender) smtp.mailfrom=freebsd@gushi.org X-Spamd-Result: default: False [-6.20 / 15.00]; DWL_DNSWL_MED(-2.00)[gushi.org:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MV_CASE(0.50)[]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; DMARC_POLICY_ALLOW(-0.50)[gushi.org,none]; R_DKIM_ALLOW(-0.20)[gushi.org:s=prime2014]; RCVD_IN_DNSWL_MED(-0.20)[2620:137:6000:10::142:from]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[ports@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MLMMJ_DEST(0.00)[ports@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_DN_NONE(0.00)[]; HAS_XAW(0.00)[]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[gushi.org:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:393507, ipnet:2620:137:6000::/44, country:US]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N All, At the day job we've found a bug in an rcfile (for open-vm-tools), that = conflicts with our puppet install. We've already told the pkg = maintainer, pointed out the problem, might also go ahead and file a pr = so there's an available patch. In the mean time, all our puppet runs are reporting failures because of = this. Is there a "correct" way to change the main rc.d file, but still have it = such that a new version of the pkg will overwrite this with a fixed = version? I know that pkg normally will refuse to delete a file in = /usr/local/etc that has local changes. -Dan=