* [gentoo-commits] repo/gentoo:master commit in: sys-boot/netboot/, sys-boot/netboot/files/
@ 2021-03-25 22:47 Conrad Kostecki
0 siblings, 0 replies; 2+ messages in thread
From: Conrad Kostecki @ 2021-03-25 22:47 UTC (permalink / raw
To: gentoo-commits
commit: c9524e21283c383b848af79ec6e068217acefbe5
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 25 22:46:11 2021 +0000
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Thu Mar 25 22:46:51 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9524e21
sys-boot/netboot: fix compilation with slibtool
Closes: https://bugs.gentoo.org/778251
Package-Manager: Portage-3.0.16, Repoman-3.0.2
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
sys-boot/netboot/files/netboot-0.10.2-slibtool.patch | 11 +++++++++++
sys-boot/netboot/netboot-0.10.2-r2.ebuild | 7 +++++--
2 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/sys-boot/netboot/files/netboot-0.10.2-slibtool.patch b/sys-boot/netboot/files/netboot-0.10.2-slibtool.patch
new file mode 100644
index 00000000000..82b83f9b588
--- /dev/null
+++ b/sys-boot/netboot/files/netboot-0.10.2-slibtool.patch
@@ -0,0 +1,11 @@
+--- a/misc/instdrv.in
++++ b/misc/instdrv.in
+@@ -296,7 +296,7 @@
+ #
+ test -n "$MD5PROG" || MD5PROG="$DEFAULT_MD5PROG"
+ case $MD5PROG in
+- */libtool*)
++ *libtool*)
+ # It's OK when calling MD5PROG through libtool
+ ;;
+ /*)
diff --git a/sys-boot/netboot/netboot-0.10.2-r2.ebuild b/sys-boot/netboot/netboot-0.10.2-r2.ebuild
index 0fda56f3ee0..13f09cb9284 100644
--- a/sys-boot/netboot/netboot-0.10.2-r2.ebuild
+++ b/sys-boot/netboot/netboot-0.10.2-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -22,7 +22,10 @@ DEPEND="
RDEPEND="${DEPEND}"
-PATCHES=( "${FILESDIR}/${P}-ldflags.patch" )
+PATCHES=(
+ "${FILESDIR}/${P}-ldflags.patch"
+ "${FILESDIR}/${P}-slibtool.patch"
+)
src_prepare() {
default
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-boot/netboot/, sys-boot/netboot/files/
@ 2023-02-11 4:26 Sam James
0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2023-02-11 4:26 UTC (permalink / raw
To: gentoo-commits
commit: d0ab40cc6ba5686a3100be04dd948bbd8f3f69b4
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 11 04:18:49 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Feb 11 04:19:14 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0ab40cc
sys-boot/netboot: fix configure w/ clang 16
also force bison+flex.
Closes: https://bugs.gentoo.org/875116
Closes: https://bugs.gentoo.org/881463
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../files/netboot-0.10.2-configure-clang16.patch | 37 ++++++++++++++++++++++
...t-0.10.2-r3.ebuild => netboot-0.10.2-r4.ebuild} | 15 ++++++---
2 files changed, 48 insertions(+), 4 deletions(-)
diff --git a/sys-boot/netboot/files/netboot-0.10.2-configure-clang16.patch b/sys-boot/netboot/files/netboot-0.10.2-configure-clang16.patch
new file mode 100644
index 000000000000..41c13bb634e2
--- /dev/null
+++ b/sys-boot/netboot/files/netboot-0.10.2-configure-clang16.patch
@@ -0,0 +1,37 @@
+https://bugs.gentoo.org/875116
+--- a/configure
++++ b/configure
+@@ -10772,6 +10772,7 @@ else
+ #endif
+
+ #include <stdio.h>
++#include <stdlib.h>
+
+ #ifdef RTLD_GLOBAL
+ # define LT_DLGLOBAL RTLD_GLOBAL
+@@ -25362,7 +25363,7 @@ _ACEOF
+ cat confdefs.h >>conftest.$ac_ext
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h. */
+-
++#include <stdlib.h>
+ #pragma pack(1)
+ struct {
+ char c[3];
+@@ -25441,7 +25442,7 @@ _ACEOF
+ cat confdefs.h >>conftest.$ac_ext
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h. */
+-
++#include <stdlib.h>
+ #pragma options align=packed
+ struct {
+ char c[3];
+@@ -27724,6 +27725,7 @@ _ACEOF
+ cat confdefs.h >>conftest.$ac_ext
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h. */
++#include <stdlib.h>
+
+ #ifdef USE_PACKED
+ # define PACKED __attribute__((packed))
diff --git a/sys-boot/netboot/netboot-0.10.2-r3.ebuild b/sys-boot/netboot/netboot-0.10.2-r4.ebuild
similarity index 89%
rename from sys-boot/netboot/netboot-0.10.2-r3.ebuild
rename to sys-boot/netboot/netboot-0.10.2-r4.ebuild
index bdaaf75e7d25..1f2eca9cc44b 100644
--- a/sys-boot/netboot/netboot-0.10.2-r3.ebuild
+++ b/sys-boot/netboot/netboot-0.10.2-r4.ebuild
@@ -1,10 +1,8 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-inherit toolchain-funcs
-
DESCRIPTION="Allows to remote boot a computer over an IP network"
HOMEPAGE="http://netboot.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
@@ -19,12 +17,16 @@ DEPEND="
lzo? ( dev-libs/lzo:2= )
odbc? ( dev-db/unixODBC:= )
"
-
RDEPEND="${DEPEND}"
+BDEPEND="
+ sys-devel/bison
+ sys-devel/flex
+"
PATCHES=(
"${FILESDIR}/${P}-ldflags.patch"
"${FILESDIR}/${P}-slibtool.patch"
+ "${FILESDIR}/${P}-configure-clang16.patch"
)
src_prepare() {
@@ -41,6 +43,11 @@ src_prepare() {
}
src_configure() {
+ # Force Bison
+ unset YACC
+ # Uses yy_fatal_error
+ export LEX=flex
+
local myeconfargs=(
--datadir="/usr/share/netboot"
$(use_with berkdb berkeley-db)
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-02-11 4:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-11 4:26 [gentoo-commits] repo/gentoo:master commit in: sys-boot/netboot/, sys-boot/netboot/files/ Sam James
-- strict thread matches above, loose matches on Subject: below --
2021-03-25 22:47 Conrad Kostecki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox