Skip to contentSkip to conversation

wireshark_2.6.1.bb: Fix the configure error on git describe

PATCH In review Manjukumar Matha 3 participants 4 messages Aug 9, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wireshark_2.6.1.bb: Fix the configure error on git describe

This patch fixes the following error during do_configure task

| fatal: No names found, cannot describe anything.
| CMake Error at CMakeLists.txt:3086 (string):
|   string begin index: 1 is out of range 0 - 0
|

Using --always is a fallback for fetching uniquely abbreviated commit object

---
 .../fix-fatal-no-names-found-git-error.patch       | 23 ++++++++++++++++++++++
 .../recipes-support/wireshark/wireshark_2.6.1.bb   |  1 +
 2 files changed, 24 insertions(+)
 create mode 100644 meta-networking/recipes-support/wireshark/wireshark/fix-fatal-no-names-found-git-error.patch
meta-networking/recipes-support/wireshark/wireshark/fix-fatal-no-names-found-git-error.patch new file +23 -0
new file mode 100644
index 0000000..80119e3
@@ -0,0 +1,23 @@
+fixes
+
+| fatal: No names found, cannot describe anything.
+| CMake Error at CMakeLists.txt:3086 (string):
+|   string begin index: 1 is out of range 0 - 0
+
+Use always to circumvent the issue if git tag is not present
+
+Upstream-status: Pending
+
+Signed-off-by: Manjukumar Matha <[email protected]>
+---
+--- wireshark-2.6.1/CMakeLists.txt	2018-08-08 18:18:05.388318652 -0700
++++ wireshark-2.6.1/CMakeLists-fix.txt	2018-08-08 18:22:27.829670496 -0700
+@@ -3078,7 +3078,7 @@
+ 	endif()
+ 
+ 	execute_process(
+-		COMMAND git describe --abbrev=8 --match v[1-9]*
++		COMMAND git describe --always --abbrev=8 --match v[1-9]*
+ 		OUTPUT_VARIABLE _git_description
+ 		OUTPUT_STRIP_TRAILING_WHITESPACE
+ 		WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
meta-networking/recipes-support/wireshark/wireshark_2.6.1.bb +1 -0
index 91c5e96..b001bcb 100644
@@ -10,6 +10,7 @@ DEPENDS_append_class-target = " wireshark-native chrpath-replacement-native "
 
 SRC_URI = "https://1.as.dl.wireshark.org/src/${BP}.tar.xz \
            file://0001-Add-libm-to-link-for-fmod-API.patch \
+           file://fix-fatal-no-names-found-git-error.patch \
           "
 
 UPSTREAM_CHECK_URI = "https://1.as.dl.wireshark.org/src"
Signature · 1 line
2.7.4
#1 lore raw

Manjukumar,

Quoted 9 lines · Manjukumar Matha

This patch fixes the following error during do_configure task

| fatal: No names found, cannot describe anything.
| CMake Error at CMakeLists.txt:3086 (string):
|   string begin index: 1 is out of range 0 - 0
|

Using --always is a fallback for fetching uniquely abbreviated commit object

There is an upgrade to 2.6.2 sitting in master-next. Have you checked that version?

- Armin

Quoted 49 lines
---
 .../fix-fatal-no-names-found-git-error.patch       | 23 ++++++++++++++++++++++
 .../recipes-support/wireshark/wireshark_2.6.1.bb   |  1 +
 2 files changed, 24 insertions(+)
 create mode 100644 meta-networking/recipes-support/wireshark/wireshark/fix-fatal-no-names-found-git-error.patch
meta-networking/recipes-support/wireshark/wireshark/fix-fatal-no-names-found-git-error.patch new file +23 -0
new file mode 100644
index 0000000..80119e3
@@ -0,0 +1,23 @@
+fixes
+
+| fatal: No names found, cannot describe anything.
+| CMake Error at CMakeLists.txt:3086 (string):
+|   string begin index: 1 is out of range 0 - 0
+
+Use always to circumvent the issue if git tag is not present
+
+Upstream-status: Pending
+
+Signed-off-by: Manjukumar Matha <[email protected]>
+---
+--- wireshark-2.6.1/CMakeLists.txt	2018-08-08 18:18:05.388318652 -0700
++++ wireshark-2.6.1/CMakeLists-fix.txt	2018-08-08 18:22:27.829670496 -0700
+@@ -3078,7 +3078,7 @@
+ 	endif()
+ 
+ 	execute_process(
+-		COMMAND git describe --abbrev=8 --match v[1-9]*
++		COMMAND git describe --always --abbrev=8 --match v[1-9]*
+ 		OUTPUT_VARIABLE _git_description
+ 		OUTPUT_STRIP_TRAILING_WHITESPACE
+ 		WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
meta-networking/recipes-support/wireshark/wireshark_2.6.1.bb +1 -0
index 91c5e96..b001bcb 100644
@@ -10,6 +10,7 @@ DEPENDS_append_class-target = " wireshark-native chrpath-replacement-native "
 
 SRC_URI = "https://1.as.dl.wireshark.org/src/${BP}.tar.xz \
            file://0001-Add-libm-to-link-for-fmod-API.patch \
+           file://fix-fatal-no-names-found-git-error.patch \
           "
 
 UPSTREAM_CHECK_URI = "https://1.as.dl.wireshark.org/src"
#2 lore raw

Hi Armin,

Quoted 19 lines

-----Original Message-----
From: akuster808 [mailto:[email protected]]
Sent: Thursday, August 09, 2018 7:16 AM
To: Manjukumar Harthikote Matha <[email protected]>; openembedded- [email protected]
Subject: Re: [oe] [PATCH] wireshark_2.6.1.bb: Fix the configure error on git describe

Manjukumar,

Quoted 7 lines · Manjukumar Matha

This patch fixes the following error during do_configure task

| fatal: No names found, cannot describe anything.
| CMake Error at CMakeLists.txt:3086 (string):
|   string begin index: 1 is out of range 0 - 0
|
Quoted 6 lines
Quoted 2 lines

Using --always is a fallback for fetching uniquely abbreviated commit object

There is an upgrade to 2.6.2 sitting in master-next. Have you checked that version?

Will try it out now and keep you posted

Thanks,
Manju

<...>

#3 lore raw

Hi Armin,

Quoted 21 lines
Quoted 5 lines

-----Original Message-----
From: akuster808 [mailto:[email protected]]
Sent: Thursday, August 09, 2018 7:16 AM
To: Manjukumar Harthikote Matha <[email protected]>;

openembedded-

Quoted 15 lines

[email protected]
Subject: Re: [oe] [PATCH] wireshark_2.6.1.bb: Fix the configure error on git describe

Manjukumar,

Quoted 7 lines · Manjukumar Matha

This patch fixes the following error during do_configure task

| fatal: No names found, cannot describe anything.
| CMake Error at CMakeLists.txt:3086 (string):
|   string begin index: 1 is out of range 0 - 0
|
Quoted 9 lines
Quoted 6 lines
Quoted 2 lines

Using --always is a fallback for fetching uniquely abbreviated commit object

There is an upgrade to 2.6.2 sitting in master-next. Have you checked that version?

Will try it out now and keep you posted

Still get the same issue on 2.6.2. I will send a patch based on 2.6.2

Thanks,
Manju