All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rick "Zero_Chaos" Farina <zerochaos at gentoo.org>
To: powertop@lists.01.org
Subject: [Powertop] [PATCH]  use pkg-config to find ncurses
Date: Wed, 16 Apr 2014 11:20:22 -0400	[thread overview]
Message-ID: <534E9FB6.6080402@gentoo.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1984 bytes --]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Original bug report: https://bugs.gentoo.org/show_bug.cgi?id=486124

Depending on how ncurses is built, it may require different information
passed to the linker.  Use pkg-config to detect the correct information:

- --- a/configure.ac
+++ b/configure.ac
@@ -46,7 +46,7 @@
 AC_FUNC_STRTOD
 AC_CHECK_FUNCS([fdatasync getpagesize gettimeofday memmove memset mkdir
munmap pow realpath regcomp select setlocale socket sqrt strcasecmp
strchr strdup strerror strncasecmp strstr strtoul strtoull])

- -AC_SEARCH_LIBS([delwin], [ncursesw ncurses], [], AC_MSG_ERROR([ncurses
is required but was not found]), [])
+PKG_CHECK_MODULES(ncurses, ncurses, [LIBS="$LIBS $ncurses_LIBS"],
AC_MSG_ERROR([ncurses is required but was not found]))

 has_libpci=0
 PKG_CHECK_MODULES([PCIUTILS], [libpci],[has_libpci=1],[


Original patch:
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-power/powertop/files/powertop-2.4-tinfo.patch?revision=1.1&view=markup

Please include this fix.

thanks,
Zero
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJTTp+2AAoJEKXdFCfdEflKJVkP/19iu4BWlFZ5TV0XVKvi0lm9
DsIK9gkN+Kpa5F3QjTgDOCA7K72VdTGCv8os3A0KHPocrQ55tNb0lyILJYs6/rdL
YSCMrd1TjacVhZujwTjia99BA/EwkPGpeogKdKuzHfRI6EYk6QFDaeljG11Jjds+
VQ/sW3Fbe63/Sw6jvvHYTi0wE2hu30ot9Y+GQXkaNfJMpvk16S2GevKr+PG6wAqF
gL1hLG7b5NNTgZxNLZJMDMIFZcUA/VMBUPZta5KyGpzjrMcVcZkNZ3YegwkwIJQ/
Dq0xA/HhXUSgCIcp2cTuBF2YZrKE/linFmFHyKJ0NEvbaEpAsPLkhzpz3E8d+b++
t8ceoTAYYRGpJU9fGNLcHCaHmREtzQMJn7hTT85Rbz0+duohaj6xqkKTemlPykTu
ZDM+48oUXEe+iwcfp4ctbJILwZaw+IIzA2GhtR3QATjfQZe4lXczHHt2VW50toIb
hFaKrg/uYqHe7KpHq/+rdtjNhOsP7Ckaq+USTQ7/AmoFLB6Bt+3NM9sIHdyeWUfG
XXnOKPPpPSOZXFE/mKodqI0tOP0cngbMuLr60axELZi0gxiUiDVxKuRAOlukVRSY
RQFKRIucrEeR/uwDH/sbq1xQ0dnE0JdJs4VO8K40KkSskE7eHOoBIJ8c3kL02Sfm
c6KasduRgzZfWUo4plC1
=yt9+
-----END PGP SIGNATURE-----

             reply	other threads:[~2014-04-16 15:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-16 15:20 Rick Zero_Chaos Farina [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-04-16 19:41 [Powertop] [PATCH] use pkg-config to find ncurses Kok, Auke-jan H
2014-04-16 19:54 Sergey Senozhatsky
2014-04-16 21:03 Rick Zero_Chaos Farina
2014-04-25 23:58 Alexandra Yates
2014-04-29 14:19 Rick Zero_Chaos Farina
2014-05-05 23:19 Alexandra Yates
2014-05-06  4:57 Wout Mertens
2014-05-06  6:40 Kok, Auke-jan H

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=534E9FB6.6080402@gentoo.org \
    --to=powertop@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.