Skip to contentSkip to conversation

libgpiod: bump version to v1.3

PATCH In review Bartosz Golaszewski 2 participants 6 messages Mar 25, 2019 – Mar 28, 2019 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libgpiod: bump version to v1.3

From: Bartosz Golaszewski <[email protected]>

There are several new features in this release. The one that impacts the recipe is the option to install the test executable to bindir using the new options (--enable-install-tests). This requires separate PACKAGECONFIG entries for 0.x and 1.x series.

---
 meta-oe/recipes-support/libgpiod/libgpiod_0.3.3.bb           | 2 ++
 .../libgpiod/{libgpiod_1.2.1.bb => libgpiod_1.3.bb}          | 5 +++--
 2 files changed, 5 insertions(+), 2 deletions(-)
 rename meta-oe/recipes-support/libgpiod/{libgpiod_1.2.1.bb => libgpiod_1.3.bb} (67%)
meta-oe/recipes-support/libgpiod/libgpiod_0.3.3.bb +2 -0
index 09fb65a08..96615ebf2 100644
@@ -1,4 +1,6 @@
 require libgpiod.inc
 
+PACKAGECONFIG[tests] = "--enable-tests,--disable-tests,kmod udev"
+
 SRC_URI[md5sum] = "2aa1e1a80c3c919ae142ab9a55fb59ca"
 SRC_URI[sha256sum] = "b773e557af1a497f786825462a776b7bf90168e67ee0a5bc5d2473a5674dc38c"
meta-oe/recipes-support/libgpiod/libgpiod_1.3.bb renamed from meta-oe/recipes-support/libgpiod/libgpiod_1.2.1.bb +3 -2
similarity index 67%
rename from meta-oe/recipes-support/libgpiod/libgpiod_1.2.1.bb
rename to meta-oe/recipes-support/libgpiod/libgpiod_1.3.bb
index d7fd55d79..e513a33bd 100644
@@ -2,10 +2,11 @@ require libgpiod.inc
 
 DEPENDS += "autoconf-archive-native"
 
-SRC_URI[md5sum] = "e6c222512a0d1994a069ebfd2e0a56fd"
-SRC_URI[sha256sum] = "736d8b511ad247c2acb01b592f2bbe5e757e14e1d8347b2d80683081ab4b31b8"
+SRC_URI[md5sum] = "9f7530a5d56f070ba0af78d6ba077973"
+SRC_URI[sha256sum] = "6ec837f23e8f2196e5976dec4ac81403170830075e7f33ede1394eaf67f2e962"
 
 PACKAGECONFIG[cxx] = "--enable-bindings-cxx,--disable-bindings-cxx"
