From 046383c234884c958ab6ca9ea5fddba703102e1b Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Mon, 9 Jan 2006 12:15:24 +0000 Subject: avoid anything that isn't a library in warning for SHARED_LIBS. Turn warning into a fatal error. --- usr.sbin/pkg_add/pkg_create | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/pkg_add/pkg_create b/usr.sbin/pkg_add/pkg_create index 9c1e00eaff9..923d47b6bfc 100644 --- a/usr.sbin/pkg_add/pkg_create +++ b/usr.sbin/pkg_add/pkg_create @@ -1,6 +1,6 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: pkg_create,v 1.44 2005/12/26 15:50:39 espie Exp $ +# $OpenBSD: pkg_create,v 1.45 2006/01/09 12:15:23 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie # @@ -476,8 +476,9 @@ for my $contentsfile (@contents) { if (m/^(\@comment\s+\$(?:Open)BSD\$)$/) { $_ = '@comment $'.'OpenBSD: '.basename($fname).',v$'; } - if (m/^\@lib\s+.*\.so\.\d+\.\d+$/) { + if (m,^\@lib\s+.*/lib[^/]+\.so\.\d+\.\d+$,) { Warn "Shared library without SHARED_LIBS: $_"; + $main::errors++; } &$cont(dosubst($_)); } -- cgit v1.2.3