From owner-freebsd-pkgbase@freebsd.org Sun May 12 07:30:29 2019 Return-Path: Delivered-To: freebsd-pkgbase@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 69E02158F81E for ; Sun, 12 May 2019 07:30:29 +0000 (UTC) (envelope-from mj-mailinglist@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F8DF8C60D for ; Sun, 12 May 2019 07:30:28 +0000 (UTC) (envelope-from mj-mailinglist@gmx.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1557646219; bh=bHg76C1JTf1dQFfYXN8HpaIKPWTtsfcWw6j1nH+DozA=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=Wib6sLW712kZskFcku7102ReTHTlFRt4VxvL+t3zHWFWQGULRmr2rporKXWKfJ+bx IkpHtTU7vLj1/QTgLA9jVYpkqhKP4sqjSlf8tWPlx6YvL/+6loC6zVzEdTFYV/qdAI xWFavnEa2GeqdIdCnvoKEyPqS0lVdxnZpt9sDcCM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [89.245.32.253] ([89.245.32.253]) by web-mail.gmx.net (3c-app-gmx-bs32.server.lan [172.19.170.84]) (via HTTP); Sun, 12 May 2019 09:30:19 +0200 MIME-Version: 1.0 Message-ID: From: mj-mailinglist@gmx.de To: "Emmanuel Vadot" Cc: freebsd-pkgbase@freebsd.org Subject: Aw: Re: Existing passwd and group files overwritten by pkgbase upgrade Content-Type: text/plain; charset=UTF-8 Date: Sun, 12 May 2019 09:30:19 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <20190511154410.1a74fecbd8cecef669bb6acf@bidouilliste.com> References: <20190511154410.1a74fecbd8cecef669bb6acf@bidouilliste.com> Content-Transfer-Encoding: quoted-printable X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:AalnGpoVYJcgBBHxP9SBfAR3H2c7FPn3PWo82LNhqp87YDJuC6hA9PdZ1Gj5aYw5J4KO8 4nwHLVix1hQUJotbtp6Choq/Zsp8e0IpjLiWOEowDZ/F8BxIIA/IyrRx1hRUvNmd4N5/PCH4qVsb bN8doERaqcE0wQZAQqHOd0zxfmP9xrkDSE/yTrHS2GU2mobxZqnNZd1iUsJqijy6BJco3fljBeUC RgUHOMjXKM+qCuwtqlzh0qnIcfbYlTejY9xZ0bjyEFFosdcPMc12Mr2mylZDR9F19ahk7U8qKuK7 ZE= X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:2OMadaBAt3c=:stJCC1mDv7YPFqgvWXxmiS 3QQ2UgL9Me9VoawzT/2tyE3uzEPcB7qX38fvVZ4fG2KTfMZW0P7nh2fZeZO80mbAu6enyg6hu 1rKlJAnFO76H/qQRLzp2TfdYYEH+V+MjKzHM/8X4M1q2nsjsYer9e+bJEn2mLPAlYB4dInqDf Ddhg35EFSXJGPJgTfeVSL+50Gb0v4GF+4EAXKOMJpwlM5OC3N6XQ51S8NS+bxDPCHU5F0NdpT FHfslPpGE0+qpy9wg6G7hIyYBpSklv72IisMf0nFz3SE9aGyWTGl2ReeNZAvDtTPWYOtZLGAp 4xIC9i2ooanOtv2isTP77XPxMizimXaTjDAjxpLjgmT4DqUun4d9bUp9HJmVdCEuXO4o4y6vX qJiSS3qaZDgl5PPlLD3bS0I+f9phDZ2Hj2q1Tnqcmt7RCE/+LgtxShG4HS5rt/XRDwpanGLfj V7+2Lqr1vjIdQMYyc1PA815wvhe4u/Cu3wVHBAMwrSCL7aVuM3+ToElQn0FaBQxTxSQQ8nwdm SoUcSsf+tNaz2HHFzDeEINv8KjqfE9u3Dm4rg31OdRiojtHL7+0EmWGAGkVRyUW0u++/eyntO NpLbd7ZrZ6uTCoDQw10Ld29KYVd8Osw9X31FyDZdHvJhktQMcS2Kb27g== X-Rspamd-Queue-Id: 4F8DF8C60D X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=Wib6sLW7; spf=pass (mx1.freebsd.org: domain of mj-mailinglist@gmx.de designates 212.227.15.19 as permitted sender) smtp.mailfrom=mj-mailinglist@gmx.de X-Spamd-Result: default: False [-4.07 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:212.227.15.0/25]; FREEMAIL_FROM(0.00)[gmx.de]; DKIM_TRACE(0.00)[gmx.net:+]; RCPT_COUNT_TWO(0.00)[2]; HAS_X_PRIO_THREE(0.00)[3]; MX_GOOD(-0.01)[cached: mx00.emig.gmx.net]; NEURAL_HAM_SHORT(-0.91)[-0.914,0]; RCVD_IN_DNSWL_LOW(-0.10)[19.15.227.212.list.dnswl.org : 127.0.3.1]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmx.de]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; RECEIVED_SPAMHAUS_PBL(0.00)[253.32.245.89.zen.spamhaus.org : 127.0.0.10]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[gmx.net:s=badeba3b8450]; MIME_TRACE(0.00)[0:+]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[gmx.de]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_NO_DN(0.00)[]; IP_SCORE(-1.05)[ip: (-5.64), ipnet: 212.227.0.0/16(-1.52), asn: 8560(1.91), country: DE(-0.01)]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-pkgbase@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Packaging the FreeBSD base system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 May 2019 07:30:29 -0000 > > Hi Ashley, > > > > I guess this=C2=A0change=C2=A0is=C2=A0the cause:=C2=A0https://reviews= =2Efreebsd=2Eorg/D20173 > > It marks the group and=C2=A0the master=2Epasswd file for inclusion in = the=C2=A0 > > FreebSD-runtime package=2E > > I tried this change on my 12 system,=C2=A0the files are included in th= e > > package=2E You also see them in the runtime=2Eplist=C2=A0file, but as = regular file, > > not marked as a config file, like the motd file for example=2E > > =C2=A0 > > =2E=2E=2E > > @(root,wheel,0644,) /etc/group > > @(root,wheel,0600,) /etc/master=2Epasswd > > @config(root,wheel,0644,) /etc/motd > > =2E=2E=2E > > =C2=A0 > > i guess now the existing file is replaced by the new file, instead of = beeing > > merged with it=2E > > i think,=C2=A0the tag "config" must be added to the above patch=2E But= i am not sure, > > what the sytnax looks like for this=2E > > =C2=A0 > > -- > > Martin > > =C2=A0 > > > After building and installing -CURRENT r347469 using in-tree pkgbase= , I > > > discovered that my /etc/group, /etc/passwd, /etc/master=2Epasswd, > > > /etc/pwd=2Edb and /etc/spwd=2Edb had been overwritten=2E > > >=C2=A0 > > > I encountered this after running 'make packages', installing into a > > > ZFS Boot Environment using bectl to create and mount a new BE, runni= ng > > > 'pkg -r $mounpoint upgrade -y' and 'pkg -r $mountpoint -yg "FreeBSD-= *"' > > > to upgrade the packages and insure that new base packages got instal= led, > > > and finally unmounting and activating the BE=2E > > >=C2=A0 > > > ~Ashley Chase >=20 >=20 > Yes sorry that's my fault=2E > I beleive the included patch should work but I don't have time to test > right now=2E >=20 > diff --git a/etc/Makefile b/etc/Makefile > index ab70a94bc761=2E=2E4b60868fe3dc 100644 > --- a/etc/Makefile > +++ b/etc/Makefile > @@ -69,9 +69,9 @@ distribution: > rc=2Efirewall ${DESTDIR}/etc; > =2Eendif > cd ${=2ECURDIR}; \ > - ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 -T > "tags=3Dpackage=3Druntime"\ > + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 -T > "tags=3Dpackage=3Druntime,config"\ ${BIN1} ${DESTDIR}/etc; \ > - ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 -T > "tags=3Dpackage=3Druntime"\ > + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 -T > "tags=3Dpackage=3Druntime,config"\ master=2Epasswd ${DESTDIR}/etc; >=20 > =2Eif ${MK_TCSH} =3D=3D "no" >=20 > I'll try to test soon and commit=2E >=20 > -- > Emmanuel Vadot I added the change to the Makefile and run make packages again, now the runtime=2Eplist entries for groups and master=2Epasswd have the "config" attribute: =2E=2E=2E @config(root,wheel,0644,) /etc/group @config(root,wheel,0600,) /etc/master=2Epasswd =2E=2E=2E -- Martin