You are not logged in.

#1 2015-03-13 00:15:20

ralph_13
Member
Registered: 2015-02-06
Posts: 73

How do I install a patch? (xfce4-power-manager tray icon patch)

Sorry if this is a stupid question or if the answer can be found elsewhere, but I googled and searched the forums and couldn't find any answers.

xfce4-power-manager had for the longest time had a tray icon showing battery status, and they recently decided to remove it in favor of a xfce-panel only icon. Bringing it back was requested on bugzilla and a patch was released.

But I really have no idea what to do with it. Can someone shine some light on this for me?

Last edited by ralph_13 (2015-03-13 00:17:15)

Offline

#2 2015-03-13 00:45:31

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: How do I install a patch? (xfce4-power-manager tray icon patch)

You'll need to build xfce4-power-manager yourself, using ABS, apply the patch and then have pacman install that patched version.
See the wiki page on ABS and `man patch`.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-03-13 00:53:27

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,564
Website

Re: How do I install a patch? (xfce4-power-manager tray icon patch)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2015-03-16 17:04:35

ralph_13
Member
Registered: 2015-02-06
Posts: 73

Re: How do I install a patch? (xfce4-power-manager tray icon patch)

I've been trying that and getting an error when running makepkg. I think I may be doing something wrong with the prepare() function. Can you guys please take a look at the PKGBUILD and the make error log?

# $Id: PKGBUILD 233048 2015-03-08 08:14:33Z foutrelis $
# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
# Contributor: Tobias Kieslich <tobias funnychar archlinux.org>

pkgname=xfce4-power-manager
pkgver=1.4.3
pkgrel=1
pkgdesc="Power manager for Xfce desktop"
arch=('i686' 'x86_64')
url="http://www.xfce.org/"
license=('GPL2')
groups=('xfce4' 'modified')
depends=('libxfce4ui' 'upower' 'libnotify' 'hicolor-icon-theme')
optdepends=('xfce4-panel: for the Xfce panel plugin'
            'lxpanel: for the LXDE panel plugin')
makedepends=('intltool' 'xfce4-panel' 'lxpanel')
install=$pkgname.install
source=(http://archive.xfce.org/src/apps/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2 http://bug-attachment.xfce.org/attachment.cgi?id=5979)
sha256sums=('018e11dd315745f582d70108b6071d37fb94854fde70961e17325bc19c4e2011'
            '6cda148a8dac2d5a3d4e928f5a0d5bd3a8181e8e9e7d634eadfb8fabb070fef9')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  ./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --sbindir=/usr/bin \
    --libexecdir=/usr/lib \
    --localstatedir=/var \
    --disable-network-manager \
    --enable-polkit \
    --disable-debug
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install
}

prepare() {
 cd "${srcdir}"/${pkgname}-${pkgver}
 patch -Np1 -i ../attachment.cgi?id=5979
}

# vim:set ts=2 sw=2 et:

Make log:

 Configuration finished, type make to compile
make  all-recursive
make[1]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3'
Making all in data
make[2]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data'
Making all in icons
make[3]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons'
Making all in 16x16
make[4]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/16x16'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/16x16'
Making all in 22x22
make[4]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/22x22'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/22x22'
Making all in 24x24
make[4]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/24x24'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/24x24'
Making all in 32x32
make[4]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/32x32'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/32x32'
Making all in 48x48
make[4]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/48x48'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/48x48'
Making all in scalable
make[4]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/scalable'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/scalable'
make[4]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons'
make[3]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons'
Making all in interfaces
make[3]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/interfaces'
make  all-am
make[4]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/interfaces'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/interfaces'
make[3]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/interfaces'
Making all in appdata
make[3]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/appdata'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/appdata'
make[3]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data'
make[2]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data'
Making all in libdbus
make[2]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/libdbus'
make  all-am
make[3]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/libdbus'
  CC       libxfpmdbus_la-xfpm-dbus-monitor.lo
  CC       libxfpmdbus_la-xfpm-unique.lo
  CCLD     libxfpmdbus.la
