Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Jun 2015 10:08:59 +0200
From:      Baptiste Daroussin <bapt@freebsd.org>
To:        Xin Li <delphij@delphij.net>
Cc:        d@delphij.net, Sergey Kandaurov <pluknet@freebsd.org>, svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, nectar@FreeBSD.org
Subject:   Re: svn commit: r283969 - head/lib/libutil
Message-ID:  <20150604080858.GA1832@ivaldir.etoilebsd.net>
In-Reply-To: <557003DA.9090205@delphij.net>
References:  <201506032048.t53KmSCf074619@svn.freebsd.org> <CAE-mSOLvc-ofOw7wMXBNqufePJHzJOyRjD2hYFnJKfp2%2BJDKTw@mail.gmail.com> <20150603215841.GF32562@ivaldir.etoilebsd.net> <556F8322.9050602@delphij.net> <20150604052120.GH32562@ivaldir.etoilebsd.net> <557003DA.9090205@delphij.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--T4sUOijqQbZv57TR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Jun 04, 2015 at 12:52:58AM -0700, Xin Li wrote:
>=20
>=20
> On 6/3/15 22:21, Baptiste Daroussin wrote:
> > On Wed, Jun 03, 2015 at 03:43:46PM -0700, Xin Li wrote:
> >> On 06/03/15 14:58, Baptiste Daroussin wrote:
> >>> On Thu, Jun 04, 2015 at 12:51:46AM +0300, Sergey Kandaurov
> >>> wrote:
> >>>> On 3 June 2015 at 23:48, Baptiste Daroussin
> >>>> <bapt@freebsd.org> wrote:
> >>>>> Author: bapt Date: Wed Jun  3 20:48:28 2015 New Revision:=20
> >>>>> 283969 URL:
> >>>>> https://svnweb.freebsd.org/changeset/base/283969
> >>>>>=20
> >>>>> Log: Add a pw_mkdb2(3) function which does the same thing
> >>>>> as pw_mkdb(3) except it takes a new argument allowing to
> >>>>> specify the endianness of the database to generate
> >>>>>=20
> >>>>=20
> >>>> Why not change pw_mkdb()? Is it used outside of the project?
> >>>>=20
> >>> Because that would change the ABI of libutil and it is not a=20
> >>> private library aka we are supposed to maintain ABI
> >>> compatibility as we do not know if it is used or not externally
> >>> to the project. I care about the ABI because I have made this
> >>> change in order to use it in pw(8) and MFC it to stable/10
> >>> before 10.2.
> >>>=20
> >>> libutil is not versionned so this is the only way to not break
> >>> the ABI. Except if someone has a better idea than I do.
> >>=20
> >> Looking at r113596, pwd_mkdb(8) was changed to generate both
> >> legacy (version 3, endianness sensitive) and new (version 4,
> >> machine independent) formats.
> >>=20
> >> Now, after 12 years, is it still sensible to generate legacy
> >> format db entries?  Maybe we should just disable the generation
> >> by default and eventually remove the ability to generate them?
> >>=20
> >=20
> > That could be an option, in this case we could add a -l (legacy)
> > option to pwd_mkdb to allow the users to generate the db in legacy
> > format and drop support support for legacy format in all other
> > tools. Meaning I can revert pw_mkdb2(3)
>=20
> Well, I think the pw_mkdb2(3) should be reverted, because the base
> system libraries are not using the legacy format when new formatted
> entries are present (which is true for databases generated on FreeBSD
> 5+); and if they do, that shall be seen as a bug and we should fix
> these libraries.
>=20
> I have committed r283981-r283983 to implement the default change and
> the -l option.
>=20
done, thank you!

Bapt

--T4sUOijqQbZv57TR
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlVwB5oACgkQ8kTtMUmk6ExTWgCgoVXuu1hJui9ADtOuPaDR38Wi
bW8Anj7z++CJVQoLe0gDlf4oDvsVkevi
=6Mo0
-----END PGP SIGNATURE-----

--T4sUOijqQbZv57TR--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150604080858.GA1832>