From owner-freebsd-toolchain@freebsd.org Fri Jul 24 19:05:57 2015 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 78DE39A96CC for ; Fri, 24 Jul 2015 19:05:57 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 636A31E7C for ; Fri, 24 Jul 2015 19:05:57 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 5F122F7EB; Fri, 24 Jul 2015 19:05:57 +0000 (UTC) Date: Fri, 24 Jul 2015 19:05:57 +0000 To: freebsd-toolchain@freebsd.org From: "emaste (Ed Maste)" Reply-to: D3190+334+e8196c498a0a8881@FreeBSD.org Subject: [Differential] [Updated, 3 lines] D3190: ar: enable deterministic mode by default Message-ID: <923e5ec594a7681f2b169e3bcd00397c@localhost.localdomain> X-Priority: 3 Thread-Topic: D3190: ar: enable deterministic mode by default X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MzVlMzIyZDNiYWU2MDVjNDdkNGI1NGVjMmJiIFWyjJU= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_923e5ec594a7681f2b169e3bcd00397c" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jul 2015 19:05:57 -0000 --b1_923e5ec594a7681f2b169e3bcd00397c Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit emaste updated this revision to Diff 7272. emaste added a comment. Add note of -D default in man page. CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D3190?vs=7271&id=7272 REVISION DETAIL https://reviews.freebsd.org/D3190 AFFECTED FILES usr.bin/ar/ar.1 usr.bin/ar/ar.c CHANGE DETAILS diff --git a/usr.bin/ar/ar.c b/usr.bin/ar/ar.c --- a/usr.bin/ar/ar.c +++ b/usr.bin/ar/ar.c @@ -104,6 +104,8 @@ bsdar = &bsdar_storage; memset(bsdar, 0, sizeof(*bsdar)); + /* Enable deterministic mode by default. */ + bsdar->options |= AR_D; if ((bsdar->progname = getprogname()) == NULL) bsdar->progname = "ar"; diff --git a/usr.bin/ar/ar.1 b/usr.bin/ar/ar.1 --- a/usr.bin/ar/ar.1 +++ b/usr.bin/ar/ar.1 @@ -210,6 +210,7 @@ .Ar . This ensures that checksums on the resulting archives are reproducible when member contents are identical. +This option is enabled by default. If multiple .Fl D and EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: emaste, bapt, brooks Cc: freebsd-toolchain-list --b1_923e5ec594a7681f2b169e3bcd00397c Content-Type: text/x-patch; charset=utf-8; name="D3190.7272.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D3190.7272.patch" ZGlmZiAtLWdpdCBhL3Vzci5iaW4vYXIvYXIuYyBiL3Vzci5iaW4vYXIvYXIuYwotLS0gYS91c3Iu YmluL2FyL2FyLmMKKysrIGIvdXNyLmJpbi9hci9hci5jCkBAIC0xMDQsNiArMTA0LDggQEAKIAog CWJzZGFyID0gJmJzZGFyX3N0b3JhZ2U7CiAJbWVtc2V0KGJzZGFyLCAwLCBzaXplb2YoKmJzZGFy KSk7CisJLyogRW5hYmxlIGRldGVybWluaXN0aWMgbW9kZSBieSBkZWZhdWx0LiAqLworCWJzZGFy LT5vcHRpb25zIHw9IEFSX0Q7CiAKIAlpZiAoKGJzZGFyLT5wcm9nbmFtZSA9IGdldHByb2duYW1l KCkpID09IE5VTEwpCiAJCWJzZGFyLT5wcm9nbmFtZSA9ICJhciI7CmRpZmYgLS1naXQgYS91c3Iu YmluL2FyL2FyLjEgYi91c3IuYmluL2FyL2FyLjEKLS0tIGEvdXNyLmJpbi9hci9hci4xCisrKyBi L3Vzci5iaW4vYXIvYXIuMQpAQCAtMjEwLDYgKzIxMCw3IEBACiAuQXIgLgogVGhpcyBlbnN1cmVz IHRoYXQgY2hlY2tzdW1zIG9uIHRoZSByZXN1bHRpbmcgYXJjaGl2ZXMgYXJlIHJlcHJvZHVjaWJs ZQogd2hlbiBtZW1iZXIgY29udGVudHMgYXJlIGlkZW50aWNhbC4KK1RoaXMgb3B0aW9uIGlzIGVu YWJsZWQgYnkgZGVmYXVsdC4KIElmIG11bHRpcGxlCiAuRmwgRAogYW5kCgo= --b1_923e5ec594a7681f2b169e3bcd00397c--