From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1gU96Q-0005hu-P8 for ptxdist@pengutronix.de; Tue, 04 Dec 2018 12:42:59 +0100 Received: by mail-lf1-x130.google.com with SMTP id f23so11678016lfc.13 for ; Tue, 04 Dec 2018 03:42:58 -0800 (PST) MIME-Version: 1.0 References: <20181204075024.doexagkcblyjkrrx@pengutronix.de> <20181204104025.o4bp4azqaczaxlym@pengutronix.de> In-Reply-To: <20181204104025.o4bp4azqaczaxlym@pengutronix.de> From: Andreas Friesen Date: Tue, 4 Dec 2018 12:47:27 +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="===============0880167369==" Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de --===============0880167369== Content-Type: multipart/alternative; boundary="0000000000004508f8057c30c4a1" --0000000000004508f8057c30c4a1 Content-Type: text/plain; charset="UTF-8" Also rootfs and rootfs0 exists not! $ DESTDIR="/home/friesen/rootfs/rootfs" /home/friesen/gitlab/quantumx-master/projects/ppc/ptx-multi/platform-soc/sysroot-host/bin/opkg -f "/home/friesen/rootfs/opkg.conf" -o "/home/friesen/rootfs/rootfs/" install rootfs_1.0.0_armhf.ipk Installing rootfs (1.0.0) on root. To remove package debris, try `opkg remove rootfs`. To re-attempt the install, try `opkg install rootfs`. Collected errors: * check_data_file_clashes: Package rootfs wants to install file /home/friesen/rootfs/rootfs//var/run But that path is currently a directory * opkg_solver_install: Cannot install package rootfs. [$] <> ls -all rootfs/var total 20 drwxr-xr-x 5 friesen friesen 4096 Dec 4 12:42 . drwxr-xr-x 3 friesen friesen 4096 Dec 4 12:42 .. drwxr-xr-x 3 friesen friesen 4096 Dec 4 12:42 cache drwxr-xr-x 3 friesen friesen 4096 Dec 4 12:42 lib drwxr-xr-x 2 friesen friesen 4096 Dec 4 12:42 run <------ !!!!! is a directory DESTDIR="/home/friesen/rootfs/rootfs0" opkg -f "/home/friesen/rootfs/opkg.conf" -o "/home/friesen/rootfs/rootfs0/" install rootfs_1.0.0_armhf.ipk Installing rootfs (1.0.0) on root. Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//proc/': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//mnt/': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//sys/': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/profile': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/resolv.conf': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/hostname': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/group': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/issue': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/passwd': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/shadow': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/nsswitch.conf': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/mtab': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/services': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/hosts': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/profile.environment': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/fstab': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/protocols': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//run/': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//root/': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//dev/': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//dev/zero': Can't create '/home/friesen/rootfs/rootfs0/dev/zero' Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//dev/console': Can't create '/home/friesen/rootfs/rootfs0/dev/console' Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//dev/null': Can't create '/home/friesen/rootfs/rootfs0/dev/null' Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//home/': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//tmp/': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//media/': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//var/': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//var/lock/': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//var/run': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//var/log/': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//var/tmp/': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//var/cache/': Can't set UID=0 Configuring rootfs. ls -all rootfs0/var total 24 drwxr-xr-x 6 friesen friesen 4096 Nov 1 01:00 . drwxr-xr-x 14 friesen friesen 4096 Dec 4 12:44 .. drwxr-xr-x 2 friesen friesen 4096 Nov 1 01:00 cache drwxr-xr-x 2 friesen friesen 4096 Nov 1 01:00 lock drwxr-xr-x 2 friesen friesen 4096 Nov 1 01:00 log lrwxrwxrwx 1 friesen friesen 6 Nov 1 01:00 run -> ../run <--- is a link ! drwxr-xr-x 2 friesen friesen 4096 Nov 1 01:00 tmp Am Di., 4. Dez. 2018 um 11:40 Uhr schrieb Michael Olbrich < m.olbrich@pengutronix.de>: > On Tue, Dec 04, 2018 at 10:40:11AM +0100, Andreas Friesen wrote: > > 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= " > ! > > Very strange. I don't see this issue here. Also, did you copy the correct > error message? The path there is not inside the specified DESTDIR. And is > var/run inside the generated rootfs an empty directory? > > Also, calling opkg manually may work for other reasons: If rootfs is > installed before another package created the directory, then I think it > will just work. > > 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 --0000000000004508f8057c30c4a1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Also rootfs and rootfs0 exists not!

