Hello community, here is the log from the commit of package acpid for openSUSE:Factory checked in at 2018-10-02 19:47:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/acpid (Old) and /work/SRC/openSUSE:Factory/.acpid.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "acpid" Tue Oct 2 19:47:35 2018 rev:79 rq:639331 version:2.0.30 Changes: -------- --- /work/SRC/openSUSE:Factory/acpid/acpid.changes 2018-07-31 16:04:25.120058634 +0200 +++ /work/SRC/openSUSE:Factory/.acpid.new/acpid.changes 2018-10-02 19:48:37.249756345 +0200 @@ -1,0 +2,8 @@ +Fri Sep 28 10:53:21 UTC 2018 - [email protected] + +- Update to version 2.0.30 + * configure: Don't use AC_FUNC_MALLOC, AC_FUNC_REALLOC. + * samples: powerbtn: extend the list of known PMS + * samples: powerbtn: fix kde4 power management detection + +------------------------------------------------------------------- Old: ---- acpid-2.0.29.tar.xz New: ---- acpid-2.0.30.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ acpid.spec ++++++ --- /var/tmp/diff_new_pack.ATzkKH/_old 2018-10-02 19:48:39.309754206 +0200 +++ /var/tmp/diff_new_pack.ATzkKH/_new 2018-10-02 19:48:39.317754197 +0200 @@ -17,7 +17,7 @@ Name: acpid -Version: 2.0.29 +Version: 2.0.30 Release: 0 Summary: Daemon to execute actions on ACPI events License: GPL-2.0-or-later ++++++ acpid-2.0.29.tar.xz -> acpid-2.0.30.tar.xz ++++++ ++++ 2876 lines of diff (skipped) ++++ retrying with extended exclude list diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/acpid-2.0.29/Changelog new/acpid-2.0.30/Changelog --- old/acpid-2.0.29/Changelog 2018-04-17 03:23:48.285350136 +0200 +++ new/acpid-2.0.30/Changelog 2018-07-18 14:21:51.625067115 +0200 @@ -1,3 +1,13 @@ +* 2.0.30 2018-07-18 Ted Felix <[email protected]> + - 2.0.30 release + (configure.ac) (Ted Felix) + - configure: Don't use AC_FUNC_MALLOC, AC_FUNC_REALLOC. + (configure.ac) (Robin Gloster <[email protected]>) + - samples: powerbtn: extend the list of known PMS + (powerbtn.sh) (Andrey Utkin <[email protected]>) + - samples: powerbtn: fix kde4 power management detection + (powerbtn.sh) (Andrey Utkin <[email protected]>) + * 2.0.29 2018-04-16 Ted Felix <[email protected]> - 2.0.29 release (configure.ac) (Ted Felix) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/acpid-2.0.29/config.h new/acpid-2.0.30/config.h --- old/acpid-2.0.29/config.h 2018-04-17 03:25:55.259149321 +0200 +++ new/acpid-2.0.30/config.h 2018-07-18 14:26:28.572076760 +0200 @@ -37,8 +37,7 @@ /* Define to 1 if you have the `isfdtype' function. */ #define HAVE_ISFDTYPE 1 -/* Define to 1 if your system has a GNU libc compatible `malloc' function, and - to 0 otherwise. */ +/* Define to 1 if you have the `malloc' function. */ #define HAVE_MALLOC 1 /* Define to 1 if you have the <malloc.h> header file. */ @@ -56,8 +55,7 @@ /* "Define if openat() exists" */ #define HAVE_OPENAT 1 -/* Define to 1 if your system has a GNU libc compatible `realloc' function, - and to 0 otherwise. */ +/* Define to 1 if you have the `realloc' function. */ #define HAVE_REALLOC 1 /* Define to 1 if you have the `regcomp' function. */ @@ -136,7 +134,7 @@ #define PACKAGE_NAME "acpid" /* Define to the full name and version of this package. */ -#define PACKAGE_STRING "acpid 2.0.29" +#define PACKAGE_STRING "acpid 2.0.30" /* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "acpid" @@ -145,7 +143,7 @@ #define PACKAGE_URL "" /* Define to the version of this package. */ -#define PACKAGE_VERSION "2.0.29" +#define PACKAGE_VERSION "2.0.30" /* Define to 1 if you have the ANSI C header files. */ #define STDC_HEADERS 1 @@ -173,7 +171,7 @@ /* Version number of package */ -#define VERSION "2.0.29" +#define VERSION "2.0.30" /* Enable large inode numbers on Mac OS X 10.5. */ #ifndef _DARWIN_USE_64_BIT_INODE @@ -196,18 +194,12 @@ /* Define to 1 if you need to in order for `stat' and other things to work. */ /* #undef _POSIX_SOURCE */ -/* Define to rpl_malloc if the replacement function should be used. */ -/* #undef malloc */ - /* Define to `int' if <sys/types.h> does not define. */ /* #undef mode_t */ /* Define to `int' if <sys/types.h> does not define. */ /* #undef pid_t */ -/* Define to rpl_realloc if the replacement function should be used. */ -/* #undef realloc */ - /* Define to `unsigned int' if <sys/types.h> does not define. */ /* #undef size_t */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/acpid-2.0.29/config.h.in new/acpid-2.0.30/config.h.in --- old/acpid-2.0.29/config.h.in 2018-04-17 03:25:43.946167215 +0200 +++ new/acpid-2.0.30/config.h.in 2018-07-18 14:26:17.517036372 +0200 @@ -36,8 +36,7 @@ /* Define to 1 if you have the `isfdtype' function. */ #undef HAVE_ISFDTYPE -/* Define to 1 if your system has a GNU libc compatible `malloc' function, and - to 0 otherwise. */ +/* Define to 1 if you have the `malloc' function. */ #undef HAVE_MALLOC /* Define to 1 if you have the <malloc.h> header file. */ @@ -55,8 +54,7 @@ /* "Define if openat() exists" */ #undef HAVE_OPENAT -/* Define to 1 if your system has a GNU libc compatible `realloc' function, - and to 0 otherwise. */ +/* Define to 1 if you have the `realloc' function. */ #undef HAVE_REALLOC /* Define to 1 if you have the `regcomp' function. */ @@ -195,18 +193,12 @@ /* Define to 1 if you need to in order for `stat' and other things to work. */ #undef _POSIX_SOURCE -/* Define to rpl_malloc if the replacement function should be used. */ -#undef malloc - /* Define to `int' if <sys/types.h> does not define. */ #undef mode_t /* Define to `int' if <sys/types.h> does not define. */ #undef pid_t -/* Define to rpl_realloc if the replacement function should be used. */ -#undef realloc - /* Define to `unsigned int' if <sys/types.h> does not define. */ #undef size_t diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/acpid-2.0.29/configure.ac new/acpid-2.0.30/configure.ac --- old/acpid-2.0.29/configure.ac 2016-09-15 22:05:14.916354026 +0200 +++ new/acpid-2.0.30/configure.ac 2018-07-18 14:21:29.952988336 +0200 @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ([2.60]) -AC_INIT([acpid], [2.0.29]) +AC_INIT([acpid], [2.0.30]) AC_CONFIG_SRCDIR([connection_list.h]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_AUX_DIR([build-aux]) @@ -31,8 +31,6 @@ # Checks for library functions. AC_FUNC_FORK -AC_FUNC_MALLOC -AC_FUNC_REALLOC AC_FUNC_STRNLEN AC_CHECK_FUNC(fchown, AC_DEFINE(HAVE_FCHOWN, 1, "Define if fchown() exists"), AC_MSG_ERROR(["fchown() not found"])) AC_CHECK_FUNC(chmod, AC_DEFINE(HAVE_CHMOD, 1, "Define if chmod() exists"), AC_MSG_ERROR(["chmod() not found"])) @@ -41,7 +39,7 @@ AC_CHECK_FUNC(openat, AC_DEFINE(HAVE_OPENAT, 1, "Define if openat() exists"), AC_MSG_ERROR(["openat() not found"])) AC_CHECK_FUNC(asprintf, AC_DEFINE(HAVE_ASPRINTF, 1, "Define if asprintf() exists"), AC_MSG_ERROR(["asprintf() not found"])) # These are actually required. Should switch to above form. -AC_CHECK_FUNCS([alarm dup2 isfdtype memset regcomp select socket strcasecmp strdup strerror strrchr strtol]) +AC_CHECK_FUNCS([malloc realloc alarm dup2 isfdtype memset regcomp select socket strcasecmp strdup strerror strrchr strtol]) # removed for now as kacpimon was not included in dist target #AC_ARG_ENABLE([kacpimon],AS_HELP_STRING([--enable-kacpimon], [Build kacpimon])) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/acpid-2.0.29/samples/powerbtn/powerbtn.sh new/acpid-2.0.30/samples/powerbtn/powerbtn.sh --- old/acpid-2.0.29/samples/powerbtn/powerbtn.sh 2010-06-15 15:39:15.000000000 +0200 +++ new/acpid-2.0.30/samples/powerbtn/powerbtn.sh 2018-06-19 04:17:40.688397959 +0200 @@ -53,16 +53,23 @@ # A list of power management system process names. PMS="gnome-power-manager kpowersave xfce4-power-manager" PMS="$PMS guidance-power-manager.py dalston-power-applet" +PMS="$PMS mate-power-manager org_kde_powerdevil" # If one of those is running or any of several others, if pidof x $PMS > /dev/null || ( test "$XUSER" != "" && pidof dcopserver > /dev/null && test -x /usr/bin/dcop && /usr/bin/dcop --user $XUSER kded kded loadedModules | grep -q klaptopdaemon) || - ( test "$XUSER" != "" && test -x /usr/bin/qdbus && test -r /proc/$(pidof kded4)/environ && su - $XUSER -c "eval $(echo -n 'export '; cat /proc/$(pidof kded4)/environ |tr '\0' '\n'|grep DBUS_SESSION_BUS_ADDRESS); qdbus org.kde.kded" | grep -q powerdevil) ; then + ( test "$XUSER" != "" && test -x /usr/bin/qdbus && test -r /proc/$(pgrep -n kded4)/environ && su - $XUSER -c "eval $(echo -n 'export '; cat /proc/$(pgrep -n kded4)/environ |tr '\0' '\n'|grep DBUS_SESSION_BUS_ADDRESS); qdbus org.kde.kded" | grep -q powerdevil) ; then # Get out as the power manager that is running will take care of things. exit fi # No power managment system appears to be running. Just initiate a plain # shutdown. -/sbin/shutdown -h now "Power button pressed" +CURRENT_INIT=`ps -p 1 -o comm=` +if [ "$CURRENT_INIT" = "openrc-init" ] +then + /sbin/openrc-shutdown -p +else + /sbin/shutdown -h now "Power button pressed" +fi
