From owner-svn-src-all@freebsd.org Wed Feb 3 18:19:42 2016 Return-Path: Delivered-To: svn-src-all@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 4E82CA9A3A8; Wed, 3 Feb 2016 18:19:42 +0000 (UTC) (envelope-from peter@wemm.org) Received: from smtp2.wemm.org (smtp2.wemm.org [IPv6:2001:470:67:39d::78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp2.wemm.org", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 39EDC1309; Wed, 3 Feb 2016 18:19:42 +0000 (UTC) (envelope-from peter@wemm.org) Received: from overcee.wemm.org (canning.wemm.org [192.203.228.65]) by smtp2.wemm.org (Postfix) with ESMTP id F2EABA2E; Wed, 3 Feb 2016 10:19:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wemm.org; s=m20140428; t=1454523582; bh=//4+nICzjlB9YQjLa5F6bi8+xS6lu8D40c6NTybZCo8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=QF1u2P7kS7axO2axsMqsR2KqnBuo4YipSz1ravrhbspftfuVSOuu8V2/Rph6VQvjl fqKaGehPHhEWjOrk0NqblB2C76ikdp+80owowsZn1CITd+UK+OIGSvaCLp1seKAGHc 0wsNgKiWJBuCp7IlnXmMFTwaK05og9nuZdpKjhbU= From: Peter Wemm To: svn-src-all@freebsd.org Cc: svn-src-head@freebsd.org, src-committers@freebsd.org, Dag-Erling =?ISO-8859-1?Q?Sm=F8rgrav?= Subject: Re: svn commit: r292206 - in head/contrib/unbound: . compat daemon dns64 dnstap doc iterator libunbound libunbound/python libunbound/python/doc libunbound/python/doc/modules libunbound/python/examples ... Date: Wed, 03 Feb 2016 10:19:41 -0800 Message-ID: <4187957.tkjBAhizh6@overcee.wemm.org> User-Agent: KMail/4.14.3 (FreeBSD/11.0-CURRENT; KDE/4.14.3; amd64; ; ) In-Reply-To: <2289655.bjqHNzHbLI@overcee.wemm.org> References: <201512141301.tBED1pnR087993@repo.freebsd.org> <2289655.bjqHNzHbLI@overcee.wemm.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2063477.egdlyyyUCA"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Feb 2016 18:19:42 -0000 --nextPart2063477.egdlyyyUCA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" On Wednesday, February 03, 2016 10:10:51 AM Peter Wemm wrote: > On Monday, December 14, 2015 01:01:51 PM Dag-Erling Sm=F8rgrav wrote:= > > Author: des > > Date: Mon Dec 14 13:01:51 2015 > > New Revision: 292206 > > URL: https://svnweb.freebsd.org/changeset/base/292206 > >=20 > > Log: > > Upgrade to Unbound 1.5.7. > >=20 > > Added: > > head/contrib/unbound/.gitignore > > =20 > > - copied unchanged from r292133, vendor/unbound/dist/.gitignor= e > > =20 > > head/contrib/unbound/compat/isblank.c > > =20 > > - copied unchanged from r292133, vendor/unbound/dist/compat/is= blank.c > >=20 > > Modified: > > head/contrib/unbound/Makefile.in >=20 > An error was introduced here that breaks some of the support scripts:= >=20 > @@ -107,16 +107,15 @@ > fi >=20 > # create self-signed cert for server > -cat >request.cfg < -[req] > -default_bits=3D$BITS > -default_md=3D$HASH > -prompt=3Dno > -distinguished_name=3Dreq_distinguished_name > +echo "[req]\n" > request.cfg > +echo "default_bits=3D$BITS\n" >> request.cfg > +echo "default_md=3D$HASH\n" >> request.cfg > +echo "prompt=3Dno\n" >> request.cfg > +echo "distinguished_name=3Dreq_distinguished_name\n" >> request.cfg > +echo "\n" >> request.cfg > +echo "[req_distinguished_name]\n" >> request.cfg > +echo "commonName=3D$SERVERNAME\n" >> request.cfg >=20 > -[req_distinguished_name] > -commonName=3D$SERVERNAME > -EOF > test -f request.cfg || error "could not create request.cfg" >=20 > echo "create $SVR_BASE.pem (self signed certificate)" > @@ -125,16 +124,15 @@ > openssl x509 -in $SVR_BASE.pem -addtrust serverAuth -out > $SVR_BASE"_trust.pem" >=20 > # create client request and sign it, piped > -cat >request.cfg < -[req] > -default_bits=3D$BITS > -default_md=3D$HASH > -prompt=3Dno > -distinguished_name=3Dreq_distinguished_name > +echo "[req]\n" > request.cfg > +echo "default_bits=3D$BITS\n" >> request.cfg > +echo "default_md=3D$HASH\n" >> request.cfg > +echo "prompt=3Dno\n" >> request.cfg > +echo "distinguished_name=3Dreq_distinguished_name\n" >> request.cfg > +echo "\n" >> request.cfg > +echo "[req_distinguished_name]\n" >> request.cfg > +echo "commonName=3D$CLIENTNAME" >> request.cfg >=20 > -[req_distinguished_name] > -commonName=3D$CLIENTNAME > -EOF > test -f request.cfg || error "could not create request.cfg" >=20 > echo "create $CTL_BASE.pem (signed client certificate)" >=20 > Whoever wrote this seems to have confused "echo" with "printf". All = the > trailing "\n" lines cause an openssl error. In the cluster build I h= ad to > remove the "\n" and that was sufficient to bootstrap new instances ag= ain. Filed as https://bugs.freebsd.org/206887 =2D-=20 Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com; KI= 6FJV UTF-8: for when a ' or ... just won\342\200\231t do\342\200\246 --nextPart2063477.egdlyyyUCA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABCAAGBQJWskS9AAoJEDXWlwnsgJ4EyakH/itQjRhzCQOc9XYzWJBkjCXk OkXwbogkkNPbbVftphkyCqf8lbpZRaQRR9xfUngcBU1KQpbxfcpofaMsmTmWxDAP mH9hjHt2+KZOtRDhuj/reCTkQSUylpU44ugKGILHui+lz0N4iNOPuv+E/RxQi3y7 y9R7fIKpu/pjTfVvyEhxUCqG670HxCf/WCSPtnK0JhZyGvB66n2/cOy38KWGPDt3 yl4cBw6jOxvYY6ggNqSsqCbmu5njywVf5Abxjl4iDMRdHexHjUmfGZCu6lE020bg s0LKtMRGS3ixc9Wg6/588yQtoqqk6/MIh1EnI49iWEiPg57lK9jgsmKjPrRlWq8= =/pe/ -----END PGP SIGNATURE----- --nextPart2063477.egdlyyyUCA--