From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-bk0-x234.google.com ([2a00:1450:4008:c01::234]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1WV19I-0001VR-Lx for ptxdist@pengutronix.de; Tue, 01 Apr 2014 18:02:57 +0200 Received: by mail-bk0-f52.google.com with SMTP id my13so1336215bkb.25 for ; Tue, 01 Apr 2014 09:02:45 -0700 (PDT) From: Alexander Aring Date: Tue, 1 Apr 2014 18:02:33 +0200 Message-Id: <1396368155-27756-2-git-send-email-alex.aring@gmail.com> In-Reply-To: <1396368155-27756-1-git-send-email-alex.aring@gmail.com> References: <1396368155-27756-1-git-send-email-alex.aring@gmail.com> Subject: [ptxdist] [PATCH 1/3] powertop: remove powertop package Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Alexander Aring This patch removes the current version of powertop. The URL of the current version ends up in a 404 not found and there is already a newer version with autotools support. Signed-off-by: Alexander Aring --- patches/powertop-1.11/add-ldflags.diff | 31 --------------- patches/powertop-1.11/remove-bashism.patch | 37 ----------------- patches/powertop-1.11/series | 2 - rules/powertop.in | 21 ---------- rules/powertop.make | 64 ------------------------------ 5 files changed, 155 deletions(-) delete mode 100644 patches/powertop-1.11/add-ldflags.diff delete mode 100644 patches/powertop-1.11/remove-bashism.patch delete mode 100644 patches/powertop-1.11/series delete mode 100644 rules/powertop.in delete mode 100644 rules/powertop.make diff --git a/patches/powertop-1.11/add-ldflags.diff b/patches/powertop-1.11/add-ldflags.diff deleted file mode 100644 index 44c92f0..0000000 --- a/patches/powertop-1.11/add-ldflags.diff +++ /dev/null @@ -1,31 +0,0 @@ -From: Marc Kleine-Budde -Subject: use LDFLAGS during linking - -powertop fails to link, if ncursesw isn't in the -standard library search path. - -It fails even if the LDFLAGS have the appropriate -L. -This patch add LDFLAGS to the linker invocation. - -Signed-off-by: Marc Kleine-Budde - -send upstream to power@bughost.org -should appear here soon: http://www.bughost.org/pipermail/power/2009-April/thread.html - ---- - Makefile | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -Index: powertop-1.11/Makefile -=================================================================== ---- powertop-1.11.orig/Makefile -+++ powertop-1.11/Makefile -@@ -20,7 +20,7 @@ OBJS = powertop.o config.o process.o mis - - - powertop: $(OBJS) Makefile powertop.h -- $(CC) ${CFLAGS} $(OBJS) -lncursesw -o powertop -+ $(CC) ${CFLAGS} $(LDFLAGS) $(OBJS) -lncursesw -o powertop - @(cd po/ && $(MAKE)) - - powertop.1.gz: powertop.1 diff --git a/patches/powertop-1.11/remove-bashism.patch b/patches/powertop-1.11/remove-bashism.patch deleted file mode 100644 index ba2bce8..0000000 --- a/patches/powertop-1.11/remove-bashism.patch +++ /dev/null @@ -1,37 +0,0 @@ -From: http://ftp.de.debian.org/debian/pool/main/p/powertop/powertop_1.11-1.diff.gz - -Signed-off-by: Marc Kleine-Budde - -#! /bin/sh /usr/share/dpatch/dpatch-run -## remove-bashism.dpatch by Patrick Winnertz -## -## All lines beginning with `## DP:' are a description of the patch. -## DP: remove some bashisms in the output - -@DPATCH@ -diff --git a/cpufreq.c b/cpufreq.c -index ab84dc4..a291fdf 100644 ---- a/cpufreq.c -+++ b/cpufreq.c -@@ -39,7 +39,7 @@ static void activate_ondemand(void) - FILE *file; - char filename[PATH_MAX]; - -- system("/sbin/modprobe cpufreq_ondemand &> /dev/null"); -+ system("/sbin/modprobe cpufreq_ondemand > /dev/null 2>&1"); - - - dir = opendir("/sys/devices/system/cpu"); -diff --git a/powertop.c b/powertop.c -index fc605ec..4d18de8 100644 ---- a/powertop.c -+++ b/powertop.c -@@ -798,7 +798,7 @@ int main(int argc, char **argv) - if (!dump) - ticktime = 5.0; - -- system("/sbin/modprobe cpufreq_stats &> /dev/null"); -+ system("/sbin/modprobe cpufreq_stats > /dev/null 2>&1"); - read_data(&start_usage[0], &start_duration[0]); - - diff --git a/patches/powertop-1.11/series b/patches/powertop-1.11/series deleted file mode 100644 index 1bb7176..0000000 --- a/patches/powertop-1.11/series +++ /dev/null @@ -1,2 +0,0 @@ -add-ldflags.diff -remove-bashism.patch diff --git a/rules/powertop.in b/rules/powertop.in deleted file mode 100644 index 56e7521..0000000 --- a/rules/powertop.in +++ /dev/null @@ -1,21 +0,0 @@ -## SECTION=debug_tools - -config POWERTOP - tristate - prompt "powertop" - select GCCLIBS_GCC_S - select NCURSES - help - PowerTOP is a Linux tool that finds the software - component(s) that make your laptop use more power than - necessary while it is idle. As of Linux kernel version - 2.6.21, the kernel no longer has a fixed 1000Hz timer - tick. This will (in theory) give a huge power savings - because the CPU stays in low power mode for longer periods - of time during system idle. - - However... there are many things that can ruin the party, - both inside the kernel and in userspace. PowerTOP combines - various sources of information from the kernel into one - convenient screen so that you can see how well your system - is doing, and which components are the biggest problem. diff --git a/rules/powertop.make b/rules/powertop.make deleted file mode 100644 index a3be360..0000000 --- a/rules/powertop.make +++ /dev/null @@ -1,64 +0,0 @@ -# -*-makefile-*- -# -# Copyright (C) 2009 by Marc Kleine-Budde -# -# See CREDITS for details about who has contributed to this project. -# -# For further information about the PTXdist project and license conditions -# see the README file. -# - -# -# We provide this package -# -PACKAGES-$(PTXCONF_POWERTOP) += powertop - -# -# Paths and names -# -POWERTOP_VERSION := 1.11 -POWERTOP_MD5 := 3498f5983c683c3a57dce7379a722082 -POWERTOP := powertop-$(POWERTOP_VERSION) -POWERTOP_SUFFIX := tar.gz -POWERTOP_URL := http://www.lesswatts.org/projects/powertop/download/$(POWERTOP).$(POWERTOP_SUFFIX) -POWERTOP_SOURCE := $(SRCDIR)/$(POWERTOP).$(POWERTOP_SUFFIX) -POWERTOP_DIR := $(BUILDDIR)/$(POWERTOP) - -# ---------------------------------------------------------------------------- -# Prepare -# ---------------------------------------------------------------------------- - -POWERTOP_PATH := PATH=$(CROSS_PATH) - -POWERTOP_COMPILE_ENV := $(CROSS_ENV) -POWERTOP_MAKEVARS := BINDIR=/usr/sbin - -$(STATEDIR)/powertop.prepare: - @$(call targetinfo) -ifdef PTXCONF_NCURSES_WIDE_CHAR - sed -i -e "s/-lncurses[^ ]*/-lncursesw/g" "$(POWERTOP_DIR)/Makefile" -else - sed -i -e "s/-lncurses[^ ]*/-lncurses/g" "$(POWERTOP_DIR)/Makefile" -endif - @$(call touch) - -# ---------------------------------------------------------------------------- -# Target-Install -# ---------------------------------------------------------------------------- - -$(STATEDIR)/powertop.targetinstall: - @$(call targetinfo) - - @$(call install_init, powertop) - @$(call install_fixup, powertop,PRIORITY,optional) - @$(call install_fixup, powertop,SECTION,base) - @$(call install_fixup, powertop,AUTHOR,"Marc Kleine-Budde ") - @$(call install_fixup, powertop,DESCRIPTION,missing) - - @$(call install_copy, powertop, 0, 0, 0755, -, /usr/sbin/powertop) - - @$(call install_finish, powertop) - - @$(call touch) - -# vim: syntax=make -- 1.9.1 -- ptxdist mailing list ptxdist@pengutronix.de