Fix ARM build errors in jphs/jpeg-8a by using updated config (#182)

* Add platform specification for all services in docker-compose

* Update Dockerfile to ensure autotools scripts are compatible with aarch64

* Comment out platform specification for services in docker-compose

* Remove platform specification for services in docker-compose
This commit is contained in:
Aradhya C P
2026-01-30 19:20:39 +01:00
committed by GitHub
parent 6a9f3dbe5c
commit 202b57e51e
+6 -1
View File
@@ -20,7 +20,12 @@ RUN cd /tmp/jsteg && \
# Builder stage - add after other tool compilations # Builder stage - add after other tool compilations
RUN git clone https://github.com/h3xx/jphs.git /tmp/jphs RUN git clone https://github.com/h3xx/jphs.git /tmp/jphs
RUN cd /tmp/jphs/jpeg-8a && ./configure && make # Ensure autotools helper scripts are up-to-date so configure recognizes aarch64
RUN cd /tmp/jphs/jpeg-8a \
&& wget -q -O config.guess 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess' \
&& wget -q -O config.sub 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub' \
&& chmod +x config.guess config.sub \
&& ./configure && make
RUN cd /tmp/jphs && sed -i 's/open(seekfilename,O_WRONLY|O_TRUNC|O_CREAT)/open(seekfilename,O_WRONLY|O_TRUNC|O_CREAT, 0644)/' jpseek.c RUN cd /tmp/jphs && sed -i 's/open(seekfilename,O_WRONLY|O_TRUNC|O_CREAT)/open(seekfilename,O_WRONLY|O_TRUNC|O_CREAT, 0644)/' jpseek.c
RUN cd /tmp/jphs \ RUN cd /tmp/jphs \
&& sed -i 's/^LIBS = .*/JPEG_OBJS = $(filter-out jpeg-8a\/cjpeg.o jpeg-8a\/djpeg.o jpeg-8a\/jpegtran.o jpeg-8a\/rdjpgcom.o jpeg-8a\/wrjpgcom.o,$(wildcard jpeg-8a\/\*.o))/' Makefile \ && sed -i 's/^LIBS = .*/JPEG_OBJS = $(filter-out jpeg-8a\/cjpeg.o jpeg-8a\/djpeg.o jpeg-8a\/jpegtran.o jpeg-8a\/rdjpgcom.o jpeg-8a\/wrjpgcom.o,$(wildcard jpeg-8a\/\*.o))/' Makefile \