<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>14305</bug_id>
          
          <creation_ts>2021-03-17 01:23:59 +0000</creation_ts>
          <short_desc>Backport openocd changes</short_desc>
          <delta_ts>2021-03-18 14:47:59 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ben">koncept1</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>89634</commentid>
    <comment_count>0</comment_count>
    <who name="Ben">koncept1</who>
    <bug_when>2021-03-17 01:23:59 +0000</bug_when>
    <thetext>While porting another project to Dunfell, I found it necessary to update openocd.  The changes have already been applied to master.


See:
 * https://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg70813.html
 * http://git.openembedded.org/meta-openembedded/commit/?id=0a27b0840f57d64cab091c9a0681582832d72c2d
 * http://git.openembedded.org/meta-openembedded/commit/?id=64bc3a36e4a36f16596c2f6e83998c8dccd717a6


I believe the patch below incorporates all of the relevant changes from the above commits:
```
diff --git a/meta-oe/recipes-devtools/openocd/openocd/0001-Do-not-include-syscrtl.h-with-glibc.patch b/meta-oe/recipes-devtools/openocd/openocd/0001-Do-not-include-syscrtl.h-with-glibc.patch
deleted file mode 100644
index 618ce2689..000000000
--- a/meta-oe/recipes-devtools/openocd/openocd/0001-Do-not-include-syscrtl.h-with-glibc.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From a763610719e7d7f6cdc45569b6fbfdb91bb7c87b Mon Sep 17 00:00:00 2001
-From: Khem Raj &lt;raj.khem@gmail.com&gt;
-Date: Sat, 27 Jul 2019 14:30:08 -0700
-Subject: [PATCH] Do not include syscrtl.h with glibc
-
-glibc 2.30 has deprecated it see [1]
-Fixes
-sys/sysctl.h:21:2: error: &quot;The &lt;sys/sysctl.h&gt; header is deprecated and will be removed.&quot; [-Werror,-W#warnings]
-
-[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=744e829637162bb7d5029632aacf341c64b86990
-
-Upstream-Status: Pending
-Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
----
- src/helper/options.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/helper/options.c b/src/helper/options.c
-index 12755e010..4007e37f6 100644
---- a/src/helper/options.c
-+++ b/src/helper/options.c
-@@ -34,7 +34,7 @@
- #if IS_DARWIN
- #include &lt;libproc.h&gt;
- #endif
--#ifdef HAVE_SYS_SYSCTL_H
-+#if defined(HAVE_SYS_SYSCTL_H) &amp;&amp; !defined(__GLIBC__)
- #include &lt;sys/sysctl.h&gt;
- #endif
- #if IS_WIN32 &amp;&amp; !IS_CYGWIN
---
-2.22.0
-
diff --git a/meta-oe/recipes-devtools/openocd/openocd_git.bb b/meta-oe/recipes-devtools/openocd/openocd_git.bb
index e95f1cfa5..05e06a25d 100644
--- a/meta-oe/recipes-devtools/openocd/openocd_git.bb
+++ b/meta-oe/recipes-devtools/openocd/openocd_git.bb
@@ -9,14 +9,13 @@ SRC_URI = &quot; \
     git://repo.or.cz/r/git2cl.git;protocol=http;destsuffix=tools/git2cl;name=git2cl \
     git://repo.or.cz/r/jimtcl.git;protocol=http;destsuffix=git/jimtcl;name=jimtcl \
     git://repo.or.cz/r/libjaylink.git;protocol=http;destsuffix=git/src/jtag/drivers/libjaylink;name=libjaylink \
-    file://0001-Do-not-include-syscrtl.h-with-glibc.patch \
 &quot;

 SRCREV_FORMAT = &quot;openocd&quot;
-SRCREV_openocd = &quot;ded67990255cc1e63c77832ffd6e6bef9120873d&quot;
+SRCREV_openocd = &quot;d46f28c2ea2611f5fbbc679a5eed253d3dcd2fe3&quot;
 SRCREV_git2cl = &quot;8373c9f74993e218a08819cbcdbab3f3564bbeba&quot;
-SRCREV_jimtcl = &quot;dc4ba7770d580800634f90b67a24e077b4a26d98&quot;
-SRCREV_libjaylink = &quot;cfccbc9d6763733f1d14dff3c2dc5b75aaef136b&quot;
+SRCREV_jimtcl = &quot;0aa0fb4e3a38d38a49de9eb585d93d63a370dcf6&quot;
+SRCREV_libjaylink = &quot;9aa7a5957c07bb6e862fc1a6d3153d109c7407e4&quot;

 PV = &quot;0.10+gitr${SRCPV}&quot;
 S = &quot;${WORKDIR}/git&quot;
@@ -55,3 +54,6 @@ FILES_${PN} = &quot; \
 PACKAGECONFIG[sysfsgpio] = &quot;--enable-sysfsgpio,--disable-sysfsgpio&quot;
 PACKAGECONFIG[remote-bitbang] = &quot;--enable-remote-bitbang,--disable-remote-bitbang&quot;
 PACKAGECONFIG ??= &quot;sysfsgpio remote-bitbang&quot;
+
+# Can&apos;t be built with ccache
+CCACHE_DISABLE = &quot;1&quot;
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89645</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-03-18 14:47:59 +0000</bug_when>
    <thetext>The meta-oe developers do not track bugs here, please send an email or patch to the oe-dev email list. Let me know if you need help.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>