make[3]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/libdbus'
make[2]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/libdbus'
Making all in common
make[2]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/common'
make  all-am
make[3]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/common'
  CC       libxfpmcommon_la-xfpm-enum-types.lo
  CC       libxfpmcommon_la-xfpm-common.lo
  CC       libxfpmcommon_la-xfpm-brightness.lo
  CC       libxfpmcommon_la-xfpm-debug.lo
  CC       libxfpmcommon_la-xfpm-power-common.lo
  CCLD     libxfpmcommon.la
make[3]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/common'
make[2]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/common'
Making all in src
make[2]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/src'
make  all-am
make[3]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/src'
  CC       xfce4_power_manager-xfpm-main.o
  CC       xfce4_power_manager-xfpm-manager.o
xfpm-manager.c: In function ‘xfpm_manager_show_tray_icon’:
xfpm-manager.c:751:33: warning: assignment makes pointer from integer without a cast
     manager->priv->power_button = power_manager_button_new ();
                                 ^
  CC       xfce4_power_manager-xfpm-power.o
  CC       xfce4_power_manager-xfpm-battery.o
  CC       xfce4_power_manager-xfpm-xfconf.o
  CC       xfce4_power_manager-xfpm-console-kit.o
  CC       xfce4_power_manager-xfpm-systemd.o
  CC       xfce4_power_manager-egg-idletime.o
  CC       xfce4_power_manager-xfpm-backlight.o
  CC       xfce4_power_manager-xfpm-kbd-backlight.o
  CC       xfce4_power_manager-xfpm-dpms.o
  CC       xfce4_power_manager-xfpm-button.o
  CC       xfce4_power_manager-xfpm-network-manager.o
  CC       xfce4_power_manager-xfpm-inhibit.o
  CC       xfce4_power_manager-xfpm-notify.o
  CC       xfce4_power_manager-xfpm-polkit.o
  CC       xfce4_power_manager-xfpm-errors.o
  CC       xfce4_power_manager-xfpm-suspend.o
  CCLD     xfce4-power-manager
xfce4_power_manager-xfpm-manager.o: In function `xfpm_manager_tray_update_icon':
xfpm-manager.c:(.text+0x11c9): undefined reference to `power_manager_button_get_type'
xfpm-manager.c:(.text+0x1224): undefined reference to `power_manager_button_get_icon_name'
xfce4_power_manager-xfpm-manager.o: In function `xfpm_manager_tray_update_tooltip':
xfpm-manager.c:(.text+0x128d): undefined reference to `power_manager_button_get_type'
xfpm-manager.c:(.text+0x1324): undefined reference to `power_manager_button_get_tooltip'
xfpm-manager.c:(.text+0x1336): undefined reference to `power_manager_button_get_tooltip'
xfce4_power_manager-xfpm-manager.o: In function `xfpm_manager_set_property':
xfpm-manager.c:(.text+0x14e0): undefined reference to `power_manager_button_new'
xfpm-manager.c:(.text+0x150e): undefined reference to `power_manager_button_show'
xfce4_power_manager-xfpm-manager.o: In function `xfpm_manager_show_tray_menu':
xfpm-manager.c:(.text+0xa9): undefined reference to `power_manager_button_show_menu'
collect2: error: ld returned 1 exit status
Makefile:742: recipe for target 'xfce4-power-manager' failed
make[3]: *** [xfce4-power-manager] Error 1
make[3]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/src'
Makefile:604: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/src'
Makefile:510: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3'
Makefile:441: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Thanks!

Offline

#5 2015-03-16 17:29:41

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,413
Website

Re: How do I install a patch? (xfce4-power-manager tray icon patch)

Usually you'd put prepare before the other functions, but I think it doesn't matter here (I could be wrong). Please post the entire makepkg log, not what you think is relevant.

Last edited by Alad (2015-03-16 17:34:17)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#6 2015-03-16 18:37:49

ralph_13
Member
Registered: 2015-02-06
Posts: 73

Re: How do I install a patch? (xfce4-power-manager tray icon patch)

Putting prepare before the other functions didn't seem to work. Below is the full makepkg log:

