Skip to content

Commit

Permalink
python3: Fix unnecessary linking with libbsd
Browse files Browse the repository at this point in the history
configure will try to link with libbsd for the flock function, even when
flock is available without it.

Fixes: #21161
Fixes: 2445fe9 ("python3: Update to 3.11.3, refresh/redo patches")
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
  • Loading branch information
jefferyto committed May 25, 2023
1 parent 6b8340d commit 60bf01c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lang/python/python3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ CONFIGURE_VARS += \
ac_cv_file__dev_ptc=no \
ac_cv_file__dev_ptmx=yes

# Do not link with libbsd for flock
# https://github.com/openwrt/packages/issues/21161
CONFIGURE_VARS += \
ac_cv_lib_bsd_flock=no

# Disable stdlib modules
# Check for a better way in the future: https://github.com/python/cpython/issues/98558
CONFIGURE_VARS += \
Expand Down

0 comments on commit 60bf01c

Please sign in to comment.