Skip to contentSkip to conversation

autoconf: don't curl build script

PATCH In review Florian Westphal 3 participants 5 messages Mar 9, 2025 – Mar 10, 2025 netfilter

lore
Share & tools
lore

Florian Westphal

author maintainer
#0 lore raw

PATCH 1/1 autoconf: don't curl build script

This is a bad idea; cloning repo followed by "./autogen.sh" brings repository into a changed state.

Partial revert of 74576db959cb
("build: doc: make generates requested documentation")

---
 autogen.sh | 8 --------
 1 file changed, 8 deletions(-)
autogen.sh +0 -8
index 93e2a23135d4..5e1344a85402 100755
@@ -1,12 +1,4 @@
 #!/bin/sh -e
 
-BUILD_MAN=doxygen/build_man.sh
-
-# Allow to override build_man.sh url for local testing
-# E.g. export NFQ_URL=file:///usr/src/libnetfilter_queue
-curl ${NFQ_URL:-https://git.netfilter.org/libnetfilter_queue/plain}/$BUILD_MAN\
-  -o$BUILD_MAN
-chmod a+x $BUILD_MAN
-
 autoreconf -fi
 rm -Rf autom4te.cache
Signature · 1 line
2.48.1
#1 lore raw

Hi Florian,

Quoted 29 lines · Florian Westphal

This is a bad idea; cloning repo followed by "./autogen.sh" brings repository into a changed state.

Partial revert of 74576db959cb
("build: doc: make generates requested documentation")

---
 autogen.sh | 8 --------
 1 file changed, 8 deletions(-)
autogen.sh +0 -9
index 93e2a23135d4..5e1344a85402 100755
@@ -1,12 +1,4 @@
 #!/bin/sh -e
 
-BUILD_MAN=doxygen/build_man.sh
-
-# Allow to override build_man.sh url for local testing
-# E.g. export NFQ_URL=file:///usr/src/libnetfilter_queue
-curl ${NFQ_URL:-https://git.netfilter.org/libnetfilter_queue/plain}/$BUILD_MAN\
-  -o$BUILD_MAN
-chmod a+x $BUILD_MAN
-
 autoreconf -fi
 rm -Rf autom4te.cache
--
Quoted 3 lines

2.48.1

| This is a bad idea; cloning repo followed by "./autogen.sh" brings | repository into a changed state.

Agree with the above, except IMHO the "bad idea" is to have a frozen version of build_man.sh in the repository at all.

Pablo did that - I didn't like to quibble at the time but I thought no good would come of it.

I've sent in an alternative patch to remove build_man.sh from the repo and add it to .gitignore.

With this patch git clone followed by "./autogen.sh" behaves as it should.

Cheers ... Duncan.

author maintainer
#2 lore raw
Quoted 5 lines · Duncan Roe

| This is a bad idea; cloning repo followed by "./autogen.sh" brings | repository into a changed state.

Agree with the above, except IMHO the "bad idea" is to have a frozen version of build_man.sh in the repository at all.

I absolutely hate the idea of fetching stuff at build time. And in this case, we fetch an exectuable shell script from untrusted location.

It has backdoor written all over it.

#3 lore raw
Quoted 5 lines · Florian Westphal

I absolutely hate the idea of fetching stuff at build time. And in this case, we fetch an exectuable shell script from untrusted location.

Ok in future I'll send build_man patches to libnetfilter_log once they're applied to libnetfilter_queue.

Have just found an error in the latest update :( so will wait for the fix to be accepted.

Cheers ... Duncan.

#4 lore raw
In reply to Florian Westphal
Quoted 5 lines · Florian Westphal

This is a bad idea; cloning repo followed by "./autogen.sh" brings repository into a changed state.

Partial revert of 74576db959cb
("build: doc: make generates requested documentation")

Please, apply this. Thanks.

Quoted 26 lines
---
 autogen.sh | 8 --------
 1 file changed, 8 deletions(-)
autogen.sh +0 -8
index 93e2a23135d4..5e1344a85402 100755
@@ -1,12 +1,4 @@
 #!/bin/sh -e
 
-BUILD_MAN=doxygen/build_man.sh
-
-# Allow to override build_man.sh url for local testing
-# E.g. export NFQ_URL=file:///usr/src/libnetfilter_queue
-curl ${NFQ_URL:-https://git.netfilter.org/libnetfilter_queue/plain}/$BUILD_MAN\
-  -o$BUILD_MAN
-chmod a+x $BUILD_MAN
-
 autoreconf -fi
 rm -Rf autom4te.cache
Signature · 1 line
2.48.1