From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1gU77F-0005OF-V4 for ptxdist@pengutronix.de; Tue, 04 Dec 2018 10:35:42 +0100 Received: by mail-lf1-x12f.google.com with SMTP id p86so11412895lfg.5 for ; Tue, 04 Dec 2018 01:35:41 -0800 (PST) MIME-Version: 1.0 References: <20181204075024.doexagkcblyjkrrx@pengutronix.de> In-Reply-To: <20181204075024.doexagkcblyjkrrx@pengutronix.de> From: Andreas Friesen Date: Tue, 4 Dec 2018 10:40:11 +0100 Message-ID: Subject: Re: [ptxdist] rootfs: package List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: multipart/mixed; boundary="===============1583802322==" Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de --===============1583802322== Content-Type: multipart/alternative; boundary="0000000000001cc5a1057c2efd99" --0000000000001cc5a1057c2efd99 Content-Type: text/plain; charset="UTF-8" Hi Michael. I compiled opkg for my host system (archlinux) with : "./configure ; make ; make install" and installed all packages from ptxdist without any errors: DESTDIR="/home/friesen/rootfs/rootfs" opkg -f "/home/friesen/rootfs/opkg.conf" -o "/home/friesen/rootfs/rootfs/" install /home/friesen/ptx-multi/platform-soc/packages/*.ipk but DESTDIR="/home/friesen/rootfs/rootfs" /home/friesen/gitlab/ptx-multi/platform-soc/sysroot-host/bin/opkg -f "/home/friesen/rootfs/opkg.conf" -o "/home/friesen/rootfs/rootfs/" install /home/friesen/gitlab/quantumx-master/projects/ppc/ptx-multi/platform-soc/packages/*,pkg produced this error: * check_data_file_clashes: Package rootfs wants to install file /home/faix/ptx-multi/platform-soc/build-target/image-nor-mxfs4/var/run But that path is currently a directory I finded out with try-and-error method, that opkg do not like "prefix= " ! Am Di., 4. Dez. 2018 um 08:50 Uhr schrieb Michael Olbrich < m.olbrich@pengutronix.de>: > On Mon, Dec 03, 2018 at 11:38:46PM +0100, Andreas Friesen wrote: > > Hello everyone, > > > > it's work now. Here is a little patch. > > > > > > --- /usr/local/lib/ptxdist-2018.11.0/rules/host-opkg.make > 2018-11-22 > > 20:12:56.000000000 +0100 > > > > +++ rules/host-opkg.make 2018-12-03 23:36:48.214811901 +0100 > > @@ -31,7 +31,6 @@ > > # > > HOST_OPKG_CONF_TOOL := autoconf > > HOST_OPKG_CONF_OPT := \ > > - $(HOST_AUTOCONF) \ > > --disable-libopkg-api \ > > --disable-static \ > > --disable-pathfinder \ > > @@ -45,4 +44,6 @@ > > --without-libsolv \ > > --without-static-libopkg > > > > +# $(HOST_AUTOCONF) \ > > + > > # vim: syntax=make > > This just removes opkg from your PATH. Did you rebuild the BSP afterwards? > Maybe you have opkg somewhere else in PATH. > > 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 --0000000000001cc5a1057c2efd99 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Michael.

I compiled opkg for my host system= (archlinux) with : "./configure ; make ; make install" and insta= lled all packages from ptxdist without any errors:=C2=A0
DESTDIR= =3D"/home/friesen/rootfs/rootfs" = opkg -f "/home/friesen/rootfs/opkg.conf" -o "/home/f= riesen/rootfs/rootfs/" install=C2=A0 /home/friesen/ptx-multi/platform-= soc/packages/*.ipk

but

DESTDIR=3D"/home/friesen/rootfs/rootfs" /home/friesen/gitlab/ptx-multi/platform-soc/sysroot-host/b= in/opkg -f "/home/friesen/rootfs/opkg.conf" -o "/home/friese= n/rootfs/rootfs/" install /home/friesen/gitlab/quantumx-master/project= s/ppc/ptx-multi/platform-soc/packages/*,pkg

pr= oduced this error:

* check_data_file_clashes:= Package rootfs wants to install file /home/faix/ptx-multi/platform-soc/bui= ld-target/image-nor-mxfs4/var/run
=C2=A0 =C2=A0 =C2=A0 =C2=A0 But= that path is currently a directory

I finded= out with try-and-error method, that opkg do not like "prefix=3D "= ; !



Am Di., 4. Dez. 2018 um 08:50=C2= =A0Uhr schrieb Michael Olbrich <m.olbrich@pengutronix.de>:
On Mon, Dec 03, 2018 at 11:38:46PM +0100, Andreas Friesen wrote:
> Hello everyone,
>
> it's work now. Here is a little patch.
>
>
> --- /usr/local/lib/ptxdist-2018.11.0/rules/host-opkg.make=C2=A0 =C2=A0= =C2=A0 =C2=A02018-11-22
> 20:12:56.000000000 +0100
>
> +++ rules/host-opkg.make=C2=A0 =C2=A0 =C2=A0 =C2=A0 2018-12-03 23:36:4= 8.214811901 +0100
> @@ -31,7 +31,6 @@
>=C2=A0 #
>=C2=A0 HOST_OPKG_CONF_TOOL=C2=A0 =C2=A0 :=3D autoconf
>=C2=A0 HOST_OPKG_CONF_OPT=C2=A0 =C2=A0 =C2=A0:=3D \
> -=C2=A0 =C2=A0 =C2=A0 =C2=A0$(HOST_AUTOCONF) \
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--disable-libopkg-api \
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--disable-static \
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--disable-pathfinder \
> @@ -45,4 +44,6 @@
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--without-libsolv \
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--without-static-libopkg
>
> +#=C2=A0 =C2=A0 =C2=A0 $(HOST_AUTOCONF) \
> +
>=C2=A0 # vim: syntax=3Dmake

This just removes opkg from your PATH. Did you rebuild the BSP afterwards?<= br> Maybe you have opkg somewhere else in PATH.

Michael

--
Pengutronix e.K.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|
Industrial Linux Solutions=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0| http://www.pengutronix.de/=C2=A0 |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0=C2=A0= =C2=A0 |
Amtsgericht Hildesheim, HRA 2686=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| = Fax:=C2=A0 =C2=A0+49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutr= onix.de
--0000000000001cc5a1057c2efd99-- --===============1583802322== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KcHR4ZGlzdCBt YWlsaW5nIGxpc3QKcHR4ZGlzdEBwZW5ndXRyb25peC5kZQ== --===============1583802322==--