# HG changeset patch # User Rich Burridge # Date 1323737240 28800 # Node ID 9eb376524c7be2c8e75d9e1a80fdb17e5c2cdf08 # Parent 37f5770ed2dd55b97729ddee91f7074067ef62a6 6992087 Missing lint library for libreadline.so diff -r 37f5770ed2dd -r 9eb376524c7b components/readline/Makefile --- a/components/readline/Makefile Mon Dec 12 13:01:49 2011 -0800 +++ b/components/readline/Makefile Mon Dec 12 16:47:20 2011 -0800 @@ -36,6 +36,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$(PROTO_DIR)/usr/include # readline likes to use ld directly and this is the easiest # way to get it to add -lc diff -r 37f5770ed2dd -r 9eb376524c7b components/readline/llib-lreadline --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/readline/llib-lreadline Mon Dec 12 16:47:20 2011 -0800 @@ -0,0 +1,34 @@ +/* + * 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) 2011, Oracle and/or its affiliates. All rights reserved. + */ + +/* LINTLIBRARY */ +/* PROTOLIB1 */ + +/* + * We need this #include for the FILE definition. + */ +#include + +#include diff -r 37f5770ed2dd -r 9eb376524c7b components/readline/patches/readline.h.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/readline/patches/readline.h.patch Mon Dec 12 16:47:20 2011 -0800 @@ -0,0 +1,11 @@ +--- readline-5.2/readline.h.orig Wed Nov 30 06:37:51 2011 ++++ readline-5.2/readline.h Wed Nov 30 06:38:26 2011 +@@ -375,7 +375,7 @@ + #if defined (USE_VARARGS) && defined (PREFER_STDARG) + extern int rl_message (const char *, ...) __attribute__((__format__ (printf, 1, 2))); + #else +-extern int rl_message (); ++extern int rl_message PARAMS((const char *, ...)); + #endif + + extern int rl_show_char PARAMS((int)); diff -r 37f5770ed2dd -r 9eb376524c7b components/readline/readline.p5m --- a/components/readline/readline.p5m Mon Dec 12 13:01:49 2011 -0800 +++ b/components/readline/readline.p5m Mon Dec 12 16:47:20 2011 -0800 @@ -58,8 +58,11 @@ file path=usr/include/readline/tilde.h file path=usr/lib/$(MACH64)/libhistory.so.5 file path=usr/lib/$(MACH64)/libreadline.so.5 +file $(MACH64)/llib-lreadline.ln path=usr/lib/$(MACH64)/llib-lreadline.ln file path=usr/lib/libhistory.so.5 file path=usr/lib/libreadline.so.5 +file llib-lreadline path=usr/lib/llib-lreadline +file $(MACH32)/llib-lreadline.ln path=usr/lib/llib-lreadline.ln file path=usr/share/info/history.info file path=usr/share/info/readline.info file path=usr/share/info/rluserman.info