NetBSD Problem Report #54505

From www@netbsd.org  Thu Aug 29 10:19:16 2019
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 53BCC7A150
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 29 Aug 2019 10:19:16 +0000 (UTC)
Message-Id: <20190829101915.7C6177A1B0@mollari.NetBSD.org>
Date: Thu, 29 Aug 2019 10:19:15 +0000 (UTC)
From: clement.bouvier.europe@gmail.com
Reply-To: clement.bouvier.europe@gmail.com
To: gnats-bugs@NetBSD.org
Subject: devezlua-cqueues
X-Send-Pr-Version: www-1.0

>Number:         54505
>Category:       pkg
>Synopsis:       devezlua-cqueues
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 29 10:20:00 +0000 2019
>Closed-Date:    Thu Aug 29 20:26:26 +0000 2019
>Last-Modified:  Thu Aug 29 20:26:26 +0000 2019
>Originator:     clement bouvier
>Release:        current
>Organization:
>Environment:
macOS mojave
>Description:
Openssl dependency lacking on macOS:

 fatal error: 'openssl/ssl.h' file not found
#include <openssl/ssl.h> /* SSL_CTX, SSL_CTX_free(), SSL_CTX_up_ref(), SSL, SSL_up_ref() */
>How-To-Repeat:
Build the package
>Fix:
The patch below adds the openssl dependency.

It also adds m4 in USE_TOOLS ; some platform need to have m4: ( in /src/GNUmakefile line 42:

# NOTE: M4 might fail so delay creating $@
$(d)/errno.c: $(d)/errno.c.m4
        cd $(@D) && $(M4) $< >| $@.tmp
        mv $@.tmp $@

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/lua-cqueues/Makefile,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile
--- Makefile	26 Jan 2019 00:57:56 -0000	1.1.1.1
+++ Makefile	29 Aug 2019 10:16:38 -0000
@@ -12,7 +12,7 @@
 LICENSE=	mit

 USE_LANGUAGES=	c
-USE_TOOLS+=	gmake
+USE_TOOLS+=	gmake m4

 MAKE_ENV+=	prefix=${PREFIX}

@@ -20,4 +20,5 @@
 INSTALL_TARGET=	install${_LUA_DOT_VERSION}

 .include "../../lang/lua/module.mk"
+.include "../../security/openssl/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: alnsn@NetBSD.org
State-Changed-When: Thu, 29 Aug 2019 20:26:26 +0000
State-Changed-Why:
Patch applied.

PS There are new releases on github and ssl is
now in a separate Lua module.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.