From 4353e46ea2fbef5a4eb04bdbe6b710327110dcf7 Mon Sep 17 00:00:00 2001 From: Rongxin Liu Date: Tue, 30 Dec 2025 07:28:49 -0500 Subject: [PATCH] versions updates --- Dockerfile | 34 +++++++++++++++++----------------- shell.c.patch | 4 ++-- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9549b27..6d6d12d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,12 +36,12 @@ RUN cd /tmp && \ # https://github.com/tj/n#installation RUN curl --location https://raw.githubusercontent.com/tj/n/master/bin/n --output /usr/local/bin/n && \ chmod a+x /usr/local/bin/n && \ - n 22.19.0 + n 22.21.1 # Install Node.js packages RUN npm install --global \ - http-server + http-server@14.1.1 # Patch index.js in http-server @@ -64,16 +64,16 @@ RUN apt update && \ # Install Python 3.13.x # https://www.python.org/downloads/ RUN cd /tmp && \ - curl --remote-name https://www.python.org/ftp/python/3.13.7/Python-3.13.7.tgz && \ - tar xzf Python-3.13.7.tgz && \ - rm --force Python-3.13.7.tgz && \ - cd Python-3.13.7 && \ + curl --remote-name https://www.python.org/ftp/python/3.13.11/Python-3.13.11.tgz && \ + tar xzf Python-3.13.11.tgz && \ + rm --force Python-3.13.11.tgz && \ + cd Python-3.13.11 && \ CFLAGS="-Os" ./configure --disable-static --enable-optimizations --enable-shared --with-lto --without-tests && \ ./configure && \ make && \ make install && \ cd .. && \ - rm --force --recursive Python-3.13.7 && \ + rm --force --recursive Python-3.13.11 && \ ln --relative --symbolic /usr/local/bin/pip3 /usr/local/bin/pip && \ ln --relative --symbolic /usr/local/bin/python3 /usr/local/bin/python && \ pip3 install --no-cache-dir --upgrade pip @@ -89,16 +89,16 @@ RUN apt update && \ apt clean && \ rm --force --recursive /var/lib/apt/lists/* && \ cd /tmp && \ - curl https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.4.tar.gz --output ruby-3.4.4.tar.gz && \ - tar xzf ruby-3.4.4.tar.gz && \ - rm --force ruby-3.4.4.tar.gz && \ - cd ruby-3.4.4 && \ + curl https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.8.tar.gz --output ruby-3.4.8.tar.gz && \ + tar xzf ruby-3.4.8.tar.gz && \ + rm --force ruby-3.4.8.tar.gz && \ + cd ruby-3.4.8 && \ if [ "$BUILDARCH" = "arm64" ]; then ASFLAGS=-mbranch-protection=pac-ret; else ASFLAGS=; fi && \ ASFLAGS=${ASFLAGS} CFLAGS=-Os ./configure --disable-install-doc --enable-load-relative && \ make && \ make install && \ cd .. && \ - rm --force --recursive ruby-3.4.4 + rm --force --recursive ruby-3.4.8 # Install Ruby packages @@ -117,14 +117,14 @@ RUN echo "gem: --no-document" > /etc/gemrc && \ # https://www.sqlite.org/howtocompile.html#compiling_the_command_line_interface COPY shell.c.patch /tmp RUN cd /tmp && \ - curl --remote-name https://www.sqlite.org/2025/sqlite-amalgamation-3500400.zip && \ - unzip sqlite-amalgamation-3500400.zip && \ - rm --force sqlite-amalgamation-3500400.zip && \ - cd sqlite-amalgamation-3500400 && \ + curl --remote-name https://www.sqlite.org/2025/sqlite-amalgamation-3510100.zip && \ + unzip sqlite-amalgamation-3510100.zip && \ + rm --force sqlite-amalgamation-3510100.zip && \ + cd sqlite-amalgamation-3510100 && \ patch shell.c < /tmp/shell.c.patch && \ gcc -D HAVE_READLINE -D SQLITE_DEFAULT_FOREIGN_KEYS=1 -D SQLITE_OMIT_DYNAPROMPT=1 shell.c sqlite3.c -lpthread -ldl -lm -lreadline -lncurses -o /usr/local/bin/sqlite3 && \ cd .. && \ - rm --force --recursive sqlite-amalgamation-3500400 && \ + rm --force --recursive sqlite-amalgamation-3510100 && \ rm --force /tmp/shell.c.patch diff --git a/shell.c.patch b/shell.c.patch index 323f33d..91888a3 100644 --- a/shell.c.patch +++ b/shell.c.patch @@ -1,7 +1,7 @@ -@@ -33794,10 +33794,6 @@ +@@ -33659,10 +33659,6 @@ + if( stdin_is_interactive ){ char *zHome; char *zHistory; - int nHistory; - sqlite3_fprintf(stdout, - "SQLite version %s %.19s\n" /*extra-version-info*/ - "Enter \".help\" for usage hints.\n",