summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2006-01-09 12:15:24 +0000
committerMarc Espie <espie@cvs.openbsd.org>2006-01-09 12:15:24 +0000
commit046383c234884c958ab6ca9ea5fddba703102e1b (patch)
tree169479536352aad7ba2adeec36baeba00de35bb4 /usr.sbin/pkg_add
parentb2f7df45a9e953a9c877ebb8df7ae5dc44d4fbb9 (diff)
avoid anything that isn't a library in warning for SHARED_LIBS.
Turn warning into a fatal error.
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r--usr.sbin/pkg_add/pkg_create5
1 files changed, 3 insertions, 2 deletions
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 <espie@openbsd.org>
#
@@ -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($_));
}