Skip to contentSkip to conversation

pkg-infra/show-info: dump install_{staging, target} info

PATCH Superseded Vadim Kochan 2 participants 3 messages Jul 23, 2019 – Jul 28, 2019

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 pkg-infra/show-info: dump install_{staging, target} info

provide info if the package will be installed to staging/target destinations. Might be useful for analyzing the packages which installed only for target/staging.

---

v2:
1) use oneliner 'if' to dump install_{staging,target} properties

 package/pkg-utils.mk | 2 ++
 1 file changed, 2 insertions(+)
package/pkg-utils.mk +2 -0
index b7280e930f..1dcf2805cb 100644
@@ -94,6 +94,8 @@ endef
 define _json-info-pkg-details
 	"version": "$($(1)_DL_VERSION)",
 	"licenses": "$($(1)_LICENSE)",
+	"install-target": $(if $($(1)_INSTALL_TARGET),true,false),
+	"install-staging": $(if $($(1)_INSTALL_STAGING),true,false),
 	"downloads": [
 	$(foreach dl,$(sort $($(1)_ALL_DOWNLOADS)),
 		{
Signature · 1 line
2.17.1
#1 lore raw

PATCH v2 1/1 pkg-infra/show-info: dump install_{staging, target} info

Quoted 19 lines · Vadim Kochan

provide info if the package will be installed to staging/target destinations. Might be useful for analyzing the packages which installed only for target/staging.

---

v2:
1) use oneliner 'if' to dump install_{staging,target} properties

 package/pkg-utils.mk | 2 ++
 1 file changed, 2 insertions(+)
package/pkg-utils.mk +0 -0
index b7280e930f..1dcf2805cb 100644

package/pkg-utils.mk endef · line 97

Quoted 4 lines
package/pkg-utils.mk +1 -0
@@ -94,6 +94,8 @@ endef
 define _json-info-pkg-details
        "version": "$($(1)_DL_VERSION)",
        "licenses": "$($(1)_LICENSE)",
+       "install-target": $(if $($(1)_INSTALL_TARGET),true,false),

This tests if if $($(1)_INSTALL_TARGET is not empty, e.g.

$ fgrep '_INSTALL_TARGET =' package/*/*.mk
package/azmq/azmq.mk:AZMQ_INSTALL_TARGET = NO
[...]
$ make azmq-show-info
{ "azmq": { "type": "target", "virtual": false, "version": "1.0.2",
"licenses": "BSL-1.0", "install-target": true, "install-staging":
true, "downloads": [ { "source": "azmq-1.0.2.tar.gz", "uris": [
"https+https}

package/pkg-utils.mk endef · line 98

Quoted 1 line
package/pkg-utils.mk +1 -0
+       "install-staging": $(if $($(1)_INSTALL_STAGING),true,false),
$ make bash-show-info
{ "bash": { "type": "target", "virtual": false, "version": "4.4.18",
"licenses": "GPL-3.0+", "install-target": true, "install-staging":
true, "downloads": [ { "source": "bash-4.4.18.tar.gz", "uris": [
"http+htt}
Signature · 1 line
Carlos Santos <[email protected]>
#2 lore raw

PATCH v2 1/1 pkg-infra/show-info: dump install_{staging, target} info

Hi Carlos,

Quoted 40 lines · Carlos Santos
Quoted 19 lines · Vadim Kochan

provide info if the package will be installed to staging/target destinations. Might be useful for analyzing the packages which installed only for target/staging.

---

v2:
1) use oneliner 'if' to dump install_{staging,target} properties

 package/pkg-utils.mk | 2 ++
 1 file changed, 2 insertions(+)
package/pkg-utils.mk +0 -0
index b7280e930f..1dcf2805cb 100644

package/pkg-utils.mk endef · line 97

Quoted 4 lines
package/pkg-utils.mk +1 -0
@@ -94,6 +94,8 @@ endef
 define _json-info-pkg-details
        "version": "$($(1)_DL_VERSION)",
        "licenses": "$($(1)_LICENSE)",
+       "install-target": $(if $($(1)_INSTALL_TARGET),true,false),

This tests if if $($(1)_INSTALL_TARGET is not empty, e.g.

$ fgrep '_INSTALL_TARGET =' package/*/*.mk
package/azmq/azmq.mk:AZMQ_INSTALL_TARGET = NO
[...]
$ make azmq-show-info
{ "azmq": { "type": "target", "virtual": false, "version": "1.0.2",
"licenses": "BSL-1.0", "install-target": true, "install-staging":
true, "downloads": [ { "source": "azmq-1.0.2.tar.gz", "uris": [
"https+https}

package/pkg-utils.mk endef · line 98

Quoted 1 line
package/pkg-utils.mk +1 -0
+       "install-staging": $(if $($(1)_INSTALL_STAGING),true,false),
Quoted 8 lines
$ make bash-show-info
{ "bash": { "type": "target", "virtual": false, "version": "4.4.18",
"licenses": "GPL-3.0+", "install-target": true, "install-staging":
true, "downloads": [ { "source": "bash-4.4.18.tar.gz", "uris": [
"http+htt}

--
Carlos Santos <[email protected]>

Thanks a lot for this, and sorry for waste your time :( Somehow I messed YES with true :(

Regards,
Vadim Kochan