diff options
author | 2006-01-09 12:15:23 +0000 | |
---|---|---|
committer | 2006-01-09 12:15:23 +0000 | |
commit | 3ec89460fb6edfc662e1e78610250eaec78bec89 (patch) | |
tree | 62adf9ab200d5e7ba58724c267cfc2563bb574c7 | |
parent | double word fix; from joe snikeris (diff) | |
download | wireguard-openbsd-3ec89460fb6edfc662e1e78610250eaec78bec89.tar.xz wireguard-openbsd-3ec89460fb6edfc662e1e78610250eaec78bec89.zip |
avoid anything that isn't a library in warning for SHARED_LIBS.
Turn warning into a fatal error.
-rw-r--r-- | usr.sbin/pkg_add/pkg_create | 5 |
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($_)); } |