package/lighttpd: bump to 1.4.77

News:
- https://www.lighttpd.net/2025/1/10/1.4.77/

Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
Thomas Devoogdt
2025-01-18 14:19:10 +01:00
committed by Julien Olivain
parent 0aadb0b5dc
commit 2c94ed37fb
5 changed files with 21 additions and 138 deletions

View File

@@ -1,4 +1,4 @@
From d9e1c9c4a95797c812dd4906ecbbc532ae459364 Mon Sep 17 00:00:00 2001
From bb0a1cc656b2df4184a0794fb67ae74c634c1ecd Mon Sep 17 00:00:00 2001
From: Maxime Ripard <maxime.ripard@free-electrons.com>
Date: Mon, 13 Dec 2021 22:07:17 +0100
Subject: [PATCH] Modify the default lighttpd configuration file to have one a
@@ -15,16 +15,18 @@ Signed-off-by: Simon Dawson <spdawson@gmail.com>
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
[Thomas: update for 1.4.69 - drop server.use-ipv6]
Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
[Thomas: update for 1.4.77 - move lighttpd.conf to lighttpd.annotated.conf]
Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
---
doc/config/conf.d/access_log.conf | 2 +-
doc/config/lighttpd.conf | 14 +++++++-------
doc/config/conf.d/access_log.conf | 2 +-
doc/config/lighttpd.annotated.conf | 14 +++++++-------
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/doc/config/conf.d/access_log.conf b/doc/config/conf.d/access_log.conf
index e685d437..92cff4f0 100644
index f8294802..9886cddf 100644
--- a/doc/config/conf.d/access_log.conf
+++ b/doc/config/conf.d/access_log.conf
@@ -9,7 +9,7 @@ server.modules += ( "mod_accesslog" )
@@ -7,7 +7,7 @@ server.modules += ( "mod_accesslog" )
##
## Default access log.
##
@@ -33,10 +35,10 @@ index e685d437..92cff4f0 100644
##
## The default format produces CLF compatible output.
diff --git a/doc/config/lighttpd.conf b/doc/config/lighttpd.conf
index d45a284d..4e926d5a 100644
--- a/doc/config/lighttpd.conf
+++ b/doc/config/lighttpd.conf
diff --git a/doc/config/lighttpd.annotated.conf b/doc/config/lighttpd.annotated.conf
index c94f703b..35263a1e 100644
--- a/doc/config/lighttpd.annotated.conf
+++ b/doc/config/lighttpd.annotated.conf
@@ -13,8 +13,8 @@
## if you add a variable here. Add the corresponding variable in the
## chroot example as well.
@@ -48,9 +50,9 @@ index d45a284d..4e926d5a 100644
var.state_dir = "/run"
var.home_dir = "/var/lib/lighttpd"
var.conf_dir = "/etc/lighttpd"
@@ -97,8 +97,8 @@ server.port = 80
@@ -97,8 +97,8 @@ include conf_dir + "/modules.conf"
## Run as a different username/groupname.
## This requires root permissions during startup.
## This requires root permissions during startup.
##
-server.username = "lighttpd"
-server.groupname = "lighttpd"
@@ -76,10 +78,10 @@ index d45a284d..4e926d5a 100644
+server.errorlog = log_root + "/lighttpd-error.log"
##
## If you want to log to syslog you have to unset the
## If you want to log to syslog you have to unset the
@@ -187,7 +187,7 @@ include conf_dir + "/conf.d/debug.conf"
## and write(). Every modern OS provides its own syscall to help network
## servers transfer files as fast as possible
## servers transfer files as fast as possible
##
-#server.network-backend = "sendfile"
+server.network-backend = "writev"
@@ -87,5 +89,5 @@ index d45a284d..4e926d5a 100644
##
## As lighttpd is a single-threaded server, its main resource limit is
--
2.39.0
2.43.0

View File

