crazy-max / docker-rtorrent-rutorrent

rTorrent and ruTorrent Docker image
MIT License
483 stars 106 forks source link

Upgrade mktorrent build script #366

Closed stickz closed 3 months ago

stickz commented 3 months ago

Allows for near instantaneous torrent creation by multi-threading the hashing process, provided disk resources are available. We must apply these options directly to the Makefile. This software will not accept environment variables passed by GNU make.

stickz commented 3 months ago

The build log output shows this was successful. The compiler was switched to gcc with cflags and environment variables applied.

2024-06-23T02:12:52.2353248Z #82 [builder 49/62] RUN echo "CC = gcc" >> Makefile
2024-06-23T02:12:52.2353594Z #82 DONE 0.1s
2024-06-23T02:12:52.3277479Z 
2024-06-23T02:12:52.3278420Z #83 [builder 50/62] RUN echo "CFLAGS = -w -flto -O3" >> Makefile
2024-06-23T02:12:52.3279165Z #83 DONE 0.1s
2024-06-23T02:12:52.3279412Z 
2024-06-23T02:12:52.3279724Z #84 [builder 51/62] RUN echo "USE_PTHREADS = 1" >> Makefile
2024-06-23T02:12:52.3280399Z #84 DONE 0.1s
2024-06-23T02:12:52.4432959Z 
2024-06-23T02:12:52.4433537Z #85 [builder 52/62] RUN echo "USE_OPENSSL = 1" >> Makefile
2024-06-23T02:12:52.4434561Z #85 DONE 0.1s
2024-06-23T02:12:52.4434884Z 
2024-06-23T02:12:52.4435326Z #86 [builder 53/62] RUN make -j$(nproc)
2024-06-23T02:12:52.4436269Z #86 0.059 gcc -w -flto -O3 -DUSE_PTHREADS -DUSE_OPENSSL  prefix.c -o prefix
2024-06-23T02:12:52.5688462Z #86 0.130 gcc -w -flto -O3 -DUSE_PTHREADS -DUSE_OPENSSL -DPRIoff="\"ld\"" -DVERSION="\"1.1\"" -c ftw.c
2024-06-23T02:12:52.5690084Z #86 0.131 gcc -w -flto -O3 -DUSE_PTHREADS -DUSE_OPENSSL -DPRIoff="\"ld\"" -DVERSION="\"1.1\"" -c init.c
2024-06-23T02:12:52.5691738Z #86 0.132 gcc -w -flto -O3 -DUSE_PTHREADS -DUSE_OPENSSL -DPRIoff="\"ld\"" -DVERSION="\"1.1\"" -c hash_pthreads.c
2024-06-23T02:12:52.5693382Z #86 0.133 gcc -w -flto -O3 -DUSE_PTHREADS -DUSE_OPENSSL -DPRIoff="\"ld\"" -DVERSION="\"1.1\"" -c output.c
2024-06-23T02:12:52.5695325Z #86 0.184 gcc -w -flto -O3 -DUSE_PTHREADS -DUSE_OPENSSL -DPRIoff="\"ld\"" -DVERSION="\"1.1\"" -c main.c
2024-06-23T02:12:52.7555635Z #86 0.220 gcc -w -flto -O3 ftw.o init.o hash_pthreads.o output.o main.o -o mktorrent  -lpthread -lcrypto
2024-06-23T02:12:52.9170161Z #86 DONE 0.5s
stickz commented 3 months ago

README has been updated!