Received: from [82.71.203.194] (helo=crown.reciva.com) by linuxtogo.org with esmtp (Exim 4.69) (envelope-from ) id 1MGHSx-0001Sz-KD for openembedded-devel@lists.openembedded.org; Mon, 15 Jun 2009 21:03:35 +0200 Received: from 88-109-80-94.dynamic.dsl.as9105.com ([88.109.80.94] helo=[192.168.2.154]) by crown.reciva.com with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1MGHJ3-00059p-1k for openembedded-devel@lists.openembedded.org; Mon, 15 Jun 2009 19:53:21 +0100 From: Phil Blundell To: openembedded-devel@lists.openembedded.org In-Reply-To: <4A3695E3.9070500@balister.org> References: <4A3665DF.7040109@balister.org> <522EC177-58EA-4408-857C-5A010D5C2A1A@mac.com> <1245088339.29153.39.camel@lenovo.internal.reciva.com> <4A3695E3.9070500@balister.org> Date: Mon, 15 Jun 2009 19:53:19 +0100 Message-Id: <1245091999.29153.48.camel@lenovo.internal.reciva.com> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Subject: Re: Help required to create recipe for FANN library X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jun 2009 19:03:35 -0000 Content-Type: text/plain Content-Transfer-Encoding: 7bit On Mon, 2009-06-15 at 14:41 -0400, Philip Balister wrote: > Phil Blundell wrote: > > On Mon, 2009-06-15 at 21:34 +0400, Elvis Dowson wrote: > >> Hi, > >> When building the FANN library, I get the following message: > >> > >> NOTE: Multiple libraries (libfann.so.2, libdoublefann.so.2, > >> libfixedfann.so.2, libfloatfann.so.2) found and LEAD_SONAME not defined > >> > >> What is the use of the LEAD_SONAME? > > > > You should probably ignore LEAD_SONAME; this mechanism seemed like a > > good idea at the time but with hindsight it was not such a clever plan. > > The right way to fix this warning is to put each of the libraries in its > > own output package. > > Do you have a hint on how to do that? I've had the same question. Right now, I think the only way is to do it by steam, something like: PACKAGES =+ "libfann libdoublefann libfixedfann libfloatfann" FILES_libfann = "${libdir}/libfann${SOLIBS}" FILES_libdoublefan = "${libdir}/libdoublefan${SOLIBS}" ... You can leave the -dev bits alone, it doesn't really hurt for them to go into one big package. Obviously there's some scope for automating this a bit: it'd be nice to be able to just say PACKAGE_SHLIBS = "libfann libdoublefann libfixedfann libfloatfann" and have the other stuff be generated automatically. That'd probably be a fairly straightforward patch to package.bbclass if someone wanted to have a go. p.