From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mediacenter.hi.pengutronix.de ([2001:6f8:1178:2::65]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1ScXep-0007EJ-OV for ptxdist@pengutronix.de; Thu, 07 Jun 2012 10:01:27 +0200 Received: from mol by mediacenter.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1ScXep-0005by-NS for ptxdist@pengutronix.de; Thu, 07 Jun 2012 10:01:27 +0200 Date: Thu, 7 Jun 2012 10:01:27 +0200 From: Michael Olbrich Message-ID: <20120607080127.GL12403@pengutronix.de> References: <4FCCB6F0.2090100@televic.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4FCCB6F0.2090100@televic.com> Subject: Re: [ptxdist] update package Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Mon, Jun 04, 2012 at 03:24:00PM +0200, De Smedt Johannes wrote: > I wanted to update the version of one of the local source packages I use (fsl-mm-codeclib). So I edited the .make file in the rules directory. The only thing that I changed, is the version (from 1.9.6 to 2.0.3) and the md5 checksum. I changed nothing else in the file. > After changing the .make file; I ran "ptxdist clean fsl-mm-codeclib" followed by "ptxdist go" > This is the error I get: > ------------------------------------- > target: fsl-mm-codeclib.targetinstall > ------------------------------------- > > install_init: preparing for image creation of 'fsl-mm-codeclib'... > install_init: @ARCH@ -> armel > install_init: @PACKAGE@ -> fsl-mm-codeclib > install_init: @VERSION@ -> 2.0.3 > install_init: @DEPENDS@ -> > install_init: preinst not available > install_init: postinst not available > install_init: prerm not available > install_init: postrm not available > install_fixup: @PRIORITY@ -> optional ... done. > install_fixup: @SECTION@ -> base ... done. > install_fixup: @AUTHOR@ -> "Michael Olbrich " ... done. > install_fixup: @DESCRIPTION@ -> missing ... done. > xpkg_finish: collecting license (unknown) ... done. > xpkg_finish: creating opkg package ... > Error: ptxd_lib_install: cannot find library 'lib_mp3_dec_arm9_elinux'! > failed > > I looked at the ptxdist sources and found the errormessage in scripts/lib/ptxd_make_xpkg_pkg.sh > After some analisys, I discovered that the ptxd_lib_install failed because the find command (on line 636 from scripts/lib/ptxd_make_xpkg_pkg.sh) returned 2 filenames (the .so and the .so.2.10.0). In this case your package is broken. The 'find' only matches regular files. The .so should be a symbolic link. > I tried limiting the find to only return one result, but without success. Finally I remove the '*' after '.so' so only the .so file would be found. > This made the fsl-mm-codeclib.targetinstall successfull, but other calls were now unsuccessfull. > > I have successfully built all my packages by adding/removing the * in the source (& recompiling ptxdist). > > Now my questions: > 1) Why did the targetinstall fail in the first place (the only thing that changed was the package version (the install_lib command was already there) As I said, broken package. > 2) Since my fix isn't really a fix (other things fail); how can I fix the build? Fix the package, or use install_copy/install_link Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de