public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sys-process/htop/files/
@ 2018-02-20 10:20 Lars Wendler
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Wendler @ 2018-02-20 10:20 UTC (permalink / raw
  To: gentoo-commits

commit:     e1108e94c07a18f4afab6995892f342e4cb1e773
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 20 10:04:22 2018 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Tue Feb 20 10:20:07 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1108e94

sys-process/htop: Updated sysmacros patch.

Package-Manager: Portage-2.3.24, Repoman-2.3.6

 sys-process/htop/files/htop-2.1.0-sysmacros.patch | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

diff --git a/sys-process/htop/files/htop-2.1.0-sysmacros.patch b/sys-process/htop/files/htop-2.1.0-sysmacros.patch
index 08f023b442e..63677dd35fa 100644
--- a/sys-process/htop/files/htop-2.1.0-sysmacros.patch
+++ b/sys-process/htop/files/htop-2.1.0-sysmacros.patch
@@ -1,28 +1,30 @@
-From 25c50af220c2de4542b440b7470a644caf2a3b65 Mon Sep 17 00:00:00 2001
+From 7fd09c08b5b50e5c0a2aebb66072deda4ac503fb Mon Sep 17 00:00:00 2001
 From: Lars Wendler <polynomial-c@gentoo.org>
 Date: Mon, 5 Feb 2018 16:02:19 +0100
 Subject: [PATCH] Add <sys/sysmacros.h> to two files.
 
-Future glibc releases will no longer include sysmacros implicitly.
+>=glibc-2.28 will no longer include sysmacros implicitly.
 ---
- Process.c                | 1 +
+ Process.c                | 3 +++
  linux/LinuxProcessList.c | 1 +
- 2 files changed, 2 insertions(+)
+ 2 files changed, 4 insertions(+)
 
 diff --git a/Process.c b/Process.c
-index 1836080..5122afb 100644
+index 2ff778d..e135c60 100644
 --- a/Process.c
 +++ b/Process.c
-@@ -19,6 +19,7 @@ in the source distribution for its full text.
+@@ -19,6 +19,9 @@ in the source distribution for its full text.
  #include <sys/param.h>
  #include <sys/stat.h>
  #include <sys/types.h>
-+#include <sys/sysmacros.h>
++#ifdef HAVE_SYS_SYSMACROS_H
++# include <sys/sysmacros.h>	/* for major, minor */
++#endif
  #include <unistd.h>
  #include <stdlib.h>
  #include <signal.h>
 diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c
-index 6f2631a..7522fb1 100644
+index c8ba89d..fb95440 100644
 --- a/linux/LinuxProcessList.c
 +++ b/linux/LinuxProcessList.c
 @@ -25,6 +25,7 @@ in the source distribution for its full text.
@@ -34,5 +36,5 @@ index 6f2631a..7522fb1 100644
  
  #ifdef HAVE_DELAYACCT
 -- 
-2.16.1
+2.16.2
 


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-process/htop/files/
@ 2018-02-26 12:35 Lars Wendler
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Wendler @ 2018-02-26 12:35 UTC (permalink / raw
  To: gentoo-commits

commit:     711f07a43b5e011123a93e7b09edcdce1008f4cd
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 26 12:34:55 2018 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Mon Feb 26 12:34:55 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=711f07a4

sys-process/htop: Replaced sysmacros patch with a much better one.

See https://github.com/hishamhm/htop/pull/746

Closes: https://bugs.gentoo.org/648630
Package-Manager: Portage-2.3.24, Repoman-2.3.6

 sys-process/htop/files/htop-2.1.0-sysmacros.patch | 91 ++++++++++++++++-------
 1 file changed, 66 insertions(+), 25 deletions(-)

diff --git a/sys-process/htop/files/htop-2.1.0-sysmacros.patch b/sys-process/htop/files/htop-2.1.0-sysmacros.patch
index 63677dd35fa..0ab1bb0c02a 100644
--- a/sys-process/htop/files/htop-2.1.0-sysmacros.patch
+++ b/sys-process/htop/files/htop-2.1.0-sysmacros.patch
@@ -1,40 +1,81 @@
-From 7fd09c08b5b50e5c0a2aebb66072deda4ac503fb Mon Sep 17 00:00:00 2001
-From: Lars Wendler <polynomial-c@gentoo.org>
-Date: Mon, 5 Feb 2018 16:02:19 +0100
-Subject: [PATCH] Add <sys/sysmacros.h> to two files.
+From d2d413161bbdf009f232faa5789131326225f838 Mon Sep 17 00:00:00 2001
+From: Explorer09 <explorer09@gmail.com>
+Date: Sat, 24 Feb 2018 11:57:18 +0800
+Subject: [PATCH] Fix build failure ('major' undefined) in glibc 2.28.
 
->=glibc-2.28 will no longer include sysmacros implicitly.
+glibc 2.28 no longer defines 'major' and 'minor' in <sys/types.h> and
+requires us to include <sys/sysmacros.h>. (glibc 2.25 starts
+deprecating the macros in <sys/types.h>.) Now do include the latter if
+found on the system.
+
+At the moment, let's also utilize AC_HEADER_MAJOR in configure script.
+However as Autoconf 2.69 has not yet updated the AC_HEADER_MAJOR macro
+to reflect the glibc change [1], so add a workaround code.
+
+Fixes #663. Supersedes pull request #729.
+
+Reference:
+[1] https://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commit;h=e17a30e987d7ee695fb4294a82d987ec3dc9b974
+
+Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
 ---
- Process.c                | 3 +++
- linux/LinuxProcessList.c | 1 +
- 2 files changed, 4 insertions(+)
+ Process.c                |  6 ++++++
+ configure.ac             | 10 ++++++++++
+ linux/LinuxProcessList.c |  6 ++++++
+ 3 files changed, 22 insertions(+)
 
 diff --git a/Process.c b/Process.c
-index 2ff778d..e135c60 100644
+index 2ff778df..845ca54b 100644
 --- a/Process.c
 +++ b/Process.c
-@@ -19,6 +19,9 @@ in the source distribution for its full text.
- #include <sys/param.h>
- #include <sys/stat.h>
- #include <sys/types.h>
-+#ifdef HAVE_SYS_SYSMACROS_H
-+# include <sys/sysmacros.h>	/* for major, minor */
+@@ -28,6 +28,12 @@ in the source distribution for its full text.
+ #include <time.h>
+ #include <assert.h>
+ #include <math.h>
++#ifdef MAJOR_IN_MKDEV
++#include <sys/mkdev.h>
++#elif defined(MAJOR_IN_SYSMACROS) || \
++   (defined(HAVE_SYS_SYSMACROS_H) && HAVE_SYS_SYSMACROS_H)
++#include <sys/sysmacros.h>
 +#endif
- #include <unistd.h>
- #include <stdlib.h>
- #include <signal.h>
+ 
+ #ifdef __ANDROID__
+ #define SYS_ioprio_get __NR_ioprio_get
+diff --git a/configure.ac b/configure.ac
+index 44595050..36aebc5e 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -61,6 +61,16 @@ AC_CHECK_HEADERS([stdlib.h string.h strings.h sys/param.h sys/time.h unistd.h],[
+ ])
+ AC_CHECK_HEADERS([execinfo.h],[:],[:])
+ 
++AC_HEADER_MAJOR
++dnl glibc 2.25 deprecates 'major' and 'minor' in <sys/types.h> and requires to
++dnl include <sys/sysmacros.h>. However the logic in AC_HEADER_MAJOR has not yet
++dnl been updated in Autoconf 2.69, so use a workaround:
++m4_version_prereq([2.70], [],
++[if test $ac_cv_header_sys_mkdev_h = no; then
++   AC_CHECK_HEADER(sys/sysmacros.h, [AC_DEFINE(MAJOR_IN_SYSMACROS, 1,
++      [Define to 1 if `major', `minor', and `makedev' are declared in <sys/sysmacros.h>.])])
++fi])
++
+ # Checks for typedefs, structures, and compiler characteristics.
+ # ----------------------------------------------------------------------
+ AC_HEADER_STDBOOL
 diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c
-index c8ba89d..fb95440 100644
+index c8ba89d2..158a7ea2 100644
 --- a/linux/LinuxProcessList.c
 +++ b/linux/LinuxProcessList.c
-@@ -25,6 +25,7 @@ in the source distribution for its full text.
- #include <time.h>
+@@ -26,6 +26,12 @@ in the source distribution for its full text.
  #include <assert.h>
  #include <sys/types.h>
-+#include <sys/sysmacros.h>
  #include <fcntl.h>
++#ifdef MAJOR_IN_MKDEV
++#include <sys/mkdev.h>
++#elif defined(MAJOR_IN_SYSMACROS) || \
++   (defined(HAVE_SYS_SYSMACROS_H) && HAVE_SYS_SYSMACROS_H)
++#include <sys/sysmacros.h>
++#endif
  
  #ifdef HAVE_DELAYACCT
--- 
-2.16.2
-
+ #include <netlink/attr.h>


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-process/htop/files/
@ 2020-09-20 14:41 Conrad Kostecki
  0 siblings, 0 replies; 3+ messages in thread
From: Conrad Kostecki @ 2020-09-20 14:41 UTC (permalink / raw
  To: gentoo-commits

commit:     d234bb5eb15880fd0b5b47def0ac85db130e3664
Author:     Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Mon Aug 31 17:44:31 2020 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sun Sep 20 14:38:17 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d234bb5e

sys-process/htop: remove unused patch

Closes: https://github.com/gentoo/gentoo/pull/17348
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 .../htop/files/htop-2.1.0-header_updates.patch     | 42 ----------------------
 1 file changed, 42 deletions(-)

diff --git a/sys-process/htop/files/htop-2.1.0-header_updates.patch b/sys-process/htop/files/htop-2.1.0-header_updates.patch
deleted file mode 100644
index 5c36d8b337e..00000000000
--- a/sys-process/htop/files/htop-2.1.0-header_updates.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-From ccd156f8ba68c3c82f9a3afef46e414b2af16613 Mon Sep 17 00:00:00 2001
-From: Hisham Muhammad <hisham@gobolinux.org>
-Date: Mon, 26 Feb 2018 11:44:00 -0300
-Subject: [PATCH] Updates to generated header files
-
----
- Process.h                | 5 +++++
- linux/LinuxProcessList.h | 5 +++++
- 2 files changed, 10 insertions(+)
-
-diff --git a/Process.h b/Process.h
-index 6c41edc2..fda8480a 100644
---- a/Process.h
-+++ b/Process.h
-@@ -9,6 +9,11 @@ Released under the GNU GPL, see the COPYING file
- in the source distribution for its full text.
- */
- 
-+#ifdef MAJOR_IN_MKDEV
-+#elif defined(MAJOR_IN_SYSMACROS) || \
-+   (defined(HAVE_SYS_SYSMACROS_H) && HAVE_SYS_SYSMACROS_H)
-+#endif
-+
- #ifdef __ANDROID__
- #define SYS_ioprio_get __NR_ioprio_get
- #define SYS_ioprio_set __NR_ioprio_set
-diff --git a/linux/LinuxProcessList.h b/linux/LinuxProcessList.h
-index 5005220a..0851a102 100644
---- a/linux/LinuxProcessList.h
-+++ b/linux/LinuxProcessList.h
-@@ -9,6 +9,11 @@ Released under the GNU GPL, see the COPYING file
- in the source distribution for its full text.
- */
- 
-+#ifdef MAJOR_IN_MKDEV
-+#elif defined(MAJOR_IN_SYSMACROS) || \
-+   (defined(HAVE_SYS_SYSMACROS_H) && HAVE_SYS_SYSMACROS_H)
-+#endif
-+
- #ifdef HAVE_DELAYACCT
- #endif
- 


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-09-20 14:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-26 12:35 [gentoo-commits] repo/gentoo:master commit in: sys-process/htop/files/ Lars Wendler
  -- strict thread matches above, loose matches on Subject: below --
2020-09-20 14:41 Conrad Kostecki
2018-02-20 10:20 Lars Wendler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox