Skip to contentSkip to conversation

glide: Add 0.13.1 version

PATCH In review Otavio Salvador 3 participants 3 messages Feb 1, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 glide: Add 0.13.1 version

Glide is a widely used Vendor Package Management for Golang, especially in private projects as it allows for internal repositories clone and other fancy things.

This recipe has been originally done as part of updatehub development.

---

Changes in v2:
- Add bash runtime dependency on ${PN}-ptest

 meta/recipes-devtools/glide/glide_0.13.1.bb | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 meta/recipes-devtools/glide/glide_0.13.1.bb
meta/recipes-devtools/glide/glide_0.13.1.bb new file +15 -0
new file mode 100644
index 00000000000..1a5b145cf36
@@ -0,0 +1,15 @@
+SUMMARY = "Vendor Package Management for Golang"
+HOMEPAGE = "https://glide.sh"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=54905cf894f8cc416a92f4fc350c35b2"
+
+GO_IMPORT = "github.com/Masterminds/glide"
+SRC_URI = "git://${GO_IMPORT}"
+SRCREV = "67790b3dbede72cfdc54aa53be4706322c9499e0"
+
+inherit go
+
+RDEPENDS_${PN}-dev += "bash"
+RDEPENDS_${PN}-ptest += "bash"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.16.1
#1 lore raw

Duplicate package names, was Re: [PATCH v1] glide: Add 0.13.1 version

Of course, this package should not be confused with the old 3D library from Voodoo Graphics.

But, this and another case that popped up today for me out of the blue makes it necessary to talk about the issue duplicate package names from completely different software.

My case is a Node.js module, one that is called nanomsg that depends on the real nanomsg library.

You can see where this leads, two different software would be using the same recipe name and we cannot add the second one, because the name conflict would not cause the one with the smaller version not built.

The node modules that are built with the help of "inherit npm" may want to use a "node-" prefix in their names but it would not work as is because npm.bbclass is using ${PN}.

I have a patch against npm.bbclass that I am testing at the moment but it may be necessary to talk about this issue in general.

Best regards,
Zoltán Böszörményi

2018-02-01 11:28 keltezéssel, Otavio Salvador írta:

Quoted 38 lines

Glide is a widely used Vendor Package Management for Golang, especially in private projects as it allows for internal repositories clone and other fancy things.

This recipe has been originally done as part of updatehub development.

---

Changes in v2:
- Add bash runtime dependency on ${PN}-ptest

  meta/recipes-devtools/glide/glide_0.13.1.bb | 15 +++++++++++++++
  1 file changed, 15 insertions(+)

create mode 100644 meta/recipes-devtools/glide/glide_0.13.1.bb

meta/recipes-devtools/glide/glide_0.13.1.bb new file +15 -0
new file mode 100644
index 00000000000..1a5b145cf36
@@ -0,0 +1,15 @@
+SUMMARY = "Vendor Package Management for Golang"
+HOMEPAGE = "https://glide.sh"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=54905cf894f8cc416a92f4fc350c35b2"
+
+GO_IMPORT = "github.com/Masterminds/glide"
+SRC_URI = "git://${GO_IMPORT}"
+SRCREV = "67790b3dbede72cfdc54aa53be4706322c9499e0"
+
+inherit go
+
+RDEPENDS_${PN}-dev += "bash"
+RDEPENDS_${PN}-ptest += "bash"
+
+BBCLASSEXTEND = "native nativesdk"
#2 lore raw

Re: Duplicate package names, was Re: [PATCH v1] glide: Add 0.13.1 version

Quoted 3 lines · Böszörményi Zoltán

Of course, this package should not be confused with the old 3D library from Voodoo Graphics.

I'm pretty sure that this conflict is unlikely to cause problems in the real world. :)

Quoted 7 lines

The node modules that are built with the help of "inherit npm" may want to use a "node-" prefix in their names but it would not work as is because npm.bbclass is using ${PN}.

I have a patch against npm.bbclass that I am testing at the moment but it may be necessary to talk about this issue in general.

Yes, that's definitely the best solution. For reference, pypi.bbclass does this:

def pypi_package(d):

    bpn = d.getVar('BPN')
    if bpn.startswith('python-'):
        return bpn[7:]
    elif bpn.startswith('python3-'):
        return bpn[8:]
    return bpn

PYPI_PACKAGE ?= "${@pypi_package(d)}"

Ross