develooper Front page | perl.perl5.porters | Postings from January 2016

Configure: libswanted=nm suddenly harmful

Thread Next
From:
Andreas Koenig
Date:
January 2, 2016 20:49
Subject:
Configure: libswanted=nm suddenly harmful
Message ID:
87fuyfiu5a.fsf@k85.linux.bogus
These days I had to debug an unpleasent surprise that I could track down
to the member "nm" in the variable libswanted in Configure.

I went through the git history of Configure and found it was alread
there in 1994 (2304df62caa7d9be70e8b8bcdb454e139c9c103d):

 : +libswanted="net socket nsl inet nm sdbm gdbm ndbm dbm malloc dl dld sun m c_s posix cposix ndir dir ucb bsd BSD PW x"

20 years later the two-letter word gets a new life:

 : # aptitude show libnm-dev
 : Package: libnm-dev                       
 : New: yes
 : State: installed
 : Automatically installed: yes
 : Multi-Arch: same
 : Version: 1.0.10-1
 : Priority: optional
 : Section: libdevel
 : Maintainer: Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>
 : Architecture: amd64
 : Uncompressed Size: 5,604 k
 : Depends: libnm0 (= 1.0.10-1), gir1.2-networkmanager-1.0 (= 1.0.10-1),
 :          libglib2.0-dev
 : Description: GObject-based client library for NetworkManager (development files)
 :  NetworkManager is a system network service that manages your network devices
 :  and connections, attempting to keep active network connectivity when available.
 :  It manages ethernet, WiFi, mobile broadband (WWAN), and PPPoE devices, and
 :  provides VPN integration with a variety of different VPN services. 
 : Homepage: https://wiki.gnome.org/Projects/NetworkManager

A week ago in a short moment of inattention this beast got installed on
my smoker. From that day on all my perls were built with:

 : perllibs=-lpthread -lnsl -lnm -ldl -lm -lcrypt -lutil -lc

That was the only difference, the -lnm resulting from the fact that I
now had a libnm-dev package installed. The effect was so tiny that it
took me a while to notice it. All tests passed but IPC-Run-0.94 had a
few tests that sudenly failed:

 : http://www.cpantesters.org/cpan/report/20895f3c-ac1d-11e5-9299-d07fbe244ed2

Meanwhile I have killed all my smokers and am restarting with a new
recipe that specifies libswanted on the comman line. But we shoul fix
this at the root to spare others the same trouble.

Ideas how to deal with it:

1) remove nm from the list and force others who want to use their own
   nm to add it in their hints file
2) follow the example of hints/bsdos.sh to remove it for linux
3) introduce an option like vetolibs so that the enduser can easily
   specify "nm" as not welcome?
4) Anything else?

Thanks,
-- 
andreas

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About