diff options
| author | Khem Raj <raj.khem@gmail.com> | 2018-08-11 16:06:26 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2018-08-15 08:20:06 -0700 |
| commit | 0ec84a04e4aac546266133fee8313e2619582bae (patch) | |
| tree | cc7faa4d1f8d7ec670131fde24e4d9bd1dd01c49 /meta-oe | |
| parent | fad9dec084f74dce1e12e1a6f70584367d854847 (diff) | |
| download | meta-openembedded-0ec84a04e4aac546266133fee8313e2619582bae.tar.gz | |
atop: Upgrade to 2.3.0
Drop already upstreamed patch
Fix build with glibc 2.28+
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe')
| -rw-r--r-- | meta-oe/recipes-support/atop/atop/0001-add-sys-sysmacros.h-for-major-minor-macros.patch | 26 | ||||
| -rw-r--r-- | meta-oe/recipes-support/atop/atop/0001-include-missing-header-files.patch | 97 | ||||
| -rw-r--r-- | meta-oe/recipes-support/atop/atop_2.3.0.bb (renamed from meta-oe/recipes-support/atop/atop_2.2.3.bb) | 28 |
3 files changed, 37 insertions, 114 deletions
diff --git a/meta-oe/recipes-support/atop/atop/0001-add-sys-sysmacros.h-for-major-minor-macros.patch b/meta-oe/recipes-support/atop/atop/0001-add-sys-sysmacros.h-for-major-minor-macros.patch new file mode 100644 index 0000000000..5646061971 --- /dev/null +++ b/meta-oe/recipes-support/atop/atop/0001-add-sys-sysmacros.h-for-major-minor-macros.patch | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | From 13f3771655f859d5e0332dd65b9c43f572f6359d Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sat, 11 Aug 2018 16:02:06 -0700 | ||
| 4 | Subject: [PATCH] add sys/sysmacros.h for major/minor macros | ||
| 5 | |||
| 6 | photosyst.c:1465:19: error: called object 'major' is not a function or function pointer | ||
| 7 | dmp->major = major(statbuf.st_rdev); | ||
| 8 | |||
| 9 | Upstream-Status: Pending | ||
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 11 | --- | ||
| 12 | photosyst.c | 1 + | ||
| 13 | 1 file changed, 1 insertion(+) | ||
| 14 | |||
| 15 | diff --git a/photosyst.c b/photosyst.c | ||
| 16 | index 38828ec..caed352 100644 | ||
| 17 | --- a/photosyst.c | ||
| 18 | +++ b/photosyst.c | ||
| 19 | @@ -152,6 +152,7 @@ | ||
| 20 | static const char rcsid[] = "$Id: photosyst.c,v 1.38 2010/11/19 07:40:40 gerlof Exp $"; | ||
| 21 | |||
| 22 | #include <sys/types.h> | ||
| 23 | +#include <sys/sysmacros.h> | ||
| 24 | #include <stdio.h> | ||
| 25 | #include <string.h> | ||
| 26 | #include <unistd.h> | ||
diff --git a/meta-oe/recipes-support/atop/atop/0001-include-missing-header-files.patch b/meta-oe/recipes-support/atop/atop/0001-include-missing-header-files.patch deleted file mode 100644 index 3708f60ba0..0000000000 --- a/meta-oe/recipes-support/atop/atop/0001-include-missing-header-files.patch +++ /dev/null | |||
| @@ -1,97 +0,0 @@ | |||
| 1 | From 7b651793269b6b86f12c43c30b751b86def27222 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sat, 18 Mar 2017 17:56:40 -0700 | ||
| 4 | Subject: [PATCH] include missing header files | ||
| 5 | |||
| 6 | fixes build with musl | ||
| 7 | |||
| 8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 9 | --- | ||
| 10 | deviate.c | 1 + | ||
| 11 | procdbase.c | 2 +- | ||
| 12 | showgeneric.c | 2 +- | ||
| 13 | showlinux.c | 2 +- | ||
| 14 | showprocs.c | 2 +- | ||
| 15 | showsys.c | 2 +- | ||
| 16 | 6 files changed, 6 insertions(+), 5 deletions(-) | ||
| 17 | |||
| 18 | diff --git a/deviate.c b/deviate.c | ||
| 19 | index 7cf1b49..8e615af 100644 | ||
| 20 | --- a/deviate.c | ||
| 21 | +++ b/deviate.c | ||
| 22 | @@ -178,6 +178,7 @@ static const char rcsid[] = "$Id: deviate.c,v 1.45 2010/10/23 14:02:03 gerlof Ex | ||
| 23 | #include <stdio.h> | ||
| 24 | #include <errno.h> | ||
| 25 | #include <fcntl.h> | ||
| 26 | +#include <stdlib.h> | ||
| 27 | #include <unistd.h> | ||
| 28 | #include <limits.h> | ||
| 29 | #include <memory.h> | ||
| 30 | diff --git a/procdbase.c b/procdbase.c | ||
| 31 | index 9cab347..0487d26 100644 | ||
| 32 | --- a/procdbase.c | ||
| 33 | +++ b/procdbase.c | ||
| 34 | @@ -67,7 +67,7 @@ static const char rcsid[] = "$Id: procdbase.c,v 1.8 2010/04/23 12:19:35 gerlof E | ||
| 35 | #include <fcntl.h> | ||
| 36 | #include <unistd.h> | ||
| 37 | #include <string.h> | ||
| 38 | -#include <malloc.h> | ||
| 39 | +#include <stdlib.h> | ||
| 40 | |||
| 41 | #include "atop.h" | ||
| 42 | #include "photoproc.h" | ||
| 43 | diff --git a/showgeneric.c b/showgeneric.c | ||
| 44 | index 775afa8..3d5be0e 100644 | ||
| 45 | --- a/showgeneric.c | ||
| 46 | +++ b/showgeneric.c | ||
| 47 | @@ -268,7 +268,7 @@ static const char rcsid[] = "$Id: showgeneric.c,v 1.71 2010/10/25 19:08:32 gerlo | ||
| 48 | #include <errno.h> | ||
| 49 | #include <fcntl.h> | ||
| 50 | #include <string.h> | ||
| 51 | -#include <termio.h> | ||
| 52 | +#include <termios.h> | ||
| 53 | #include <unistd.h> | ||
| 54 | #include <stdarg.h> | ||
| 55 | #include <curses.h> | ||
| 56 | diff --git a/showlinux.c b/showlinux.c | ||
| 57 | index 6e60754..aba2ee6 100644 | ||
| 58 | --- a/showlinux.c | ||
| 59 | +++ b/showlinux.c | ||
| 60 | @@ -274,7 +274,7 @@ static const char rcsid[] = "$Id: showlinux.c,v 1.70 2010/10/23 14:04:12 gerlof | ||
| 61 | #include <string.h> | ||
| 62 | #include <errno.h> | ||
| 63 | #include <fcntl.h> | ||
| 64 | -#include <termio.h> | ||
| 65 | +#include <termios.h> | ||
| 66 | #include <unistd.h> | ||
| 67 | #include <stdarg.h> | ||
| 68 | #include <curses.h> | ||
| 69 | diff --git a/showprocs.c b/showprocs.c | ||
| 70 | index 5194524..f0169ad 100644 | ||
| 71 | --- a/showprocs.c | ||
| 72 | +++ b/showprocs.c | ||
| 73 | @@ -94,7 +94,7 @@ static const char rcsid[] = "$Id: showprocs.c,v 1.15 2011/09/05 11:44:16 gerlof | ||
| 74 | #include <string.h> | ||
| 75 | #include <errno.h> | ||
| 76 | #include <fcntl.h> | ||
| 77 | -#include <termio.h> | ||
| 78 | +#include <termios.h> | ||
| 79 | #include <unistd.h> | ||
| 80 | #include <stdarg.h> | ||
| 81 | #include <curses.h> | ||
| 82 | diff --git a/showsys.c b/showsys.c | ||
| 83 | index 26331be..5a05fe5 100644 | ||
| 84 | --- a/showsys.c | ||
| 85 | +++ b/showsys.c | ||
| 86 | @@ -80,7 +80,7 @@ static const char rcsid[] = "XXXXXX"; | ||
| 87 | #include <string.h> | ||
| 88 | #include <errno.h> | ||
| 89 | #include <fcntl.h> | ||
| 90 | -#include <termio.h> | ||
| 91 | +#include <termios.h> | ||
| 92 | #include <unistd.h> | ||
| 93 | #include <stdarg.h> | ||
| 94 | #include <curses.h> | ||
| 95 | -- | ||
| 96 | 2.12.0 | ||
| 97 | |||
diff --git a/meta-oe/recipes-support/atop/atop_2.2.3.bb b/meta-oe/recipes-support/atop/atop_2.3.0.bb index 1ab9e7cf9e..302813c2ea 100644 --- a/meta-oe/recipes-support/atop/atop_2.2.3.bb +++ b/meta-oe/recipes-support/atop/atop_2.3.0.bb | |||
| @@ -15,21 +15,15 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" | |||
| 15 | 15 | ||
| 16 | DEPENDS = "ncurses zlib" | 16 | DEPENDS = "ncurses zlib" |
| 17 | 17 | ||
| 18 | ATOP_VER = "${@'-'.join(d.getVar('PV').rsplit('.', 1))}" | 18 | SRC_URI = "http://www.atoptool.nl/download/${BP}.tar.gz \ |
| 19 | 19 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'file://volatiles.atop.conf', 'file://volatiles.99_atop', d)} \ | |
| 20 | SRC_URI = " \ | 20 | file://remove-bashisms.patch \ |
| 21 | http://www.atoptool.nl/download/${BPN}-${ATOP_VER}.tar.gz \ | 21 | file://fix-permissions.patch \ |
| 22 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'file://volatiles.atop.conf', 'file://volatiles.99_atop', d)} \ | 22 | file://sysvinit-implement-status.patch \ |
| 23 | file://0001-include-missing-header-files.patch \ | 23 | file://0001-add-sys-sysmacros.h-for-major-minor-macros.patch \ |
| 24 | file://remove-bashisms.patch \ | 24 | " |
| 25 | file://fix-permissions.patch \ | 25 | SRC_URI[md5sum] = "48e1dbef8c7d826e68829a8d5fc920fc" |
| 26 | file://sysvinit-implement-status.patch \ | 26 | SRC_URI[sha256sum] = "73e4725de0bafac8c63b032e8479e2305e3962afbe977ec1abd45f9e104eb264" |
| 27 | " | ||
| 28 | |||
| 29 | SRC_URI[md5sum] = "034dc1544f2ec4e4d2c739d320dc326d" | ||
| 30 | SRC_URI[sha256sum] = "c785b8a2355be28b3de6b58a8ea4c4fcab8fadeaa57a99afeb03c66fac8e055d" | ||
| 31 | |||
| 32 | S = "${WORKDIR}/${BPN}-${ATOP_VER}" | ||
| 33 | 27 | ||
| 34 | do_compile() { | 28 | do_compile() { |
| 35 | oe_runmake all | 29 | oe_runmake all |
| @@ -37,13 +31,13 @@ do_compile() { | |||
| 37 | 31 | ||
| 38 | do_install() { | 32 | do_install() { |
| 39 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | 33 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then |
| 40 | make DESTDIR=${D} VERS=${ATOP_VER} SYSDPATH=${systemd_system_unitdir} \ | 34 | make DESTDIR=${D} VERS=${PV} SYSDPATH=${systemd_system_unitdir} \ |
| 41 | PMPATHD=${systemd_unitdir}/system-sleep systemdinstall | 35 | PMPATHD=${systemd_unitdir}/system-sleep systemdinstall |
| 42 | install -d ${D}${sysconfdir}/tmpfiles.d | 36 | install -d ${D}${sysconfdir}/tmpfiles.d |
| 43 | install -m 644 ${WORKDIR}/volatiles.atop.conf ${D}${sysconfdir}/tmpfiles.d/atop.conf | 37 | install -m 644 ${WORKDIR}/volatiles.atop.conf ${D}${sysconfdir}/tmpfiles.d/atop.conf |
| 44 | rm -f ${D}${systemd_system_unitdir}/atopacct.service | 38 | rm -f ${D}${systemd_system_unitdir}/atopacct.service |
| 45 | else | 39 | else |
| 46 | make DESTDIR=${D} VERS=${ATOP_VER} sysvinstall | 40 | make DESTDIR=${D} VERS=${PV} sysvinstall |
| 47 | install -d ${D}${sysconfdir}/default/volatiles | 41 | install -d ${D}${sysconfdir}/default/volatiles |
| 48 | install -m 644 ${WORKDIR}/volatiles.99_atop ${D}${sysconfdir}/default/volatiles/99_atop | 42 | install -m 644 ${WORKDIR}/volatiles.99_atop ${D}${sysconfdir}/default/volatiles/99_atop |
| 49 | rm -f ${D}${sysconfdir}/init.d/atopacct | 43 | rm -f ${D}${sysconfdir}/init.d/atopacct |
