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 1gU9C1-0006Ur-0Q for ptxdist@pengutronix.de; Tue, 04 Dec 2018 12:48:45 +0100 Received: by mail-lf1-x130.google.com with SMTP id z13so11690577lfe.11 for ; Tue, 04 Dec 2018 03:48:44 -0800 (PST) MIME-Version: 1.0 References: <20181204075024.doexagkcblyjkrrx@pengutronix.de> <20181204104025.o4bp4azqaczaxlym@pengutronix.de> In-Reply-To: From: Andreas Friesen Date: Tue, 4 Dec 2018 12:53:14 +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="===============1531450265==" Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de --===============1531450265== Content-Type: multipart/alternative; boundary="000000000000f1633f057c30d8e5" --000000000000f1633f057c30d8e5 Content-Type: text/plain; charset="UTF-8" Here as attachment config.log files ----------------------- ptxdist opkg config.log $ ./configure --prefix= --disable-libopkg-api --disable-static --disable-pathfinder --disable-xz --disable-bzip2 --disable-curl --disable-sha256 --disable-openssl --disable-ssl-curl --disable-gpg --without-l ibsolv --without-static-libopkg ## --------- ## ## Platform. ## ## --------- ## hostname = sumo uname -m = x86_64 uname -r = 4.19.4-arch1-1-ARCH uname -s = Linux uname -v = #1 SMP PREEMPT Fri Nov 23 09:06:58 UTC 2018 -------------------------- my opkg config.log $ ./configure ## --------- ## ## Platform. ## ## --------- ## hostname = sumo uname -m = x86_64 uname -r = 4.19.4-arch1-1-ARCH uname -s = Linux uname -v = #1 SMP PREEMPT Fri Nov 23 09:06:58 UTC 2018 Am Di., 4. Dez. 2018 um 12:47 Uhr schrieb Andreas Friesen : > 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 > > --000000000000f1633f057c30d8e5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Here as attachment config.log files<= /div>

----------------------- pt= xdist opkg config.log=C2=A0
=C2=A0 $ ./configure --prefix=3D --dis= able-libopkg-api --disable-static --disable-pathfinder --disable-xz --disab= le-bzip2 --disable-curl --disable-sha256 --disable-openssl --disable-ssl-cu= rl --disable-gpg --without-l
ibsolv --without-static-libopkg

## --------- ##
## Platform. ##
##= --------- ##

hostname =3D sumo
uname -m= =3D x86_64
uname -r =3D 4.19.4-arch1-1-ARCH
uname -s = =3D Linux
uname -v =3D #1 SMP PREEMPT Fri Nov 23 09:06:58 UTC 201= 8

-------------------------- my opkg config.= log=C2=A0


=C2=A0 $ ./configure=

## --------- ##
## Platform. ##
## --------- ##

hostname =3D sumo
una= me -m =3D x86_64
uname -r =3D 4.19.4-arch1-1-ARCH
uname= -s =3D Linux
uname -v =3D #1 SMP PREEMPT Fri Nov 23 09:06:58 UTC= 2018



Am Di., 4. Dez. 2018 um 12:47=C2=A0Uh= r schrieb Andreas Friesen <ms.frsn@= gmail.com>:
A= lso rootfs and rootfs0 exists not!

$ DESTDIR=3D&qu= ot;/home/friesen/rootfs/rootfs"=C2=A0 =C2=A0 =C2=A0 /home/friesen/gitl= ab/quantumx-master/projects/ppc/ptx-multi/platform-soc/sysroot-host/bin/opk= g -f "/home/friesen/rootfs/opkg.conf" -o "/home/friesen/root= fs/rootfs/" install=C2=A0 rootfs_1.0.0_armhf.ipk
Installing = rootfs (1.0.0) on root.
To remove package debris, try `opkg remov= e rootfs`.
To re-attempt the install, try `opkg install rootfs`.<= /div>
Collected errors:
=C2=A0* check_data_file_clashes: Pack= age rootfs wants to install file /home/friesen/rootfs/rootfs//var/run
=
But that path is currentl= y a directory
=C2=A0* opkg_solver_install: Cannot install package= rootfs.

[$] <> ls -all rootfs/var=C2= =A0 =C2=A0 =C2=A0
total 20
drwxr-xr-x 5 friesen friesen= 4096 Dec=C2=A0 4 12:42 .
drwxr-xr-x 3 friesen friesen 4096 Dec= =C2=A0 4 12:42 ..
drwxr-xr-x 3 friesen friesen 4096 Dec=C2=A0 4 1= 2:42 cache
drwxr-xr-x 3 friesen friesen 4096 Dec=C2=A0 4 12:42 li= b
drwxr-xr-x 2 friesen friesen 4096 Dec=C2=A0 4 12:42 run=C2=A0 &= lt;------ !!!!! is a directory