@@ -1,34 +0,0 @@
From 88ff3763dae65371eab9f8a22ac1c95c96fe4490 Mon Sep 17 00:00:00 2001
From: Glenn Strauss <gstrauss@gluelogic.com>
Date: Tue, 23 Apr 2024 00:16:29 -0400
Subject: [PATCH] Revert "[core] special value for Linux POLLRDHUP on SPARC"
(fixes #3251)
This reverts commit f14f9142f4487704e2ce0f196263c091accdb12c.
x-ref:
"[1.4.76] buildroot compile error with bootlin-sparc{64-g,-uc}libc"
https://redmine.lighttpd.net/issues/3251
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Upstream: https://redmine.lighttpd.net/projects/lighttpd/repository/14/revisions/88ff3763dae65371eab9f8a22ac1c95c96fe4490
---
src/fdevent.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/fdevent.h b/src/fdevent.h
index e9c380b0..1b0a062f 100644
--- a/src/fdevent.h
+++ b/src/fdevent.h
@@ -40,8 +40,6 @@ struct fdnode_st {
#if (defined(__sun) && defined(__SVR4)) /* Solaris */ \
|| defined(__FreeBSD__)
#define FDEVENT_RDHUP 0x4000
-#elif (defined(__linux__) && (defined(__sparc__) || defined(__sparc)))
-#define FDEVENT_RDHUP 0x0800
#else
#define FDEVENT_RDHUP 0x2000
#endif
--
2.30.2

View File

@@ -1,85 +0,0 @@
From 524614455554163ec78b27b89ff52bbf7fe96958 Mon Sep 17 00:00:00 2001
From: Glenn Strauss <gstrauss@gluelogic.com>
Date: Wed, 24 Apr 2024 03:07:37 -0400
Subject: [PATCH] [core] special value for Linux POLLRDHUP on SPARC (fixes
#3251)
x-ref:
"[1.4.76] buildroot compile error with bootlin-sparc{64-g,-uc}libc"
https://redmine.lighttpd.net/issues/3251
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Upstream: https://redmine.lighttpd.net/projects/lighttpd/repository/14/revisions/524614455554163ec78b27b89ff52bbf7fe96958
---
src/fdevent.h | 2 ++
src/fdevent_impl.c | 18 ++++++++++++++++++
2 files changed, 20 insertions(+)
diff --git a/src/fdevent.h b/src/fdevent.h
index 1b0a062f..556a1445 100644
--- a/src/fdevent.h
+++ b/src/fdevent.h
@@ -40,6 +40,8 @@ struct fdnode_st {
#if (defined(__sun) && defined(__SVR4)) /* Solaris */ \
|| defined(__FreeBSD__)
#define FDEVENT_RDHUP 0x4000
+#elif (defined(__linux__) && (defined(__sparc__) || defined(__sparc)))
+#define FDEVENT_RDHUP 0x2800 /*(0x2000 EPOLLRDHUP | 0x0800 POLLRDHUP)*/
#else
#define FDEVENT_RDHUP 0x2000
#endif
diff --git a/src/fdevent_impl.c b/src/fdevent_impl.c
index 8bfc1cc6..c84c8df5 100644
--- a/src/fdevent_impl.c
+++ b/src/fdevent_impl.c
@@ -338,6 +338,11 @@ fdevent_linux_sysepoll_event_set (fdevents *ev, fdnode *fdn, int events)
struct epoll_event ep;
#ifndef EPOLLRDHUP
events &= ~FDEVENT_RDHUP;
+ #elif (defined(__linux__) && (defined(__sparc__) || defined(__sparc)))
+ if (events & FDEVENT_RDHUP) {
+ events &= ~FDEVENT_RDHUP;
+ events |= EPOLLRDHUP;
+ }
#endif
ep.events = events | EPOLLERR | EPOLLHUP;
ep.data.ptr = fdn;
@@ -376,7 +381,11 @@ fdevent_linux_sysepoll_init (fdevents *ev)
ck_static_assert(EPOLLERR == FDEVENT_ERR);
ck_static_assert(EPOLLHUP == FDEVENT_HUP);
#ifdef EPOLLRDHUP
+ #if (defined(__linux__) && (defined(__sparc__) || defined(__sparc)))
+ ck_static_assert(EPOLLRDHUP & FDEVENT_RDHUP);
+ #else
ck_static_assert(EPOLLRDHUP == FDEVENT_RDHUP);
+ #endif
#endif
ev->type = FDEVENT_HANDLER_LINUX_SYSEPOLL;
@@ -770,6 +779,11 @@ fdevent_poll_event_set (fdevents *ev, fdnode *fdn, int events)
#ifndef POLLRDHUP
events &= ~FDEVENT_RDHUP;
+ #elif (defined(__linux__) && (defined(__sparc__) || defined(__sparc)))
+ if (events & FDEVENT_RDHUP) {
+ events &= ~FDEVENT_RDHUP;
+ events |= POLLRDHUP;
+ }
#endif
if (k >= 0) {
@@ -854,7 +868,11 @@ fdevent_poll_init (fdevents *ev)
ck_static_assert(POLLHUP == FDEVENT_HUP);
ck_static_assert(POLLNVAL == FDEVENT_NVAL);
#ifdef POLLRDHUP
+ #if (defined(__linux__) && (defined(__sparc__) || defined(__sparc)))
+ ck_static_assert(POLLRDHUP & FDEVENT_RDHUP);
+ #else
ck_static_assert(POLLRDHUP == FDEVENT_RDHUP);
+ #endif
#endif
ev->type = FDEVENT_HANDLER_POLL;
--
2.30.2

View File

@@ -1,6 +1,6 @@
# From https://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.76.sha512sum
sha512 940f00f2d84e3424c389108d09756a0af41db3559474135b6c502deccd08ad051b5184f3f7907436384964d2b05045e27dca463af98c889cee69b0ae6e202782 lighttpd-1.4.76.tar.xz
# From https://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.76.sha256sum
sha256 8cbf4296e373cfd0cedfe9d978760b5b05c58fdc4048b4e2bcaf0a61ac8f5011 lighttpd-1.4.76.tar.xz
# From https://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.77.sha512sum
sha512 696fd4fd8486a6c3fd1131c7e8a935a02b5384882b74ddc19bf79d085e2a0abed9184a30f97e3a7aafb816d3589e110e8d70115daa15cdc52cf61aa4129e3565 lighttpd-1.4.77.tar.xz
# From https://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.77.sha256sum
sha256 acafabdbfa2267d8b6452d03d85fdd2a66525f3f05a36a79b6645c017f1562ce lighttpd-1.4.77.tar.xz
# Locally calculated
sha256 5c98cad2fbaf5c5e2562bcbab401a7c557c1bb1bac9914ecc63730925052fb13 COPYING

View File

@@ -5,7 +5,7 @@
################################################################################
LIGHTTPD_VERSION_MAJOR = 1.4
LIGHTTPD_VERSION = $(LIGHTTPD_VERSION_MAJOR).76
LIGHTTPD_VERSION = $(LIGHTTPD_VERSION_MAJOR).77
LIGHTTPD_SOURCE = lighttpd-$(LIGHTTPD_VERSION).tar.xz
LIGHTTPD_SITE = http://download.lighttpd.net/lighttpd/releases-$(LIGHTTPD_VERSION_MAJOR).x
LIGHTTPD_LICENSE = BSD-3-Clause