Subject: print/html2ps/patches & sha1(1) errors
To: None <pkgsrc-users@netbsd.org>
From: Oliver Gould <ogould@olix0r.net>
List: pkgsrc-users
Date: 04/12/2007 16:24:51
--sm4nu43k4a2Rpi4c
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello-

I'm observing an especially odd checksum error when building
print/html2ps.

distfiles says:
  SHA1 (patch-aa) =3D 0666fe8aa37f141c44c51466b359a662d1e66090
  SHA1 (patch-ab) =3D b541a724106572e2d82dfc9a73b3e11b22a9136b

when sha1(1) says:
  $ sha1 patch-aa patch-ab=20
  SHA1 (patch-aa) =3D 53cba168456ec7e3587f37c078e77c70b48808b7
  SHA1 (patch-ab) =3D 642f38c8d48177810056376c401ac5ccad1ad605

However, I noticed something especially confusing while trying to verify
that the error is not on my end.  I went to look at patch-aa on cvsweb,
and copied the text of the patch file into the stdin of sha1.  However,
the entire buffer didn't copy into the terminal- only the first 36 lines
or so- like so:
  $ sha1
  $NetBSD: patch-aa,v 1.4 2006/05/26 18:19:15 wiz Exp $

  --- install.orig        2005-03-03 12:25:29.000000000 +0000
  +++ install
  ----8<---- snip ----8<----
  -$def =3D $ans=3D~/^y/i;
  +$sharedir =3D "share";
 =20
  -if($def) {
  -    &getval($prefix, "$p
If I hit Ctrl+D at _this_ point, the _same_ checksum is returned as when
invoked on the file by name.

It is my theory now that the checksum in distfiles is actually correct,
and that the behavior of sha1 is actually at fault.  I have observed
this behavior on NetBSD 2.1 and 4.99.~15. =20

I am totally miffed, though- any ideas what is going wrong?  Can anyone
else corroborate this problem?

  - Oliver

--sm4nu43k4a2Rpi4c
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (NetBSD)

iQEVAwUBRh6Vk/BcMTqzwkq9AQJTDgf/b4nywmRZsYPPVjxgkVDZJCSepPHo0Ey1
bP8jbZA84yvTiolTYQbjxbw+bFzVggCd4mEvfNFMHgaq2k4gLv9FZA95B6DIBBHT
RBkqx6cN7M1dFgnGmn/dBMpV0IacOgYI5veznzFsobGvfRq0xEK/3rGrq3bopAoc
DIMEPNp7I28wxEsraRLoS5Vra0hwfwX6h6YbVrX9OR6ShRXLEOqWuOAGoWPoACAr
mb9Q5PFYCJWdXieRxkX8WfXcWIgkCG9Q9PGxDjL6qe56ptOH2/28KFLSG/fxuWRL
iTOruHWMFYCfd8JDYsjn2+rVGLtNdiY1zGwO6uqv1w7ZBByYEx6VhA==
=BU+f
-----END PGP SIGNATURE-----

--sm4nu43k4a2Rpi4c--