ez-ipupdate: Update to 3.0.11b8
PATCH 1/3 ez-ipupdate: Update to 3.0.11b8
Drop upstreamed patches
Add a patch to fix C23 build break
---
...te_3.0.11b7.bb => ez-ipupdate_3.0.11b8.bb} | 16 +++---
...ure-Check-for-string.h-system-header.patch | 53 +++++++++++++++++++
.../ez-ipupdate/files/CVE-2003-0887.patch | 20 -------
.../ez-ipupdate/files/cache_file.c.patch | 34 ------------
.../ez-ipupdate/files/conf_file.c.patch | 20 -------
5 files changed, 60 insertions(+), 83 deletions(-)
rename meta-networking/recipes-connectivity/ez-ipupdate/{ez-ipupdate_3.0.11b7.bb => ez-ipupdate_3.0.11b8.bb} (50%)
create mode 100644 meta-networking/recipes-connectivity/ez-ipupdate/files/0001-configure-Check-for-string.h-system-header.patch
delete mode 100644 meta-networking/recipes-connectivity/ez-ipupdate/files/cache_file.c.patch
delete mode 100644 meta-networking/recipes-connectivity/ez-ipupdate/files/conf_file.c.patchmeta-networking/recipes-connectivity/ez-ipupdate/ez-ipupdate_3.0.11b8.bb renamed from meta-networking/recipes-connectivity/ez-ipupdate/ez-ipupdate_3.0.11b7.bb +7 -9
@@ -4,21 +4,19 @@ HOMEPAGE = "http://sourceforge.net/projects/ez-ipupdate/" LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://COPYING;md5=7783169b4be06b54e86730eb01bc3a31" -SRC_URI = "http://sourceforge.net/projects/ez-ipupdate/files/${BPN}/${PV}/${BPN}-${PV}.tar.gz \ +SRC_URI = "${DEBIAN_MIRROR}/main/e/${BPN}/${BPN}_${PV}.orig.tar.gz \ file://Makefile.am.patch \ - file://cache_file.c.patch \ - file://conf_file.c.patch \ file://wformat.patch \ file://0001-ez-ipupdate-Include-time.h-for-time-API-prototype.patch \ file://CVE-2003-0887.patch \ + file://0001-configure-Check-for-string.h-system-header.patch \ " -SRC_URI[md5sum] = "525be4550b4461fdf105aed8e753b020" -SRC_URI[sha256sum] = "a15ec0dc0b78ec7578360987c68e43a67bc8d3591cbf528a323588830ae22c20" +SRC_URI[sha256sum] = "bf5b8d11ffe055c5891d0ab64bbfa86e99cbda645d40f346146b939fec8d962d" inherit autotools pkgconfig -do_install:append(){ - install -m 0744 -d ${D}${localstatedir}/lib/ez-ipupdate -} +#do_install:append(){ +# install -m 0744 -d ${D}${localstatedir}/lib/ez-ipupdate +#} -FILES:${PN} += "${localstatedir}/lib/ez-ipupdate" +#FILES:${PN} += "${localstatedir}/lib/ez-ipupdate"
meta-networking/recipes-connectivity/ez-ipupdate/files/0001-configure-Check-for-string.h-system-header.patch new file +53 -0
53 lines not on this page · raw message
meta-networking/recipes-connectivity/ez-ipupdate/files/CVE-2003-0887.patch +0 -20
@@ -26,8 +26,6 @@ Signed-off-by: Gyorgy Sarvari <[email protected]> example-tzo.conf | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) -diff --git a/example-dhs.conf b/example-dhs.conf -index 3fe9a04..f976ae5 100755 --- a/example-dhs.conf +++ b/example-dhs.conf @@ -11,7 +11,7 @@ host=mydomain.whatever.com
@@ -39,8 +37,6 @@ index 3fe9a04..f976ae5 100755 # uncomment this once you have everything working how you want and you are # ready to have ez-ipupdate running in the background all the time. to stop it -diff --git a/example-dyndns.conf b/example-dyndns.conf -index f539dec..84b4807 100755 --- a/example-dyndns.conf +++ b/example-dyndns.conf @@ -19,7 +19,7 @@ max-interval=2073600
@@ -52,8 +48,6 @@ index f539dec..84b4807 100755 # uncomment this once you have everything working how you want and you are # ready to have ez-ipupdate running in the background all the time. to stop it -diff --git a/example-dyns.conf b/example-dyns.conf -index 868768d..856a4d7 100644 --- a/example-dyns.conf +++ b/example-dyns.conf @@ -11,7 +11,7 @@ host=myhost
@@ -65,8 +59,6 @@ index 868768d..856a4d7 100644 # uncomment this once you have everything working how you want and you are # ready to have ez-ipupdate running in the background all the time. to stop it -diff --git a/example-easydns.conf b/example-easydns.conf -index 0ff20da..15d9b78 100755 --- a/example-easydns.conf +++ b/example-easydns.conf @@ -11,7 +11,7 @@ host=mydomain.whatever.com
@@ -78,8 +70,6 @@ index 0ff20da..15d9b78 100755 # uncomment this once you have everything working how you want and you are # ready to have ez-ipupdate running in the background all the time. to stop it -diff --git a/example-gnudip.conf b/example-gnudip.conf -index 3b2fb63..d09df1f 100755 --- a/example-gnudip.conf +++ b/example-gnudip.conf @@ -15,7 +15,7 @@ max-interval=2073600
@@ -91,8 +81,6 @@ index 3b2fb63..d09df1f 100755 # uncomment this once you have everything working how you want and you are # ready to have ez-ipupdate running in the background all the time. to stop it -diff --git a/example-heipv6tb.conf b/example-heipv6tb.conf -index e31aa9c..3ebc822 100644 --- a/example-heipv6tb.conf +++ b/example-heipv6tb.conf @@ -18,7 +18,7 @@ max-interval=2073600
@@ -104,8 +92,6 @@ index e31aa9c..3ebc822 100644 # uncomment this once you have everything working how you want and you are # ready to have ez-ipupdate running in the background all the time. to stop it -diff --git a/example-justlinux.conf b/example-justlinux.conf -index 0afeb2c..28b3327 100755 --- a/example-justlinux.conf +++ b/example-justlinux.conf @@ -11,7 +11,7 @@ host=mydomain.penguinpowered.com
@@ -117,8 +103,6 @@ index 0afeb2c..28b3327 100755 # uncomment this once you have everything working how you want and you are # ready to have ez-ipupdate running in the background all the time. to stop it -diff --git a/example-ods.conf b/example-ods.conf -index d0ff889..7b16f2c 100755 --- a/example-ods.conf +++ b/example-ods.conf @@ -11,7 +11,7 @@ host=mydomain.ods.org
@@ -130,8 +114,6 @@ index d0ff889..7b16f2c 100755 # uncomment this once you have everything working how you want and you are # ready to have ez-ipupdate running in the background all the time. to stop it -diff --git a/example-pgpow.conf b/example-pgpow.conf -index 29a92d6..81e351b 100755 --- a/example-pgpow.conf +++ b/example-pgpow.conf @@ -11,7 +11,7 @@ host=mydomain.penguinpowered.com
@@ -143,8 +125,6 @@ index 29a92d6..81e351b 100755 # uncomment this once you have everything working how you want and you are # ready to have ez-ipupdate running in the background all the time. to stop it -diff --git a/example-tzo.conf b/example-tzo.conf -index 2a71db3..10b8dc4 100755 --- a/example-tzo.conf +++ b/example-tzo.conf @@ -15,7 +15,7 @@ max-interval=2073600
meta-networking/recipes-connectivity/ez-ipupdate/files/cache_file.c.patch deleted +0 -34
@@ -1,34 +0,0 @@ -Upstream-Status: Pending - -Dont assume errno type - ---- ez-ipupdate-3.0.11b7/cache_file.c.orig 2014-07-02 14:01:07.126029412 -0600 -+++ ez-ipupdate-3.0.11b7/cache_file.c 2014-07-02 14:08:27.422026332 -0600 -@@ -43,11 +43,11 @@ - #include <cache_file.h> - - #if HAVE_STRERROR --extern int errno; -+# include <errno.h> - # define error_string strerror(errno) - #elif HAVE_SYS_ERRLIST - extern const char *const sys_errlist[]; --extern int errno; -+# include <errno.h> - # define error_string (sys_errlist[errno]) - #else - # define error_string "error message not found" -@@ -63,11 +63,11 @@ - # define dprintf(x) - #endif - #if HAVE_STRERROR --extern int errno; -+# include <errno.h> - # define error_string strerror(errno) - #elif HAVE_SYS_ERRLIST - extern const char *const sys_errlist[]; --extern int errno; -+# include <errno.h> - # define error_string (sys_errlist[errno]) - #else - # define error_string "error message not found"
meta-networking/recipes-connectivity/ez-ipupdate/files/conf_file.c.patch deleted +0 -20
@@ -1,20 +0,0 @@ -Upstream-Status: Pending - -Dont assume errno type - ---- ez-ipupdate-3.0.11b7/conf_file.c.orig 2014-07-02 14:01:19.174029328 -0600 -+++ ez-ipupdate-3.0.11b7/conf_file.c 2014-07-02 14:08:42.982026223 -0600 -@@ -38,11 +38,11 @@ - #include <conf_file.h> - - #if HAVE_STRERROR --extern int errno; -+# include <errno.h> - # define error_string strerror(errno) - #elif HAVE_SYS_ERRLIST - extern const char *const sys_errlist[]; --extern int errno; -+# include <errno.h> - # define error_string (sys_errlist[errno]) - #else - # define error_string "error message not found"
PATCH 2/3 thunar-shares-plugin: Depend on X11 distro feature
it depends on thunar-> thunar-panel, which currently depends on libwnck3 which only works on x11, thunar technically can replace it with libxfce4windowing but its not done yet.
fixes
WARNING: Nothing PROVIDES 'thunar' (but /home/ubuntu/yoe/sources/meta-openembedded/meta-xfce/recipes-thunar-plugins/shares/thunar-shares-plugin_0.5.0.bb DEPENDS on or otherwise requires it) thunar was skipped: using DISTRO 'yoe', which is missing required DISTRO_FEATURES: 'x11'
WARNING: Nothing RPROVIDES 'thunar-shares-plugin-dev' (but /home/ubuntu/yoe/sources/meta-openembedded/meta-xfce/recipes-thunar-plugins/shares/thunar-shares-plugin_0.5.0.bb RDEPENDS on or otherwise requires it) No eligible RPROVIDERs exist for 'thunar-shares-plugin-dev'
--- .../shares/thunar-shares-plugin_0.5.0.bb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
meta-xfce/recipes-thunar-plugins/shares/thunar-shares-plugin_0.5.0.bb +1 -2
@@ -5,8 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" inherit thunar-plugin features_check -ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}" -REQUIRED_DISTRO_FEATURES = "pam" +REQUIRED_DISTRO_FEATURES = "pam x11" SRC_URI[sha256sum] = "34d4d69d413e63837c5083506b4dbf65f1fd2efe17667b1d7ad0699e1e2eb07d"
PATCH 3/3 libgphoto2: Fix c23 build errors
In reply to Khem RajFixes errors e.g.
error: assigning to 'char *' from 'const char *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
131 | dot = strrchr(filename, '.');
| ^ ~~~~~~~~~~~~~~~~~~~~~~1 error generated.
They are latent and brought to fore with autoconf 2.73 which switches defaults to use -std=gnu23
--- ...fix-const-correctness-for-c23-builds.patch | 84 +++++++++++++++++++ .../gphoto2/libgphoto2_2.5.33.bb | 1 + 2 files changed, 85 insertions(+) create mode 100644 meta-oe/recipes-graphics/gphoto2/libgphoto2/0001-libgphoto2-fix-const-correctness-for-c23-builds.patch
meta-oe/recipes-graphics/gphoto2/libgphoto2/0001-libgphoto2-fix-const-correctness-for-c23-builds.patch new file +84 -0
@@ -0,0 +1,84 @@ +From bfa786a260bfd4660e8186ebad8778718e85e8cd Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Sat, 4 Apr 2026 14:56:01 -0700 +Subject: [PATCH] libgphoto2: fix const-correctness for c23 builds + +C23 treats the return values of strrchr() and strchr() as const char * +when the input string is const-qualified. Update local variables to use +const char * where appropriate to avoid discarded-qualifier warnings and +build failures with -std=gnu23. + +No functional change intended. + +Upstream-Status: Submitted [https://github.com/gphoto/libgphoto2/pull/1235] +Signed-off-by: Khem Raj <[email protected]> +--- + camlibs/directory/directory.c | 2 +- + libgphoto2/gphoto2-file.c | 6 +++--- + libgphoto2/gphoto2-filesys.c | 2 +- + packaging/generic/print-camera-list.c | 2 +- + 4 files changed, 6 insertions(+), 6 deletions(-) + +diff --git a/camlibs/directory/directory.c b/camlibs/directory/directory.c +index 790405d54..cc63c6684 100644 +--- a/camlibs/directory/directory.c ++++ b/camlibs/directory/directory.c +@@ -125,7 +125,7 @@ static const char * + get_mime_type (const char *filename) + { + +- char *dot; ++ const char *dot; + int x=0; + + dot = strrchr(filename, '.'); +diff --git a/libgphoto2/gphoto2-file.c b/libgphoto2/gphoto2-file.c +index 04d4d5e3e..1a9dbc193 100644 +--- a/libgphoto2/gphoto2-file.c ++++ b/libgphoto2/gphoto2-file.c +@@ -610,7 +610,7 @@ int + gp_file_open (CameraFile *file, const char *filename) + { + FILE *fp; +- char *name, *dot; ++ const char *name, *dot; + long size, size_read; + int i; + struct stat s; +@@ -906,8 +906,8 @@ gp_file_get_name (CameraFile *file, const char **name) + int + gp_file_get_name_by_type (CameraFile *file, const char *basename, CameraFileType type, char **newname) + { +- char *prefix = NULL, *s, *new, *slash = NULL; +- const char *suffix = NULL; ++ char *prefix = NULL, *new; ++ const char *suffix = NULL, *s, *slash = NULL; + int i; + + C_PARAMS (file && basename && newname); +diff --git a/libgphoto2/gphoto2-filesys.c b/libgphoto2/gphoto2-filesys.c +index 45f957292..07decff24 100644 +--- a/libgphoto2/gphoto2-filesys.c ++++ b/libgphoto2/gphoto2-filesys.c +@@ -521,7 +521,7 @@ append_to_folder (CameraFilesystemFolder *folder, + CameraFilesystemFolder **newfolder + ) { + CameraFilesystemFolder *f; +- char *s; ++ const char *s; + + GP_LOG_D ("Append to folder %p/%s - %s", folder, folder->name, foldername); + /* Handle multiple slashes, and slashes at the end */ +diff --git a/packaging/generic/print-camera-list.c b/packaging/generic/print-camera-list.c +index 1707b4e87..44530b4ae 100644 +--- a/packaging/generic/print-camera-list.c ++++ b/packaging/generic/print-camera-list.c +@@ -1138,7 +1138,7 @@ escape_html(const char *str) { + newstr = malloc(strlen(str)+1+inc); + s = str; ns = newstr; + do { +- char *x; ++ const char *x; + x = strchr(s,'&'); + if (x) { + memcpy (ns, s, x-s);
meta-oe/recipes-graphics/gphoto2/libgphoto2_2.5.33.bb +1 -0
@@ -12,6 +12,7 @@ DEPENDS = "libtool jpeg virtual/libusb0 libexif zlib libxml2" SRC_URI = "${SOURCEFORGE_MIRROR}/gphoto/${BP}.tar.xz;name=libgphoto2 \ file://40-libgphoto2.rules \ file://0001-configure-Filter-out-buildpaths-from-CC.patch \ + file://0001-libgphoto2-fix-const-correctness-for-c23-builds.patch \ " SRC_URI[libgphoto2.sha256sum] = "28825f767a85544cb58f6e15028f8e53a5bb37a62148b3f1708b524781c3bef2"