$ DESTDIR=3D"/home/friesen/rootfs/rootfs"=C2=A0 =C2=A0 =C2=A0 /h= ome/friesen/gitlab/quantumx-master/projects/ppc/ptx-multi/platform-soc/sysr= oot-host/bin/opkg -f "/home/friesen/rootfs/opkg.conf" -o "/h= ome/friesen/rootfs/rootfs/" install=C2=A0 rootfs_1.0.0_armhf.ipk
=
Installing rootfs (1.0.0) on root.
To remove package debris,= try `opkg remove rootfs`.
To re-attempt the install, try `opkg i= nstall rootfs`.
Collected errors:
=C2=A0* check_data_fi= le_clashes: Package rootfs wants to install file /home/friesen/rootfs/rootf= s//var/run
But that path = is currently a directory
=C2=A0* opkg_solver_install: Cannot inst= all package rootfs.

[$] <> ls -all root= fs/var=C2=A0 =C2=A0 =C2=A0
total 20
drwxr-xr-x 5 friese= n friesen 4096 Dec=C2=A0 4 12:42 .
drwxr-xr-x 3 friesen friesen 4= 096 Dec=C2=A0 4 12:42 ..
drwxr-xr-x 3 friesen friesen 4096 Dec=C2= =A0 4 12:42 cache
drwxr-xr-x 3 friesen friesen 4096 Dec=C2=A0 4 1= 2:42 lib
drwxr-xr-x 2 friesen friesen 4096 Dec=C2=A0 4 12:42 run= =C2=A0 <------ !!!!! is a directory


<= /div>
DESTDIR=3D"/home/friesen/rootfs/rootfs0"=C2=A0 opk= g -f "/home/friesen/rootfs/opkg.conf" -o "/home/friesen/root= fs/rootfs0/" install rootfs_1.0.0_armhf.ipk
Installing rootf= s (1.0.0) on root.=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 = =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 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0
Warning when extracting archive entry '/hom= e/friesen/rootfs/rootfs0//proc/': Can't set UID=3D0
Warni= ng when extracting archive entry '/home/friesen/rootfs/rootfs0//mnt/= 9;: Can't set UID=3D0
Warning when extracting archive entry &= #39;/home/friesen/rootfs/rootfs0//sys/': Can't set UID=3D0
Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//= etc/': Can't set UID=3D0
Warning when extracting archive = entry '/home/friesen/rootfs/rootfs0//etc/profile': Can't set UI= D=3D0
Warning when extracting archive entry '/home/friesen/ro= otfs/rootfs0//etc/resolv.conf': Can't set UID=3D0
Warning= when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/hostn= ame': Can't set UID=3D0
Warning when extracting archive e= ntry '/home/friesen/rootfs/rootfs0//etc/group': Can't set UID= =3D0
Warning when extracting archive entry '/home/friesen/roo= tfs/rootfs0//etc/issue': Can't set UID=3D0
Warning when e= xtracting archive entry '/home/friesen/rootfs/rootfs0//etc/passwd':= Can't set UID=3D0
Warning when extracting archive entry '= ;/home/friesen/rootfs/rootfs0//etc/shadow': Can't set UID=3D0
=
Warning when extracting archive entry '/home/friesen/rootfs/rootfs= 0//etc/nsswitch.conf': Can't set UID=3D0
Warning when ext= racting archive entry '/home/friesen/rootfs/rootfs0//etc/mtab': Can= 't set UID=3D0
Warning when extracting archive entry '/ho= me/friesen/rootfs/rootfs0//etc/services': Can't set UID=3D0
Warning when extracting archive entry '/home/friesen/rootfs/rootfs0/= /etc/hosts': Can't set UID=3D0
Warning when extracting ar= chive entry '/home/friesen/rootfs/rootfs0//etc/profile.environment'= : Can't set UID=3D0
Warning when extracting archive entry = 9;/home/friesen/rootfs/rootfs0//etc/fstab': Can't set UID=3D0
=
Warning when extracting archive entry '/home/friesen/rootfs/rootfs= 0//etc/protocols': Can't set UID=3D0
Warning when extract= ing archive entry '/home/friesen/rootfs/rootfs0//run/': Can't s= et UID=3D0
Warning when extracting archive entry '/home/fries= en/rootfs/rootfs0//root/': Can't set UID=3D0
Warning when= extracting archive entry '/home/friesen/rootfs/rootfs0//dev/': Can= 't set UID=3D0
Warning when extracting archive entry '/ho= me/friesen/rootfs/rootfs0//dev/zero': Can't create '/home/fries= en/rootfs/rootfs0/dev/zero'
Warning when extracting archive e= ntry '/home/friesen/rootfs/rootfs0//dev/console': Can't create = '/home/friesen/rootfs/rootfs0/dev/console'
Warning when e= xtracting archive entry '/home/friesen/rootfs/rootfs0//dev/null': C= an't create '/home/friesen/rootfs/rootfs0/dev/null'
W= arning when extracting archive entry '/home/friesen/rootfs/rootfs0//hom= e/': Can't set UID=3D0
Warning when extracting archive en= try '/home/friesen/rootfs/rootfs0//tmp/': Can't set UID=3D0
Warning when extracting archive entry '/home/friesen/rootfs/root= fs0//media/': Can't set UID=3D0
Warning when extracting a= rchive entry '/home/friesen/rootfs/rootfs0//var/': Can't set UI= D=3D0
Warning when extracting archive entry '/home/friesen/ro= otfs/rootfs0//var/lock/': Can't set UID=3D0
Warning when = extracting archive entry '/home/friesen/rootfs/rootfs0//var/run': C= an't set UID=3D0
Warning when extracting archive entry '/= home/friesen/rootfs/rootfs0//var/log/': Can't set UID=3D0
Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//v= ar/tmp/': Can't set UID=3D0
Warning when extracting archi= ve entry '/home/friesen/rootfs/rootfs0//var/cache/': Can't set = UID=3D0
Configuring rootfs.