+PACKAGECONFIG[tests] = "--enable-tests --enable-install-tests,--disable-tests --disable-install-tests,kmod udev"
 
 PACKAGECONFIG[python3] = "--enable-bindings-python,--disable-bindings-python,python3"
 inherit ${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3native', '', d)}
Signature · 1 line
2.20.1
#1 lore raw
Quoted 7 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

There are several new features in this release. The one that impacts the recipe is the option to install the test executable to bindir using the new options (--enable-install-tests). This requires separate PACKAGECONFIG entries for 0.x and 1.x series.

Perhaps it will be good to enable this feature automatically when ptest is enabled via distro features

Quoted 53 lines
---
 meta-oe/recipes-support/libgpiod/libgpiod_0.3.3.bb           | 2 ++
 .../libgpiod/{libgpiod_1.2.1.bb => libgpiod_1.3.bb}          | 5 +++--
 2 files changed, 5 insertions(+), 2 deletions(-)
 rename meta-oe/recipes-support/libgpiod/{libgpiod_1.2.1.bb =>

libgpiod_1.3.bb} (67%)

meta-oe/recipes-support/libgpiod/libgpiod_0.3.3.bb +2 -0
index 09fb65a08..96615ebf2 100644
@@ -1,4 +1,6 @@
 require libgpiod.inc
 
+PACKAGECONFIG[tests] = "--enable-tests,--disable-tests,kmod udev"
+
 SRC_URI[md5sum] = "2aa1e1a80c3c919ae142ab9a55fb59ca"
 SRC_URI[sha256sum] =

"b773e557af1a497f786825462a776b7bf90168e67ee0a5bc5d2473a5674dc38c"

meta-oe/recipes-support/libgpiod/libgpiod_1.3.bb renamed from meta-oe/recipes-support/libgpiod/libgpiod_1.2.1.bb +0 -2
similarity index 67%
rename from meta-oe/recipes-support/libgpiod/libgpiod_1.2.1.bb
rename to meta-oe/recipes-support/libgpiod/libgpiod_1.3.bb
index d7fd55d79..e513a33bd 100644
@@ -2,10 +2,11 @@ require libgpiod.inc
 
 DEPENDS += "autoconf-archive-native"
 
-SRC_URI[md5sum] = "e6c222512a0d1994a069ebfd2e0a56fd"
-SRC_URI[sha256sum] =

"736d8b511ad247c2acb01b592f2bbe5e757e14e1d8347b2d80683081ab4b31b8"

meta-oe/recipes-support/libgpiod/libgpiod_1.3.bb renamed from meta-oe/recipes-support/libgpiod/libgpiod_1.2.1.bb +2 -0
+SRC_URI[md5sum] = "9f7530a5d56f070ba0af78d6ba077973"
+SRC_URI[sha256sum] =

"6ec837f23e8f2196e5976dec4ac81403170830075e7f33ede1394eaf67f2e962"

PACKAGECONFIG[cxx] = "--enable-bindings-cxx,--disable-bindings-cxx"
+PACKAGECONFIG[tests] = "--enable-tests --enable-install-tests,--disable-tests --disable-install-tests,kmod udev"

PACKAGECONFIG[python3] =
"--enable-bindings-python,--disable-bindings-python,python3"
inherit ${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3native',
'', d)}
--
2.20.1

#2 lore raw

pon., 25 mar 2019 o 15:19 Khem Raj <[email protected]> napisał(a):

Quoted 15 lines · Bartosz Golaszewski
Quoted 7 lines

From: Bartosz Golaszewski <[email protected]>

There are several new features in this release. The one that impacts the recipe is the option to install the test executable to bindir using the new options (--enable-install-tests). This requires separate PACKAGECONFIG entries for 0.x and 1.x series.

Perhaps it will be good to enable this feature automatically when ptest is enabled via distro features

Quoted 1 line

Sure, how about a separate patch I'll send later this week?

Bart

Quoted 43 lines
Quoted 43 lines
---
 meta-oe/recipes-support/libgpiod/libgpiod_0.3.3.bb           | 2 ++
 .../libgpiod/{libgpiod_1.2.1.bb => libgpiod_1.3.bb}          | 5 +++--
 2 files changed, 5 insertions(+), 2 deletions(-)
 rename meta-oe/recipes-support/libgpiod/{libgpiod_1.2.1.bb => libgpiod_1.3.bb} (67%)
meta-oe/recipes-support/libgpiod/libgpiod_0.3.3.bb +2 -0
index 09fb65a08..96615ebf2 100644
@@ -1,4 +1,6 @@
 require libgpiod.inc
 
+PACKAGECONFIG[tests] = "--enable-tests,--disable-tests,kmod udev"
+
 SRC_URI[md5sum] = "2aa1e1a80c3c919ae142ab9a55fb59ca"
 SRC_URI[sha256sum] = "b773e557af1a497f786825462a776b7bf90168e67ee0a5bc5d2473a5674dc38c"
meta-oe/recipes-support/libgpiod/libgpiod_1.3.bb renamed from meta-oe/recipes-support/libgpiod/libgpiod_1.2.1.bb +3 -3
similarity index 67%
rename from meta-oe/recipes-support/libgpiod/libgpiod_1.2.1.bb
rename to meta-oe/recipes-support/libgpiod/libgpiod_1.3.bb
index d7fd55d79..e513a33bd 100644
@@ -2,10 +2,11 @@ require libgpiod.inc
 
 DEPENDS += "autoconf-archive-native"
 
