pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

patch to not use flex for building security/heimdal on linux



Maybe it's just me or fedora, but on Fedora 22 (rawhide),
installing heimdal with USE_TOOLS+= bison flex
gives me this error:

=> Checking for missing run-time search paths in heimdal-1.5.3nb6
ERROR: /usr/pkg/lib/libfl.so.2: flex-2.5.39 is not a runtime dependency
ERROR: /usr/pkg/lib/libfl.so.2: flex-2.5.39 is not a runtime dependency
ERROR: /usr/pkg/lib/libfl.so.2: flex-2.5.39 is not a runtime dependency
*** Error code 1

Not using flex seems to work well though

Please find patch attached.

Comments?
-- 
Lokesh
From 44423b384a8aa567f5f9880d22ac616b6fb45fc6 Mon Sep 17 00:00:00 2001
From: Lokesh Mandvekar <lsm5%fedoraproject.org@localhost>
Date: Fri, 18 Jul 2014 01:46:14 -0500
Subject: [PATCH] do not use flex for linux

On Fedora 22 (rawhide), installing heimdal with USE_TOOLS+= bison flex
gives me this error:

=> Checking for missing run-time search paths in heimdal-1.5.3nb6
ERROR: /usr/pkg/lib/libfl.so.2: flex-2.5.39 is not a runtime dependency
ERROR: /usr/pkg/lib/libfl.so.2: flex-2.5.39 is not a runtime dependency
ERROR: /usr/pkg/lib/libfl.so.2: flex-2.5.39 is not a runtime dependency
*** Error code 1

Not using flex seems to work well though

---
 security/heimdal/Makefile | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/security/heimdal/Makefile b/security/heimdal/Makefile
index 4bb7019..213bfcd 100644
--- a/security/heimdal/Makefile
+++ b/security/heimdal/Makefile
@@ -19,7 +19,14 @@ CONFLICTS+=  kth-krb4-[0-9]*
 MAKE_JOBS_SAFE=        no

 USE_LIBTOOL=           yes
+
+.include "../../mk/readline.buildlink3.mk"
+
+.if ${OPSYS} == "Linux"
+USE_TOOLS+=            bison
+.else
 USE_TOOLS+=            bison flex
+.endif
 PKGCONFIG_OVERRIDE+=   tools/heimdal-gssapi.pc.in
 MAKE_ENV+=             INSTALL_CATPAGES=no

@@ -56,8 +63,6 @@ CFLAGS.Darwin+=               -DBIND_8_COMPAT
 OPSYSVARS+=            CONFIGURE_ENV
 CONFIGURE_ENV.SunOS+=  ac_cv_header_vis_h=no

-.include "../../mk/readline.buildlink3.mk"
-
 .if ${READLINE_TYPE} == "readline"
 CONFIGURE_ARGS+=       --with-readline=${BUILDLINK_PREFIX.editlinereadline}
 .elif ${READLINE_TYPE} == "editline"
-- 
2.0.1

Attachment: pgpZK1CaoLFya.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index