DESTDIR=3D"/home/friesen/rootfs/rootfs0"=C2=A0 opkg -f &qu= ot;/home/friesen/rootfs/opkg.conf" -o "/home/friesen/rootfs/rootf= s0/" install rootfs_1.0.0_armhf.ipk
Installing rootfs (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 '/home/fries= en/rootfs/rootfs0//proc/': Can't set UID=3D0
Warning when= extracting archive entry '/home/friesen/rootfs/rootfs0//mnt/': Can= 't set UID=3D0
Warning when extracting archive entry '/ho= me/friesen/rootfs/rootfs0//sys/': Can't set UID=3D0
Warni= ng when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/= 9;: Can't set UID=3D0
Warning when extracting archive entry &= #39;/home/friesen/rootfs/rootfs0//etc/profile': Can't set UID=3D0
Warning when extracting archive entry '/home/friesen/rootfs/ro= otfs0//etc/resolv.conf': Can't set UID=3D0
Warning when e= xtracting archive entry '/home/friesen/rootfs/rootfs0//etc/hostname'= ;: Can't set UID=3D0
Warning when extracting archive entry &#= 39;/home/friesen/rootfs/rootfs0//etc/group': Can't set UID=3D0
Warning when extracting archive entry '/home/friesen/rootfs/rootf= s0//etc/issue': Can't set UID=3D0
Warning when extracting= archive entry '/home/friesen/rootfs/rootfs0//etc/passwd': Can'= t set UID=3D0
Warning when extracting archive entry '/home/fr= iesen/rootfs/rootfs0//etc/shadow': Can't set UID=3D0
Warn= ing when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/ns= switch.conf': Can't set UID=3D0
Warning when extracting a= rchive entry '/home/friesen/rootfs/rootfs0//etc/mtab': Can't se= t UID=3D0
Warning when extracting archive entry '/home/friese= n/rootfs/rootfs0//etc/services': Can't set UID=3D0
Warnin= g when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/host= s': Can't set UID=3D0
Warning when extracting archive ent= ry '/home/friesen/rootfs/rootfs0//etc/profile.environment': Can'= ;t set UID=3D0
Warning when extracting archive entry '/home/f= riesen/rootfs/rootfs0//etc/fstab': Can't set UID=3D0
Warn= ing when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/pr= otocols': Can't set UID=3D0
Warning when extracting archi= ve entry '/home/friesen/rootfs/rootfs0//run/': Can't set UID=3D= 0
Warning when extracting archive entry '/home/friesen/rootfs= /rootfs0//root/': Can't set UID=3D0
Warning when extracti= ng archive entry '/home/friesen/rootfs/rootfs0//dev/': Can't se= t UID=3D0
Warning when extracting archive entry '/home/friese= n/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 '/hom= e/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 wh= en extracting archive entry '/home/friesen/rootfs/rootfs0//home/': = Can't set UID=3D0
Warning when extracting archive entry '= /home/friesen/rootfs/rootfs0//tmp/': Can't set UID=3D0
Wa= rning when extracting archive entry '/home/friesen/rootfs/rootfs0//medi= a/': Can't set UID=3D0
Warning when extracting archive en= try '/home/friesen/rootfs/rootfs0//var/': Can't set UID=3D0
Warning when extracting archive entry '/home/friesen/rootfs/root= fs0//var/lock/': Can't set UID=3D0
Warning when extractin= g archive entry '/home/friesen/rootfs/rootfs0//var/run': Can't = set UID=3D0
Warning when extracting archive entry '/home/frie= sen/rootfs/rootfs0//var/log/': Can't set UID=3D0
Warning = when extracting archive entry '/home/friesen/rootfs/rootfs0//var/tmp/&#= 39;: Can't set UID=3D0
Warning when extracting archive entry = '/home/friesen/rootfs/rootfs0//var/cache/': Can't set UID=3D0
Configuring rootfs.

ls -all ro= otfs0/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 4096 Dec= =C2=A0 4 12:44 ..
drwxr-xr-x=C2=A0 2 friesen friesen 4096 Nov=C2= =A0 1 01:00 cache
drwxr-xr-x=C2=A0 2 friesen friesen 4096 Nov=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 link !=
drwxr-xr-x=C2=A0 2 friesen friesen 4096 Nov=C2=A0 1 01:00 tmp





<= div class=3D"gmail_quote">
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 Frie= sen 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
--000000000000f1633f057c30d8e5-- --===============1531450265== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KcHR4ZGlzdCBt YWlsaW5nIGxpc3QKcHR4ZGlzdEBwZW5ndXRyb25peC5kZQ== --===============1531450265==--