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