l= s -all rootfs0/var
total 24=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0
drwxr-xr-x=C2=A0 6 friesen = friesen 4096 Nov=C2=A0 1 01:00 .
drwxr-xr-x 14 friesen friesen 40= 96 Dec=C2=A0 4 12:44 ..
drwxr-xr-x=C2=A0 2 friesen friesen 4096 N= ov=C2=A0 1 01:00 cache
drwxr-xr-x=C2=A0 2 friesen friesen 4096 No= v=C2=A0 1 01:00 lock
drwxr-xr-x=C2=A0 2 friesen friesen 4096 Nov= =C2=A0 1 01:00 log
lrwxrwxrwx=C2=A0 1 friesen friesen=C2=A0 =C2= =A0 6 Nov=C2=A0 1 01:00 run -> ../run=C2=A0 =C2=A0 =C2=A0 <--- is a l= ink !
drwxr-xr-x=C2=A0 2 friesen friesen 4096 Nov=C2=A0 1 01:00 t= mp


<= div dir=3D"ltr">


=
Am Di., 4. Dez. 2018 um 11:= 40=C2=A0Uhr schrieb Michael Olbrich <m.olbrich@pengutronix.de>:
On Tue, Dec 04, 2018 at 10:40:11AM +0100, Andreas= Friesen wrote:
> Hi Michael.
>
> I compiled opkg for my host system (archlinux) with : "./configur= e ; make ;
> make install" and installed all packages from ptxdist without any= errors:
> DESTDIR=3D"/home/friesen/rootfs/rootfs" opkg -f
> "/home/friesen/rootfs/opkg.conf" -o "/home/friesen/root= fs/rootfs/" install
> /home/friesen/ptx-multi/platform-soc/packages/*.ipk
>
> but
>
> DESTDIR=3D"/home/friesen/rootfs/rootfs"
> /home/friesen/gitlab/ptx-multi/platform-soc/sysroot-host/bin/opkg
> -f "/home/friesen/rootfs/opkg.conf" -o "/home/friesen/r= ootfs/rootfs/"
> install
> /home/friesen/gitlab/quantumx-master/projects/ppc/ptx-multi/platform-s= oc/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=
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0But that path is currently a director= y
>
> I finded out with try-and-error method, that opkg do not like "pr= efix=3D " !

Very strange. I don't see this issue here. Also, did you copy the corre= ct
error message? The path there is not inside the specified DESTDIR. And is var/run inside the generated rootfs an empty directory?

Also, calling opkg manually may work for other reasons: If rootfs is
installed before another package created the directory, then I think it
will just work.

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
--0000000000004508f8057c30c4a1-- --===============0880167369== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KcHR4ZGlzdCBt YWlsaW5nIGxpc3QKcHR4ZGlzdEBwZW5ndXRyb25peC5kZQ== --===============0880167369==--