[ralph@AnarchBox xfce4-power-manager-p]$ makepkg
==> Making package: xfce4-power-manager 1.4.3-1 (Mon Mar 16 15:36:12 BRT 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading xfce4-power-manager-1.4.3.tar.bz2...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   368  100   368    0     0    559      0 --:--:-- --:--:-- --:--:--   560
100   366  100   366    0     0    361      0  0:00:01  0:00:01 --:--:-- 98000
100 1112k  100 1112k    0     0  31763      0  0:00:35  0:00:35 --:--:-- 23720
  -> Downloading attachment.cgi?id=5979...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 24765  100 24765    0     0  14505      0  0:00:01  0:00:01 --:--:-- 14499
==> Validating source files with sha256sums...
    xfce4-power-manager-1.4.3.tar.bz2 ... Passed
    attachment.cgi?id=5979 ... Passed
==> Extracting sources...
  -> Extracting xfce4-power-manager-1.4.3.tar.bz2 with bsdtar
==> Starting prepare()...
patching file data/interfaces/xfpm-settings.ui
patching file panel-plugins/power-manager-plugin/power-manager-button.c
patching file panel-plugins/power-manager-plugin/power-manager-button.h
patching file settings/xfpm-settings.c
patching file src/Makefile.am
patching file src/xfpm-manager.c
Hunk #6 succeeded at 707 (offset 3 lines).
Hunk #7 succeeded at 928 (offset 3 lines).
patching file src/xfpm-power.c
==> Starting build()...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '1000' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking how to print strings... printf
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether NLS is requested... yes
checking for intltool >= 0.31... 0.50.2 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.20.2
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for ANSI C header files... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for sys/types.h... (cached) yes
checking for memory.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking sys/user.h usability... yes
checking sys/user.h presence... yes
checking for sys/user.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking for unistd.h... (cached) yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/sysctl.h usability... yes
checking sys/sysctl.h presence... yes
checking for sys/sysctl.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking procfs.h usability... no
checking procfs.h presence... no
checking for procfs.h... no
checking for getpwuid... yes
checking for setsid... yes
checking for sigaction... yes
checking for round in -lm... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking for catalogs to be installed...  ar ast bg ca cs da de el en_AU en_GB es et eu fi fr gl he hr hu id is it ja kk ko lt ms nb nl nn oc pa pl pt_BR pt ro ru si sk sl sr sv te th tr ug uk ur_PK ur vi zh_CN zh_HK zh_TW
checking for bind_textdomain_codeset... (cached) yes
checking for locales directory... ${datarootdir}/locale
checking for additional xgettext flags... --keyword=Q_ --from-code=UTF-8
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gtk+-2.0 >= 2.24.0... 2.24.27
checking GTK_CFLAGS... -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz 
checking GTK_LIBS... -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for glib-2.0 >= 2.30.0... 2.42.2
checking GLIB_CFLAGS... -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
checking GLIB_LIBS... -lglib-2.0 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gobject-2.0 >= 2.30.0... 2.42.2
checking GOBJECT_CFLAGS... -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
checking GOBJECT_LIBS... -lgobject-2.0 -lglib-2.0 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gthread-2.0 >= 2.30.0... 2.42.2
checking GTHREAD_CFLAGS... -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
checking GTHREAD_LIBS... -lgthread-2.0 -pthread -lglib-2.0 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gmodule-2.0 >= 2.30.0... 2.42.2
checking GMODULE_CFLAGS... -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
checking GMODULE_LIBS... -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for dbus-1 >= 1.1... 1.8.16
checking DBUS_CFLAGS... -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include 
checking DBUS_LIBS... -ldbus-1 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for dbus-glib-1 >= 0.84... 0.102
checking DBUS_GLIB_CFLAGS... -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
checking DBUS_GLIB_LIBS... -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libxfconf-0 >= 4.10.0... 4.12.0
checking XFCONF_CFLAGS... -I/usr/include/xfce4/xfconf-0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
checking XFCONF_LIBS... -lxfconf-0 -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libxfce4ui-1 >= 4.10.0... 4.12.0
checking LIBXFCE4UI_CFLAGS... -pthread -I/usr/include/xfce4/libxfce4ui-1 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
checking LIBXFCE4UI_LIBS... -lxfce4ui-1 -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lfontconfig -lfreetype -lxfce4util -lglib-2.0 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libxfce4util-1.0 >= 4.10.0... 4.12.1
checking LIBXFCE4UTIL_CFLAGS... -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
checking LIBXFCE4UTIL_LIBS... -lxfce4util -lglib-2.0 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libnotify >= 0.4.1... 0.7.6
checking LIBNOTIFY_CFLAGS... -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
checking LIBNOTIFY_LIBS... -lnotify -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for upower-glib >= 0.9.7... 0.99.2
checking UPOWER_CFLAGS... -pthread -I/usr/include/libupower-glib -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
checking UPOWER_LIBS... -lupower-glib -lgobject-2.0 -lglib-2.0 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for xrandr >= 1.2.0... 1.4.2
checking XRANDR_CFLAGS... 
checking XRANDR_LIBS... -lXrandr 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for x11 >= 1.0.0... 1.6.2
checking X11_CFLAGS... 
checking X11_LIBS... -lX11 
checking whether to build with polkit support... yes
checking for DPMSQueryExtension in -lXext... yes
checking whether XF86XK_Suspend is declared... yes
checking whether XF86XK_Hibernate is declared... yes
checking whether to build with network manager support.... no
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libxfce4panel-1.0 >= 4.10.0... 4.12.0
checking LIBXFCE4PANEL_CFLAGS... -pthread -I/usr/include/xfce4/libxfce4panel-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
checking LIBXFCE4PANEL_LIBS... -lxfce4panel-1.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lfontconfig -lfreetype -Wl,--export-dynamic -lgmodule-2.0 -pthread -lxfce4util -lglib-2.0 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for lxpanel >= 0.7.0... 0.8.0
checking LXDEPANEL_NEW_CFLAGS... -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
checking LXDEPANEL_NEW_LIBS... -L/usr/lib/lxpanel -llxpanel -lfm -lgthread-2.0 -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for lxpanel >= 0.5.6... 0.8.0
checking LXDEPANEL_CFLAGS... -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
checking LXDEPANEL_LIBS... -L/usr/lib/lxpanel -llxpanel -lfm -lgthread-2.0 -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 
checking whether to build with debugging support... no
checking PLATFORM_CPPFLAGS... 
checking PLATFORM_CFLAGS... 
checking PLATFORM_LDFLAGS... 
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libdbus/Makefile
config.status: creating common/Makefile
config.status: creating src/Makefile
config.status: creating settings/Makefile
config.status: creating panel-plugins/Makefile
config.status: creating panel-plugins/power-manager-plugin/Makefile
config.status: creating panel-plugins/power-manager-plugin/lxde-0.7/Makefile
config.status: creating panel-plugins/power-manager-plugin/lxde/Makefile
config.status: creating panel-plugins/power-manager-plugin/xfce/Makefile
config.status: creating data/Makefile
config.status: creating data/icons/Makefile
config.status: creating data/icons/16x16/Makefile
config.status: creating data/icons/22x22/Makefile
config.status: creating data/icons/24x24/Makefile
config.status: creating data/icons/32x32/Makefile
config.status: creating data/icons/48x48/Makefile
config.status: creating data/icons/scalable/Makefile
config.status: creating data/interfaces/Makefile
config.status: creating data/appdata/Makefile
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default-1 commands
config.status: executing po/stamp-it commands
prefix:			/usr
xdg autostart:		/etc/xdg/autostart
POLKIT:			yes
Network manager:	no
Build panel plugins:	yes
 Xfce plugins:          yes
 LXDE plugins:          yes
Backend:		linux
Debug:			no
Configuration finished, type make to compile
make  all-recursive
make[1]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3'
Making all in data
make[2]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data'
Making all in icons
make[3]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons'
Making all in 16x16
make[4]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/16x16'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/16x16'
Making all in 22x22
make[4]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/22x22'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/22x22'
Making all in 24x24
make[4]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/24x24'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/24x24'
Making all in 32x32
make[4]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/32x32'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/32x32'
Making all in 48x48
make[4]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/48x48'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/48x48'
Making all in scalable
make[4]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/scalable'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/scalable'
make[4]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons'
make[3]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons'
Making all in interfaces
make[3]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/interfaces'
make  all-am
make[4]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/interfaces'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/interfaces'
make[3]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/interfaces'
Making all in appdata
make[3]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/appdata'
  ITMRG  xfce4-power-manager.appdata.xml
make[3]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/appdata'
make[3]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data'
make[2]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data'
Making all in libdbus
make[2]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/libdbus'
make  all-am
make[3]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/libdbus'
  CC       libxfpmdbus_la-xfpm-dbus.lo
  CC       libxfpmdbus_la-xfpm-dbus-monitor.lo
  CC       libxfpmdbus_la-xfpm-unique.lo
  CC       libxfpmdbus_la-xfpm-dbus-marshal.lo
  CCLD     libxfpmdbus.la
make[3]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/libdbus'
make[2]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/libdbus'
Making all in common
make[2]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/common'
make  all-am
make[3]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/common'
  CC       libxfpmcommon_la-xfpm-enum-types.lo
  CC       libxfpmcommon_la-xfpm-common.lo
  CC       libxfpmcommon_la-xfpm-brightness.lo
  CC       libxfpmcommon_la-xfpm-debug.lo
  CC       libxfpmcommon_la-xfpm-power-common.lo
  CCLD     libxfpmcommon.la
make[3]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/common'
make[2]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/common'
Making all in src
make[2]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/src'
make  all-am
make[3]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/src'
  CC       xfce4_power_manager-xfpm-marshal.o
  CC       xfce4_power_manager-xfpm-main.o
  CC       xfce4_power_manager-xfpm-manager.o
xfpm-manager.c: In function ‘xfpm_manager_show_tray_icon’:
xfpm-manager.c:751:33: warning: assignment makes pointer from integer without a cast
     manager->priv->power_button = power_manager_button_new ();
                                 ^
  CC       xfce4_power_manager-xfpm-power.o
  CC       xfce4_power_manager-xfpm-battery.o
  CC       xfce4_power_manager-xfpm-xfconf.o
  CC       xfce4_power_manager-xfpm-console-kit.o
  CC       xfce4_power_manager-xfpm-systemd.o
  CC       xfce4_power_manager-egg-idletime.o
  CC       xfce4_power_manager-xfpm-backlight.o
  CC       xfce4_power_manager-xfpm-kbd-backlight.o
  CC       xfce4_power_manager-xfpm-dpms.o
  CC       xfce4_power_manager-xfpm-button.o
  CC       xfce4_power_manager-xfpm-network-manager.o
  CC       xfce4_power_manager-xfpm-inhibit.o
  CC       xfce4_power_manager-xfpm-notify.o
  CC       xfce4_power_manager-xfpm-polkit.o
  CC       xfce4_power_manager-xfpm-errors.o
  CC       xfce4_power_manager-xfpm-suspend.o
  CCLD     xfce4-power-manager
xfce4_power_manager-xfpm-manager.o: In function `xfpm_manager_tray_update_icon':
xfpm-manager.c:(.text+0x11c9): undefined reference to `power_manager_button_get_type'
xfpm-manager.c:(.text+0x1224): undefined reference to `power_manager_button_get_icon_name'
xfce4_power_manager-xfpm-manager.o: In function `xfpm_manager_tray_update_tooltip':
xfpm-manager.c:(.text+0x128d): undefined reference to `power_manager_button_get_type'
xfpm-manager.c:(.text+0x1324): undefined reference to `power_manager_button_get_tooltip'
xfpm-manager.c:(.text+0x1336): undefined reference to `power_manager_button_get_tooltip'
xfce4_power_manager-xfpm-manager.o: In function `xfpm_manager_set_property':
xfpm-manager.c:(.text+0x14e0): undefined reference to `power_manager_button_new'
xfpm-manager.c:(.text+0x150e): undefined reference to `power_manager_button_show'
xfce4_power_manager-xfpm-manager.o: In function `xfpm_manager_show_tray_menu':
xfpm-manager.c:(.text+0xa9): undefined reference to `power_manager_button_show_menu'
collect2: error: ld returned 1 exit status
Makefile:742: recipe for target 'xfce4-power-manager' failed
make[3]: *** [xfce4-power-manager] Error 1
make[3]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/src'
Makefile:604: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/src'
Makefile:510: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3'
Makefile:441: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Offline

#7 2015-03-16 18:53:45

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,413
Website

Re: How do I install a patch? (xfce4-power-manager tray icon patch)

Yeah, like I thought. Your patch is broken - contact the author to fix it with the current xfce4-power-manager version.

the bug says, pushed to master. Build the xfce4-power-manager-git version from AUR (read the comments though)

Last edited by Alad (2015-03-16 19:00:42)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

Board footer

Powered by FluxBB