public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sys-block/smp_utils/files/, sys-block/smp_utils/
@ 2016-04-19  6:21 Mike Frysinger
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Frysinger @ 2016-04-19  6:21 UTC (permalink / raw
  To: gentoo-commits

commit:     45c8ffbd7ce3d08a80af90255e71dfe57eb22a91
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 19 06:21:36 2016 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Tue Apr 19 06:21:36 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45c8ffbd

sys-block/smp_utils: fix build w/newer glibc #580258

 .../smp_utils/files/smp_utils-0.98-sysmacros.patch | 54 ++++++++++++++++++++++
 sys-block/smp_utils/smp_utils-0.98.ebuild          |  4 ++
 2 files changed, 58 insertions(+)

diff --git a/sys-block/smp_utils/files/smp_utils-0.98-sysmacros.patch b/sys-block/smp_utils/files/smp_utils-0.98-sysmacros.patch
new file mode 100644
index 0000000..7eaa418
--- /dev/null
+++ b/sys-block/smp_utils/files/smp_utils-0.98-sysmacros.patch
@@ -0,0 +1,54 @@
+https://bugs.gentoo.org/580258
+
+From 6c6f341d84f1e4c2c67fed98f09debe086fe9a47 Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Tue, 19 Apr 2016 02:19:20 -0400
+Subject: [PATCH] include sys/sysmacros.h for major/minor/makedev
+
+These funcs are defined in that header, so include it to avoid errors:
+../lib/.libs/libsmputils1.so: undefined reference to 'minor'
+---
+ lib/smp_aac_io.c    | 1 +
+ lib/smp_lin_bsg.c   | 1 +
+ lib/smp_mptctl_io.c | 1 +
+ 3 files changed, 3 insertions(+)
+
+diff --git a/lib/smp_aac_io.c b/lib/smp_aac_io.c
+index 442eadf..e3d9710 100644
+--- a/lib/smp_aac_io.c
++++ b/lib/smp_aac_io.c
+@@ -6,6 +6,7 @@
+ #include <stddef.h>
+ #include <fcntl.h>
+ #include <unistd.h>
++#include <sys/sysmacros.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <sys/ioctl.h>
+diff --git a/lib/smp_lin_bsg.c b/lib/smp_lin_bsg.c
+index 0995ded..89a92cc 100644
+--- a/lib/smp_lin_bsg.c
++++ b/lib/smp_lin_bsg.c
+@@ -40,6 +40,7 @@
+ #include <fcntl.h>
+ //#include <curses.h>
+ #include <unistd.h>
++#include <sys/sysmacros.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <sys/ioctl.h>
+diff --git a/lib/smp_mptctl_io.c b/lib/smp_mptctl_io.c
+index 5512913..def386d 100644
+--- a/lib/smp_mptctl_io.c
++++ b/lib/smp_mptctl_io.c
+@@ -15,6 +15,7 @@
+ #include <fcntl.h>
+ //#include <curses.h>
+ #include <unistd.h>
++#include <sys/sysmacros.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <sys/ioctl.h>
+-- 
+2.7.4
+

diff --git a/sys-block/smp_utils/smp_utils-0.98.ebuild b/sys-block/smp_utils/smp_utils-0.98.ebuild
index 61c39fd..ef4b652 100644
--- a/sys-block/smp_utils/smp_utils-0.98.ebuild
+++ b/sys-block/smp_utils/smp_utils-0.98.ebuild
@@ -18,3 +18,7 @@ IUSE="static-libs"
 DOCS=( AUTHORS ChangeLog COVERAGE CREDITS README )
 
 AUTOTOOLS_IN_SOURCE_BUILD=1
+
+PATCHES=(
+	"${FILESDIR}"/${P}-sysmacros.patch #580258
+)


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

* [gentoo-commits] repo/gentoo:master commit in: sys-block/smp_utils/files/, sys-block/smp_utils/
@ 2025-05-04 21:03 David Seifert
  0 siblings, 0 replies; 2+ messages in thread
From: David Seifert @ 2025-05-04 21:03 UTC (permalink / raw
  To: gentoo-commits

commit:     a1a95bc603c8ec71ff91e53c7c671897f88692b8
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun May  4 21:02:15 2025 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun May  4 21:02:15 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1a95bc6

sys-block/smp_utils: update EAPI 7 -> 8

Closes: https://bugs.gentoo.org/715840
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 .../smp_utils/files/smp_utils-0.99-stdint.patch    | 22 ++++++++++++++++++++++
 ..._utils-0.99.ebuild => smp_utils-0.99-r1.ebuild} | 10 ++++++----
 2 files changed, 28 insertions(+), 4 deletions(-)

diff --git a/sys-block/smp_utils/files/smp_utils-0.99-stdint.patch b/sys-block/smp_utils/files/smp_utils-0.99-stdint.patch
new file mode 100644
index 000000000000..b21fe9f4713a
--- /dev/null
+++ b/sys-block/smp_utils/files/smp_utils-0.99-stdint.patch
@@ -0,0 +1,22 @@
+Use C99/stdint.h types over non-portable (deprecated) glibc types
+Bug: https://bugs.gentoo.org/715840
+
+--- a/lib/mpi_type.h
++++ b/lib/mpi_type.h
+@@ -26,6 +26,7 @@
+ #ifndef MPI_TYPE_H
+ #define MPI_TYPE_H
+ 
++#include <stdint.h>
+ 
+ /*******************************************************************************
+  * Define MPI_POINTER if it hasn't already been defined. By default MPI_POINTER
+@@ -50,7 +51,7 @@
+ 
+ 
+ typedef int32_t   S32;
+-typedef u_int32_t U32;
++typedef uint32_t U32;
+ 
+ typedef struct _S64
+ {

diff --git a/sys-block/smp_utils/smp_utils-0.99.ebuild b/sys-block/smp_utils/smp_utils-0.99-r1.ebuild
similarity index 87%
rename from sys-block/smp_utils/smp_utils-0.99.ebuild
rename to sys-block/smp_utils/smp_utils-0.99-r1.ebuild
index ca8be23c12ca..77c0244842ca 100644
--- a/sys-block/smp_utils/smp_utils-0.99.ebuild
+++ b/sys-block/smp_utils/smp_utils-0.99-r1.ebuild
@@ -1,13 +1,14 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
-DESCRIPTION="Utilities for SAS management protocol (SMP)"
-HOMEPAGE="http://sg.danny.cz/sg/smp_utils.html"
 MY_PV="${PV/_beta/b}"
 MY_PV="${MY_PV/_p/r}"
 MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="Utilities for SAS management protocol (SMP)"
+HOMEPAGE="http://sg.danny.cz/sg/smp_utils.html"
 SRC_URI="http://sg.danny.cz/sg/p/${MY_P}.tar.xz"
 S="${WORKDIR}/${MY_P}"
 
@@ -16,6 +17,7 @@ SLOT="0"
 KEYWORDS="~amd64 ~ppc ~x86"
 IUSE="static-libs"
 
+PATCHES=( "${FILESDIR}"/${P}-stdint.patch )
 DOCS=( AUTHORS ChangeLog COVERAGE CREDITS README )
 
 src_configure() {


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

end of thread, other threads:[~2025-05-04 21:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-04 21:03 [gentoo-commits] repo/gentoo:master commit in: sys-block/smp_utils/files/, sys-block/smp_utils/ David Seifert
  -- strict thread matches above, loose matches on Subject: below --
2016-04-19  6:21 Mike Frysinger

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