ports/92658: [PATCH] sysutils/heirloom: [Unbreak AMD64 build]

Kris Kennaway kris at obsecurity.org
Wed Feb 1 14:52:41 PST 2006


On Wed, Feb 01, 2006 at 05:41:58PM -0500, Jeffrey H. Johnson wrote:
> OK, I have an update here:
> 
> -----------------------------------
> --- spell/spellin.c.orig      Wed Feb  1 23:34:58 2006
> +++ spell/spellin.c   Wed Feb  1 23:27:02 2006
> @@ -103,7 +103,7 @@
>         z = huff((1L<<HASHWIDTH)/atof(argv[1]));
>         fprintf(stderr, "%s: expected code widths = %f\n",
>             argv[0], z);
> -       for (count = 0; scanf("%lo", (long *)&h) == 1; ++count) {
> +       for (count = 0; scanf("%o", (long *)&h) == 1; ++count) {
>                 if ((t = h >> (HASHWIDTH - INDEXWIDTH)) != u) {
>                         if (bp != B)
>                                 wp++;
> -----------------------------------
> 
> This should work on all architectures where int32_t is the same size
> as int, which I *believe* should cover all current FreeBSD platforms.
> 
> If someone has a better solution, I'd be glad to hear it.  I'm also
> puzzled as to why this seems to work on pointyhat without the 
> modifications but I don't have access to AMD64 running 5 to examine. 

It's probably as simple as that the amd64 5 build hasn't been rerun
since the recent update :)

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20060201/bc531552/attachment.bin


More information about the freebsd-ports mailing list