-SRC_URI[md5sum] = "e6c222512a0d1994a069ebfd2e0a56fd"
-SRC_URI[sha256sum] = "736d8b511ad247c2acb01b592f2bbe5e757e14e1d8347b2d80683081ab4b31b8"
+SRC_URI[md5sum] = "9f7530a5d56f070ba0af78d6ba077973"
+SRC_URI[sha256sum] = "6ec837f23e8f2196e5976dec4ac81403170830075e7f33ede1394eaf67f2e962"
 
 PACKAGECONFIG[cxx] = "--enable-bindings-cxx,--disable-bindings-cxx"
+PACKAGECONFIG[tests] = "--enable-tests --enable-install-tests,--disable-tests --disable-install-tests,kmod udev"
 
 PACKAGECONFIG[python3] = "--enable-bindings-python,--disable-bindings-python,python3"
 inherit ${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3native', '', d)}
--

2.20.1

A message that is not in the archive (sent off-list or not yet received): CAMpxmJVeTvhf10yOOL2iVb+Hfv=z+-dU2p7tbAzqqs_QErY5ng@mail.gmail.com

#4 lore raw
Quoted 15 lines · Bartosz Golaszewski

pon., 25 mar 2019 o 15:19 Khem Raj <[email protected]> napisał(a):

Quoted 13 lines · Bartosz Golaszewski
Quoted 7 lines

From: Bartosz Golaszewski <[email protected]>

There are several new features in this release. The one that impacts the recipe is the option to install the test executable to bindir using the new options (--enable-install-tests). This requires separate PACKAGECONFIG entries for 0.x and 1.x series.

Quoted 4 lines
Quoted 2 lines

Perhaps it will be good to enable this feature automatically when ptest is enabled via distro features

Quoted 1 line

Sure, how about a separate patch I'll send later this week?

okay that works too

#5 lore raw

pon., 25 mar 2019 o 18:30 Khem Raj <[email protected]> napisał(a):

Quoted 18 lines
Quoted 15 lines · Bartosz Golaszewski

pon., 25 mar 2019 o 15:19 Khem Raj <[email protected]> napisał(a):

Quoted 13 lines · Bartosz Golaszewski
Quoted 7 lines

From: Bartosz Golaszewski <[email protected]>

There are several new features in this release. The one that impacts the recipe is the option to install the test executable to bindir using the new options (--enable-install-tests). This requires separate PACKAGECONFIG entries for 0.x and 1.x series.

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Perhaps it will be good to enable this feature automatically when ptest is enabled via distro features

Quoted 1 line

Sure, how about a separate patch I'll send later this week?

okay that works too

A question about that: the testing framework for libgpiod requires a specific kernel module to be built (the gpio-mockup testing driver). How should I go about depending on it? I couldn't find any example of that.

Bart

#6 lore raw
Quoted 25 lines · Bartosz Golaszewski

pon., 25 mar 2019 o 18:30 Khem Raj <[email protected]> napisał(a):

Quoted 9 lines
Quoted 6 lines · Bartosz Golaszewski

pon., 25 mar 2019 o 15:19 Khem Raj <[email protected]> napisał(a):

Quoted 4 lines

On Mon, Mar 25, 2019 at 7:05 AM Bartosz Golaszewski <[email protected]>

Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

From: Bartosz Golaszewski <[email protected]>

There are several new features in this release. The one that impacts the recipe is the option to install the test executable to bindir

using

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

the new options (--enable-install-tests). This requires separate PACKAGECONFIG entries for 0.x and 1.x series.

Perhaps it will be good to enable this feature automatically when

ptest is enabled via distro features

Quoted 2 lines
Quoted 2 lines
Quoted 1 line
Quoted 1 line
Quoted 9 lines
Quoted 3 lines
Quoted 1 line

Sure, how about a separate patch I'll send later this week?

okay that works too

A question about that: the testing framework for libgpiod requires a specific kernel module to be built (the gpio-mockup testing driver). How should I go about depending on it? I couldn't find any example of that.

There is no given way for tethering the kernel config logic and warn or errror about that elegantly
May be a kernel config parser in bitbake could be a nice feature

Quoted 3 lines

Bart