Skip to content

Commit 47e24ca

Browse files
Installs lsof 4.99.5 to prevent hangs (known issue of noble included version 4.95)
[bug] Lsof command call in ingest script hangs Fixes crocodilestick#654
1 parent 932ee66 commit 47e24ca

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

CONTRIBUTORS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CONTRIBUTORS
22

33
This file is automatically generated. DO NOT EDIT MANUALLY.
4-
Generated on: 2025-09-18T22:57:50.832205Z
4+
Generated on: 2025-09-23T07:36:59.860977Z
55

66
Upstream project: https://github.com/janeczku/calibre-web
77
Fork project (Calibre-Web Automated, since 2024): https://github.com/crocodilestick/calibre-web-automated
@@ -298,7 +298,7 @@ Copyright (C) 2024-2025 Calibre-Web Automated contributors
298298
- zhiyue (1 commits)
299299
# Fork Contributors (crocodilestick/calibre-web-automated)
300300

301-
- crocodilestick (673 commits)
301+
- crocodilestick (674 commits)
302302
- jmarmstrong1207 (73 commits)
303303
- demitrix (30 commits)
304304
- sirwolfgang (22 commits)

Dockerfile

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ RUN \
5050
libsasl2-dev \
5151
gettext \
5252
python3.13-dev \
53-
python3.13-venv && \
53+
python3.13-venv \
54+
curl && \
5455
echo "**** install runtime packages ****" && \
5556
apt-get install -y --no-install-recommends \
5657
imagemagick \
@@ -65,8 +66,20 @@ RUN \
6566
python3.13 \
6667
nano \
6768
sqlite3 \
68-
zip \
69-
lsof && \
69+
zip && \
70+
# Install lsof 4.99.5 from source to fix hanging issue with 4.95 (issue #654)
71+
echo "**** install lsof 4.99.5 from source ****" && \
72+
LSOF_VERSION="4.99.5" && \
73+
curl -L "https://github.com/lsof-org/lsof/archive/${LSOF_VERSION}.tar.gz" -o /tmp/lsof.tar.gz && \
74+
cd /tmp && \
75+
tar -xzf lsof.tar.gz && \
76+
cd "lsof-${LSOF_VERSION}" && \
77+
./Configure -n linux && \
78+
make && \
79+
cp lsof /usr/bin/lsof && \
80+
chmod 755 /usr/bin/lsof && \
81+
cd / && \
82+
rm -rf /tmp/lsof* && \
7083
# Create python3 symlink to point to python3.13
7184
ln -sf /usr/bin/python3.13 /usr/bin/python3 && \
7285
# Install pip for Python 3.13

0 commit comments

Comments
 (0)