diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2005-12-26 15:50:40 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2005-12-26 15:50:40 +0000 |
commit | e3b4398a357fb9fc8cef5f69b745d4e89d4a1118 (patch) | |
tree | 3bed8324acd3022cd6d347a97d7e3783dc01978a /usr.sbin | |
parent | c99cc60e752e29a5735255ae50b2dbb761f9f41f (diff) |
have pkg_create warn about shared libs which have a version number hardcoded
in the packing-list.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/pkg_create | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/pkg_create b/usr.sbin/pkg_add/pkg_create index 55ec43830a6..9c1e00eaff9 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.43 2005/11/19 14:45:32 espie Exp $ +# $OpenBSD: pkg_create,v 1.44 2005/12/26 15:50:39 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org> # @@ -476,6 +476,9 @@ for my $contentsfile (@contents) { if (m/^(\@comment\s+\$(?:Open)BSD\$)$/) { $_ = '@comment $'.'OpenBSD: '.basename($fname).',v$'; } + if (m/^\@lib\s+.*\.so\.\d+\.\d+$/) { + Warn "Shared library without SHARED_LIBS: $_"; + } &$cont(dosubst($_)); } } |