mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Andreas Friesen <ms.frsn@gmail.com>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] rootfs: package
Date: Tue, 4 Dec 2018 12:53:14 +0100	[thread overview]
Message-ID: <CAA0ZWqbY6SOr=Y4YfhrXHatS2ovFMTwa881ebskQtCHuDsK6Yg@mail.gmail.com> (raw)
In-Reply-To: <CAA0ZWqbt1cLumnoevq6PnR72j7TmGNAZHt24CULJSYALof19Gg@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 7969 bytes --]

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 <ms.frsn@gmail.com
>:

> 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
>
>

[-- Attachment #1.2: Type: text/html, Size: 10782 bytes --]

[-- Attachment #2: Type: text/plain, Size: 91 bytes --]

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2018-12-04 11:48 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-29  7:35 Andreas Friesen
2018-12-03 22:38 ` Andreas Friesen
2018-12-04  7:50   ` Michael Olbrich
2018-12-04  9:40     ` Andreas Friesen
2018-12-04 10:40       ` Michael Olbrich
2018-12-04 11:47         ` Andreas Friesen
2018-12-04 11:53           ` Andreas Friesen [this message]
2018-12-04 11:58             ` Michael Olbrich
2018-12-04 12:47               ` Andreas Friesen
2018-12-04 12:58                 ` Michael Olbrich
2018-12-04 13:25                   ` Andreas Friesen
2018-12-04 13:39                     ` Michael Olbrich
2018-12-05  6:32                       ` Andreas Friesen
2018-12-04  7:49 ` Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAA0ZWqbY6SOr=Y4YfhrXHatS2ovFMTwa881ebskQtCHuDsK6Yg@mail.gmail.com' \
    --to=ms.frsn@gmail.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox