When i packaged install package on my build machine I have tested 4 condition: 1> add --without-sendfile-support option when building and do not have libsendfile.so.1 on build machine. test result: new install package does not dependent on libsendfile.so.1 2> add --without-sendfile-support option when building and have libsendfile.so.1 on build machine . test result: new install package dependent on libsendfile.so.1 3> do not add --without-sendfile-support option when building and do not have libsendfile.so.1 on build machine. test result: new install package does not dependent on libsendfile.so.1 4> do not add --without-sendfile-support option when building and have libsendfile.so.1 no build machine. test result: new install package dependent on libsendfile.so.1 So the "--without-sendfile-support" option did not at work,whether build packege dependent on libsendfile.so.1, just related to are there libsendfile.so.1 on build machine .
After take a look at configure file. in configure:80182 with_sendfile_support=yes { $as_echo "$as_me:$LINENO: checking whether to check to support sendfile" >&5 $as_echo_n "checking whether to check to support sendfile... " >&6; } # Check whether --with-sendfile-support was given. if test "${with_sendfile_support+set}" = set; then withval=$with_sendfile_support; case "$withval" in yes) From above code we can see that before check whether --with-sendfile-support was given , with_sendfile_support is set to yes by 'with_sendfile_support=yes' So "--with-sendfile-support=no| --without-sendfile-support" option doesn't take effect. is this the root cause?
I modify code from ================================================ with_sendfile_support=yes { $as_echo "$as_me:$LINENO: checking whether to check to support sendfile" >&5 $as_echo_n "checking whether to check to support sendfile... " >&6; } # Check whether --with-sendfile-support was given. if test "${with_sendfile_support+set}" = set; then withval=$with_sendfile_support; case "$withval" in yes) ================================================== to ====================================================== #with_sendfile_support=yes { $as_echo "$as_me:$LINENO: checking whether to check to support sendfile" >&5 $as_echo_n "checking whether to check to support sendfile... " >&6; } # --with-sendfile-support default value is yes if test "${with_sendfile_support+set}" != set ; then with_sendfile_support=yes; fi # Check whether --with-sendfile-support was given. if test "${with_sendfile_support+set}" = set; then withval=$with_sendfile_support; case "$withval" in yes) ====================================================== I have test follows three conditions 1> use --with-sendfile-support default value result: dependent on libsendfile.so.1 2> add with_sendfile_support=yes result: dependent on libsendfile.so.1 3> add --without-sendfile-support result: did not dependent on libsendfile.so.1 so the modification fix this bug!
If this issue still in the current branch of v3-5-test? If so, how can check in the change to v3-5-test branch, what the step to do ? ^_^ Thinks Kingson Centrify Corp.
Created attachment 7894 [details] patch for 3.5 and 3.6 indeed, compiling in of sendfile support did not work. Attached git patch fixes that for 3.5 and 3.6. The corresponding patch from master should be picked to 4.0.
Re-assigning to Metze for patch review.
Comment on attachment 7894 [details] patch for 3.5 and 3.6 Looks ok
Created attachment 8037 [details] Patch for v4-0-test Looks good
Karolin, please pick for the next releases
Pushed to autobuild-v4-0-test, v3-6-test and v3-5-test. Closing out bug report. Thanks!
*** Bug 4722 has been marked as a duplicate of this bug. ***