<?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>15160</bug_id>
          
          <creation_ts>2023-07-13 15:22:39 +0000</creation_ts>
          <short_desc>opkg build throws deprecation warnings about several cURL options with libcurl 7.88</short_desc>
          <delta_ts>2023-07-13 15:24:40 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>opkg</product>
          <component>opkg</component>
          <version>0.6.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>ACCEPTED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>next-patch</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alex Stewart">alex.stewart</reporter>
          <assigned_to name="Alex Stewart">alex.stewart</assigned_to>
          
          
          
          <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>95922</commentid>
    <comment_count>0</comment_count>
    <who name="Alex Stewart">alex.stewart</who>
    <bug_when>2023-07-13 15:22:39 +0000</bug_when>
    <thetext>When building opkg with a libcurl version of 7.88 (or presumably back to 7.55), make will thrown deprecation warnings for several cURL options being used by `opkg_download_curl.c`.


```GNU make
  CC       opkg_download_curl.lo
opkg_download_curl.c: In function &apos;opkg_validate_cached_file&apos;:
opkg_download_curl.c:237:5: warning: &apos;CURLINFO_CONTENT_LENGTH_DOWNLOAD&apos; is deprecated: since 7.55.0. Use CURLINFO_CONTENT_LENGTH_DOWNLOAD_T [-Wdeprecated-declarations]
  237 |     curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &amp;src_size);
      |     ^~~~~~~~~~~~~~~~~
In file included from opkg_download_curl.c:23:
/usr/include/x86_64-linux-gnu/curl/curl.h:2858:3: note: declared here
 2858 |   CURLINFO_CONTENT_LENGTH_DOWNLOAD
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
opkg_download_curl.c: In function &apos;opkg_curl_init&apos;:
opkg_download_curl.c:455:9: warning: &apos;CURLOPT_PROGRESSFUNCTION&apos; is deprecated: since 7.32.0. Use CURLOPT_XFERINFOFUNCTION [-Wdeprecated-declarations]
  455 |         setopt(CURLOPT_PROGRESSFUNCTION, cb);
      |         ^~~~~~
/usr/include/x86_64-linux-gnu/curl/curl.h:1295:3: note: declared here
 1295 |   CURLOPTDEPRECATED(CURLOPT_PROGRESSFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 56,
      |   ^~~~~~~~~~~~~~~~~
```


These warnings will presumably become an error one day. We should consider replacing the old cURL options with the new options being recommended in the deprecation message.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>