Re: [ptxdist] opkg in ptxdist 2011.06.0 fails
Alexander Dahl wrote: On Tue, 14 Jun 2011 15:54:19 +0200, Juergen Beisert wrote: Known bug (hit me a few days before). Just enable also opkg for your target. This issue will be fixed in the next PTXdist release. How? It is a dependency issue. The host-opkg package depends on the target-opkg package. And if the target-opkg package is disabled the host-opkg will fail. You can solve it in your project with enabling the target-opkg. Or add patch 09d288e224d904d804b8cea7120b1f1ff083b5b4 from the ptxdist repository (here for reference): commit 09d288e224d904d804b8cea7120b1f1ff083b5b4 Author: Michael Olbrich m.olbr...@pengutronix.de Date: Fri Jun 10 13:55:26 2011 +0200 ptxd_lib_dgen: generate source rule for all packages this is necessary in case the only the host package is selected Signed-off-by: Michael Olbrich m.olbr...@pengutronix.de diff --git a/scripts/lib/ptxd_lib_dgen.awk b/scripts/lib/ptxd_lib_dgen.awk index e9e6f79..1c0093b 100644 --- a/scripts/lib/ptxd_lib_dgen.awk +++ b/scripts/lib/ptxd_lib_dgen.awk @@ -286,6 +286,11 @@ function import_PKG(this_PKG, this_pkg) { print this_PKG _DEVPKG = cross- this_devpkg DGEN_DEPS_PRE; } } + if ((this_PKG in PKG_source_url) !(this_PKG in PKG_source_rule)) { + print $( this_PKG _SOURCE): DGEN_DEPS_POST; + print @$(call targetinfo) DGEN_DEPS_POST; + print @$(call get, this_PKG ) DGEN_DEPS_POST; + } } END { @@ -315,11 +320,6 @@ END { print $(STATEDIR)/ this_pkg .targetinstall: $(STATEDIR)/ this_pkg .install.postDGEN_DEPS_POST; print $(STATEDIR)/ this_pkg .targetinstall.post: $(STATEDIR)/ this_pkg .targetinstall DGEN_DEPS_POST; } - if ((this_PKG in PKG_source_url) !(this_PKG in PKG_source_rule)) { - print $( this_PKG _SOURCE): DGEN_DEPS_POST; - print @$(call targetinfo) DGEN_DEPS_POST; - print @$(call get, this_PKG ) DGEN_DEPS_POST; - } # # conditional dependencies jbe -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | Phone: +49-5121-206917-5128 | Vertretung Sued/Muenchen, Germany | Fax: +49-5121-206917- | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de/ | -- ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] opkg in ptxdist 2011.06.0 fails
Hello, On Wed, 15 Jun 2011 10:25:19 +0200, Juergen Beisert wrote: It is a dependency issue. The host-opkg package depends on the target-opkg package. And if the target-opkg package is disabled the host-opkg will fail. You can solve it in your project with enabling the target-opkg. Okay. I did this and it works well now. Thank you. :-) Alex -- »With the first link, the chain is forged. The first speech censured, the first thought forbidden, the first freedom denied, chains us all irrevocably.« (Jean-Luc Picard, quoting Judge Aaron Satie) *** GnuPG-FP: 02C8 A590 7FE5 CA5F 3601 D1D5 8FBA 7744 CC87 10D0 *** -- ptxdist mailing list ptxdist@pengutronix.de
[ptxdist] opkg in ptxdist 2011.06.0 fails
Hello there, I tried migrating from ptxdist 2011.05.0 to 2011.06.0 today and got ask if I wanted to use ipkg or opkg for package management. When answering with opkg and building the project I get the following error: make: *** No rule to make target `/home/adahl/Work/src/isNetCube.rootfs/src/opkg-0.1.8.tar.gz', needed by `/home/adahl/Work/src/isNetCube.rootfs/platform-at91sam9g20ncl/state/host-opkg.get'. Stop. The changes in the config file are as follows: +# PTXCONF_HOST_PACKAGE_MANAGEMENT_IPKG is not set +PTXCONF_HOST_PACKAGE_MANAGEMENT_OPKG=y +PTXCONF_HOST_PACKAGE_MANAGEMENT=opkg -PTXCONF_HOST_IPKG_UTILS=y -PTXCONF_HOST_IPKG=y +# PTXCONF_HOST_IPKG_UTILS is not set +# PTXCONF_HOST_IPKG is not set +PTXCONF_HOST_OPKG_UTILS=y +PTXCONF_HOST_OPKG=y There's no file opkg-0.1.8.tar.gz in the source folder mentioned above. When switching back to ipkg everything works fine so far. Greets Alex -- »With the first link, the chain is forged. The first speech censured, the first thought forbidden, the first freedom denied, chains us all irrevocably.« (Jean-Luc Picard, quoting Judge Aaron Satie) *** GnuPG-FP: 02C8 A590 7FE5 CA5F 3601 D1D5 8FBA 7744 CC87 10D0 *** -- ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] opkg in ptxdist 2011.06.0 fails
Alexander Dahl wrote: Hello there, I tried migrating from ptxdist 2011.05.0 to 2011.06.0 today and got ask if I wanted to use ipkg or opkg for package management. When answering with opkg and building the project I get the following error: make: *** No rule to make target `/home/adahl/Work/src/isNetCube.rootfs/src/opkg-0.1.8.tar.gz', needed by `/home/adahl/Work/src/isNetCube.rootfs/platform-at91sam9g20ncl/state/host-o pkg.get'. Stop. The changes in the config file are as follows: +# PTXCONF_HOST_PACKAGE_MANAGEMENT_IPKG is not set +PTXCONF_HOST_PACKAGE_MANAGEMENT_OPKG=y +PTXCONF_HOST_PACKAGE_MANAGEMENT=opkg -PTXCONF_HOST_IPKG_UTILS=y -PTXCONF_HOST_IPKG=y +# PTXCONF_HOST_IPKG_UTILS is not set +# PTXCONF_HOST_IPKG is not set +PTXCONF_HOST_OPKG_UTILS=y +PTXCONF_HOST_OPKG=y There's no file opkg-0.1.8.tar.gz in the source folder mentioned above. When switching back to ipkg everything works fine so far. Known bug (hit me a few days before). Just enable also opkg for your target. This issue will be fixed in the next PTXdist release. jbe -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | Phone: +49-5121-206917-5128 | Vertretung Sued/Muenchen, Germany | Fax: +49-5121-206917- | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de/ | -- ptxdist mailing list ptxdist@pengutronix.de