20147164 Lint library for Jansson needed
authorTomas Heran <tomas.heran@oracle.com>
Tue, 09 Dec 2014 18:47:43 +0100
changeset 3531 18f175f98e0e
parent 3527 7c002825fea1
child 3533 0b8107a40da7
20147164 Lint library for Jansson needed
components/jansson/Makefile
components/jansson/jansson.p5m
components/jansson/llib-ljansson
--- a/components/jansson/Makefile	Mon Dec 08 23:01:33 2014 -0800
+++ b/components/jansson/Makefile	Tue Dec 09 18:47:43 2014 +0100
@@ -37,6 +37,9 @@
 include ../../make-rules/prep.mk
 include ../../make-rules/configure.mk
 include ../../make-rules/ips.mk
+include ../../make-rules/lint-libraries.mk
+
+LINT_FLAGS += -I$(PROTOUSRINCDIR)
 
 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
 CONFIGURE_OPTIONS += --includedir=$(USRINCDIR)/jansson
--- a/components/jansson/jansson.p5m	Mon Dec 08 23:01:33 2014 -0800
+++ b/components/jansson/jansson.p5m	Tue Dec 09 18:47:43 2014 +0100
@@ -41,10 +41,13 @@
 link path=usr/lib/$(MACH64)/libjansson.so target=libjansson.so.4.7.0
 link path=usr/lib/$(MACH64)/libjansson.so.4 target=libjansson.so.4.7.0
 file path=usr/lib/$(MACH64)/libjansson.so.4.7.0
+file path=usr/lib/$(MACH64)/llib-ljansson.ln
 file path=usr/lib/$(MACH64)/pkgconfig/jansson.pc
 link path=usr/lib/libjansson.so target=libjansson.so.4.7.0
 link path=usr/lib/libjansson.so.4 target=libjansson.so.4.7.0
 file path=usr/lib/libjansson.so.4.7.0
+file path=usr/lib/llib-ljansson
+file path=usr/lib/llib-ljansson.ln
 file path=usr/lib/pkgconfig/jansson.pc
 file path=usr/share/doc/jansson-$(COMPONENT_VERSION)/html/_downloads/github_commits.c
 file path=usr/share/doc/jansson-$(COMPONENT_VERSION)/html/_downloads/github_commits.c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/jansson/llib-ljansson	Tue Dec 09 18:47:43 2014 +0100
@@ -0,0 +1,39 @@
+/*
+ * CDDL HEADER START
+ *
+ * The contents of this file are subject to the terms of the
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
+ *
+ * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ * or http://www.opensolaris.org/os/licensing.
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ *
+ * When distributing Covered Code, include this CDDL HEADER in each
+ * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ * If applicable, add the following below this CDDL HEADER, with the
+ * fields enclosed by brackets "[]" replaced with your own identifying
+ * information: Portions Copyright [yyyy] [name of copyright owner]
+ *
+ * CDDL HEADER END
+ */
+
+/*
+ * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
+ */
+
+/* LINTLIBRARY */
+/* PROTOLIB1 */
+
+/*
+ * This little dance is necessary to avoid ftello/fseeko
+ * complaints vs libc. We don't use them but we do #include
+ * stdio.h and as we are large file aware they get defined
+ * differently than libc.
+ */
+#include <sys/types.h>
+#undef _LARGEFILE_SOURCE
+
+#include <jansson/jansson.h>
+#include <jansson/jansson_config.h>