Subject: Re: automatic shared library handling failure on arm32
To: Bill Sommerfeld <sommerfeld@orchard.arlington.ma.us>
From: Alistair Crooks <agc@pkgsrc.org>
List: tech-pkg
Date: 01/29/2001 09:39:35
On Sun, Jan 28, 2001 at 09:22:11PM -0500, Bill Sommerfeld wrote:
> so, on an arm32 system (DNARD) running 1.5-branch, for dynamically
> linked executables, file(1) reports:
> 
> /usr/bin/netstat: setgid NetBSD/arm32 demand paged shared library
> 
> now, this is a bug in itself but it triggers a bug in bsd.pkg.mk..
> 
> this causes "automatic none shared library handling", which I don't
> think is what was intended.
> 
> the following change to bsd.pkg.mk appears to fix this.
> 
> @@ -1916,6 +1930,8 @@
>                 case `${FILE} a.$$$$.out` in                            \
>                 *ELF*dynamically*)                                      \
>                         sotype=ELF ;;                                   \
> +               *shared*library*)                                       \
> +                       sotype="a.out" ;;                               \
>                 *dynamically*)                                          \
>                         sotype="a.out" ;;                               \
>                 esac;                                                   \
> 
> 					- Bill

David Forbes found the bug on the arm32 port originally.  Christos has
committed the changes to file(1) in -current, and, I believe, made the
changes to the file(1) distribution. I *think* the changes have been
pulled up to 1.5.1, but please don't quote me on that.

I'd prefer it to be fixed by using file(1) properly, but, in view of the
fact that (a) we need to keep a "none" category for potential new ports
which don't yet have toolchain support for shared libraries, and (b) it's
borked on arm32 on 1.5, I think the change should be made to bsd.pkg.mk

Regards,
Alistair