Hello community, here is the log from the commit of package irqd for openSUSE:Factory checked in at Wed Sep 21 17:06:53 CEST 2011.
-------- New Changes file: --- /dev/null 2010-08-26 16:28:41.000000000 +0200 +++ /mounts/work_src_done/STABLE/irqd/irqd.changes 2011-09-14 11:23:45.000000000 +0200 @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Wed Sep 14 09:23:19 UTC 2011 - [email protected] + +- Initial package for build.opensuse.org + calling whatdependson for head-i586 New: ---- 0001-libnl3-compile-fix.diff 0002-libnl3-link-fix.diff irqd-0.6.3.tar.xz irqd.changes irqd.init irqd.service irqd.spec ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ irqd.spec ++++++ # # spec file for package irqd # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: irqd Version: 0.6.3 Release: 0 Summary: Multiqueue and RPS-aware IRQ affinity balancer License: GPL-2.0 Group: System/Daemons #Git-Clone: git://github.com/vaesoo/irqd Source: %name-%version.tar.xz Source2: irqd.init Source3: irqd.service # PATCH-FIX-UPSTREAM 0001-libnl3-compile-fix.diff status=sent,accepted Patch1: 0001-libnl3-compile-fix.diff # PATCH-FIX-UPSTREAM 0002-libnl3-link-fix.diff status=sent,accepted Patch2: 0002-libnl3-link-fix.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: pkgconfig(glib-2.0) pkgconfig(libnl-3.0) BuildRequires: pkgconfig(libnl-route-3.0) xz %description irqd is an alternative IRQ balancer for Linux kernels. It balances the IRQs more or less evenly across the CPUs you have in your system. It currently relies on the Receive Packet Steering (RPS) implementation of newer Linux kernels, it is of less use currently if RPS is not available. %prep %if 0%{?__xz:1} %setup -q %else tar -xf "%{S:0}" --use=xz; %setup -DTq %endif %patch -P 1 -P 2 -p1 %build if [ ! -e configure ]; then ./autogen.sh; fi %configure make %{?_smp_mflags} %install b="%buildroot"; %makeinstall mkdir -p "$b/%_initrddir" "$b/lib/systemd/system"; install -pm0755 "%{S:2}" "$b/%_initrddir/irqd"; install -pm0644 "%{S:3}" "$b/lib/systemd/system/irqd.service"; %files %defattr(-,root,root) %_initrddir/irqd /lib/systemd/system/irqd.service %_sbindir/irqd %changelog ++++++ 0001-libnl3-compile-fix.diff ++++++ parent 7346cd009550dbb7f056db783ba816d897e6ed90 () commit c20c63ef683c67df20680516af5d9df28f059918 Author: Jan Engelhardt <[email protected]> Date: Wed Sep 14 10:32:24 2011 +0200 build: fix compilation error with libnl >= 3.1 CC interface.o In file included from /usr/include/libnl3/netlink/route/link.h:18:0, from interface.c:25: /usr/include/linux/if.h:133:8: error: redefinition of ‘struct ifmap’ /usr/include/net/if.h:112:8: note: originally defined here /usr/include/linux/if.h:167:8: error: redefinition of ‘struct ifreq’ /usr/include/net/if.h:127:8: note: originally defined here /usr/include/linux/if.h:216:8: error: redefinition of ‘struct ifconf’ /usr/include/net/if.h:177:8: note: originally defined here --- interface.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/interface.h b/interface.h index 9c04fb8..f4d5a3c 100644 --- a/interface.h +++ b/interface.h @@ -17,8 +17,8 @@ #ifndef INTERFACE_H #define INTERFACE_H -#include <net/if.h> - +#include <sys/socket.h> +#include <linux/if.h> struct interface; struct cpuset; -- # Created with git-export-patch ++++++ 0002-libnl3-link-fix.diff ++++++ parent c20c63ef683c67df20680516af5d9df28f059918 () commit 528745866536de0556dc78a5c92ea48c1921836a Author: Jan Engelhardt <[email protected]> Date: Tue Sep 13 11:52:12 2011 +0200 build: bump for libnl-3.2 and add missing nl-route to linker invocation CCLD irqd interface.o: In function "rtnl_balance_link": /home/jengelh/obs/SU_dev/irqd/irqd/interface.c:340: undefined reference to "rtnl_link_get_name" /home/jengelh/obs/SU_dev/irqd/irqd/interface.c:352: undefined reference to "rtnl_link_get_flags" collect2: ld returned 1 exit status --- Makefile.am | 2 +- configure.ac | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index e9ff88b..12c07a1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,4 +6,4 @@ AM_CFLAGS = ${regular_CFLAGS} ${libglib_CFLAGS} ${libnl_CFLAGS} \ sbin_PROGRAMS = irqd irqd_SOURCES = irqd.c strategy.c interface.c cpu.c event.c log.c -irqd_LDADD = ${libglib_LIBS} ${libnl_LIBS} -lrt +irqd_LDADD = ${libglib_LIBS} ${libnl_LIBS} ${libnl_route_LIBS} -lrt diff --git a/configure.ac b/configure.ac index 34cd43e..792ff8e 100644 --- a/configure.ac +++ b/configure.ac @@ -12,7 +12,8 @@ AC_SUBST([regular_CPPFLAGS]) AC_SUBST([regular_CFLAGS]) PKG_CHECK_MODULES([libglib], [glib-2.0]) -PKG_CHECK_MODULES([libnl], [libnl-3.0]) +PKG_CHECK_MODULES([libnl], [libnl-3.0 >= 3.2]) +PKG_CHECK_MODULES([libnl_route], [libnl-route-3.0 >= 3.2]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT -- # Created with git-export-patch ++++++ irqd.init ++++++ #!/bin/sh # This file was built from /etc/init.d/irq_balancer, which is: # Copyright (c) 1995-2002 SuSE Linux AG, Nuernberg, Germany. # All rights reserved. # ### BEGIN INIT INFO # Provides: irqd # Required-Start: $remote_fs # Should-Start: # Required-Stop: $remote_fs # Should-Stop: # Default-Start: 1 2 3 5 # Default-Stop: 0 6 # Short-Description: irqd daemon providing RPS-aware IRQ balancing on MP-machines # Description: Start irqd to allow interrrupt balancing over multiple CPUs. # Usually all irqs are handled by cpu0--this daemon dynamcally # uses all CPUs for the IRQs. # # # ### END INIT INFO # Check for missing binaries (stale symlinks should not happen) IRQBALANCE_BIN=/usr/sbin/irqd test -x $IRQBALANCE_BIN || exit 5 PROC=$(grep -c '^processor' /proc/cpuinfo) # # Checks if the irq balancer should be started at all on that system. # Returns 0 if the balancer should be started, 1 otherwise. should_start_irqbalance() { # don't start on 1 core systems # still check the number of processors here althought the irq # balancer terminates automatically if number_cpus == 0 # simply to provide a better user output ('unused' vs. 'done') if [ $PROC -le 1 ] ; then return 1 fi # don't start on IA64 SGI SN2 systems (bnc#441505) if [ "$(uname -m)" = ia64 ] && [ -f /proc/sgi_sn/system_serial_number ] ; then logger -t irq_balancer "Not starting irqbalance because we're running on a SGI SN2 system" return 1 fi # start on any other case return 0 } . /etc/rc.status rc_reset case "$1" in start) echo -n "Starting irqd " if should_start_irqbalance ; then startproc $IRQBALANCE_BIN # Remember status and be verbose rc_status -v else # unused rc_status -u fi ;; stop) echo -n "Shutting down irqd " killproc -TERM $IRQBALANCE_BIN # Remember status and be verbose rc_status -v ;; try-restart) $0 status >/dev/null && $0 restart # Remember status and be quiet rc_status ;; restart) $0 stop $0 start # Remember status and be quiet rc_status ;; force-reload|reload) echo -n "Reload service irqd " if [ $PHYS -gt 1 ] || [ $PROC -gt 1 -a $PHYS -eq 0 ] ; then ## if it supports it: killproc -HUP $IRQBALANCE_BIN #touch /var/run/irqbalance.pid rc_status -v else rc_status -u fi ;; status) echo -n "Checking for service irqd " checkproc $IRQBALANCE_BIN rc_status -v ;; probe) ;; *) echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}" exit 1 ;; esac rc_exit ++++++ irqd.service ++++++ [Unit] Description=RPS-aware IRQ balancing daemon After=syslog.target [Service] Type=forking ExecStart=/usr/sbin/irqd [Install] WantedBy=multi-user.target ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
