From owner-freebsd-bugs@freebsd.org Thu Jun 16 17:42:01 2016 Return-Path: Delivered-To: freebsd-bugs@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 7045EA76E63 for ; Thu, 16 Jun 2016 17:42:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46DEC1C82 for ; Thu, 16 Jun 2016 17:42:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u5GHg1sq086672 for ; Thu, 16 Jun 2016 17:42:01 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 210330] "ar -s" not deterministic by default Date: Thu, 16 Jun 2016 17:42:01 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jun 2016 17:42:01 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210330 Bug ID: 210330 Summary: "ar -s" not deterministic by default Product: Base System Version: 11.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: emaste@freebsd.org ar(1) produces deterministic output by default for the -q/-r options (append/replace), as described in the -D option: -D When used in combination with the -r or -q option, insert 0's instead of the real mtime, uid and gid values and 0644 instead= of file mode from the members named by arguments file .... This ensures that checksums on the resulting archives are reproduci= ble when member contents are identical. This option is enabled by default. If multiple -D and -U options are specified on the c= om=E2=80=90 mand line, the final one takes precedence. It is not documented here, but this is also the case when ar is invoked as ranlib(1). However, 'ar -s ' is supposed to be equivalent to ranlib: -s Add an archive symbol table (see ar(5)) to the archive specifi= ed by argument archive. Invoking ar with the -s option alone is equivalent to invoking ranlib. but ar -s does not produce deterministic output by default. In addition to -q/-r, ar -s (AR_S in ar.c) will write an archive symbol tab= le if no mode is specified (-s with no other args), or in combination with -p/-t/-x (which are really read-options). --=20 You are receiving this mail because: You are the assignee for the bug.=