pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/34170: Fixes for estd on NetBSD/amd64 4.x
>Number: 34170
>Category: pkg
>Synopsis: Fixes for estd on NetBSD/amd64 4.x
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Aug 09 05:15:00 +0000 2006
>Originator: Gary Duzan
>Release: NetBSD 4.99.1
>Organization:
Not a lot
>Environment:
System: NetBSD capo 4.99.1 NetBSD 4.99.1 (CAPO64) #5: Tue Aug 8 19:32:50 EDT
2006 gary@capo:/src/sys/arch/amd64/compile/obj.amd64/CAPO64 amd64
Architecture: x86_64
Machine: amd64
>Description:
estd can use the new POWERNOW_K8 support in NetBSD, but there
are some issues with 64 bit support.
>How-To-Repeat:
Try building and running the thing on NetBSD/amd64 current.
>Fix:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# Makefile
# patches/patch-ab
# patches/patch-ac
#
echo x - Makefile
sed 's/^X//' >Makefile << 'END-of-Makefile'
X# $NetBSD: Makefile,v 1.5 2006/07/24 08:11:38 adam Exp $
X
XDISTNAME= estd-r5
XPKGNAME= estd-0.5
XCATEGORIES= sysutils
XMASTER_SITES= http://www.elektro-eel.org/
X
XMAINTAINER= dillo%NetBSD.org@localhost
XHOMEPAGE= http://www.elektro-eel.org/
XCOMMENT= Dynamically sets the CPU-frequency on SpeedStep-enabled CPUs
X
XONLY_FOR_PLATFORM= NetBSD-2.99.*-i386 NetBSD-[3-9]*-i386
NetBSD-[4-9]*-x86_64 DragonFly-*-i386
X
XSUBST_CLASSES+= prefix
XSUBST_STAGE.prefix= do-configure
XSUBST_MESSAGE.prefix= Substituting PREFIX.
XSUBST_FILES.prefix= *.sh
XSUBST_SED.prefix= -e 's|@PREFIX@|${PREFIX}|'
XRCD_SCRIPTS= estd
X
X.include "../../mk/bsd.pkg.mk"
END-of-Makefile
echo x - patches/patch-ab
sed 's/^X//' >patches/patch-ab << 'END-of-patches/patch-ab'
X$NetBSD$
X
X--- estd.c.orig 2006-07-02 14:12:31.000000000 -0400
X+++ estd.c 2006-08-08 20:12:54.000000000 -0400
X@@ -27,6 +27,7 @@
X
X #include <stdlib.h>
X #include <stdio.h>
X+#include <string.h>
X #include <unistd.h>
X #include <time.h>
X #include <sys/param.h>
X@@ -220,7 +221,7 @@ main(int argc, char *argv[])
X int i;
X char frequencies[SYSCTLBUF]; /* XXX Ugly */
X char *fp;
X- int freqsize = SYSCTLBUF;
X+ size_t freqsize = SYSCTLBUF;
X int freqtab[MAX_FREQS];
X int nfreqs = 0;
X int minidx = 0;
END-of-patches/patch-ab
echo x - patches/patch-ac
sed 's/^X//' >patches/patch-ac << 'END-of-patches/patch-ac'
X$NetBSD$
X
X--- estd.sh.orig 2006-08-08 20:28:36.000000000 -0400
X+++ estd.sh 2006-08-08 20:30:02.000000000 -0400
X@@ -1,3 +1,5 @@
X+#!/bin/sh
X+#
X # PROVIDE: estd
X # REQUIRE: DAEMON
X
END-of-patches/patch-ac
exit
Home |
Main Index |
Thread Index |
Old Index