Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python311: Use automatic dependency generation (r151046) #3788

Merged
merged 1 commit into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions build/python311/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

PROG=Python
VER=3.11.11
DASHREV=1
PKG=runtime/python-311
MVER=${VER%.*}
SUMMARY="$PROG $MVER"
Expand All @@ -28,17 +29,8 @@ BUILD_DEPENDS_IPS="
developer/pkg-config
ooce/developer/autoconf-archive
"
# The python ctypes module runs '/usr/bin/dump' from here.
RUN_DEPENDS_IPS="
compress/bzip2
database/sqlite-3
library/expat@`pkg_ver expat`
library/libffi
library/libxml2
library/ncurses
library/readline
library/security/openssl-3
library/zlib
system/library/gcc-runtime
developer/object-file
"
XFORM_ARGS="-D PYTHONVER=$MVER"
Expand Down
12 changes: 9 additions & 3 deletions build/python311/local.mog
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ license LICENSE license=PSFv2
# Drop static library
<transform file path=.*\.a$ -> drop>

# Remove idle
# Remove idle and things that depend on it
<transform file link path=usr/bin(/.*)?/idle -> drop >
<transform path=usr/lib/python$(PYTHONVER)/idlelib -> drop>
<transform path=usr/lib/python$(PYTHONVER)/turtledemo -> drop>

# Move binaries from usr/bin to private bin
<transform file link \
Expand All @@ -27,8 +28,13 @@ license LICENSE license=PSFv2
# Remove test files
<transform path=usr/lib/python$(PYTHONVER)/test -> drop>

# Prevent pkgdepend from reporting an error
<transform file path=. -> set pkg.depend.bypass-generate .*>
# Prevent pkgdepend from attempting to resolve __main__ dependencies in
# tracing/profiling modules as it will fail.
<transform file \
path=usr/lib/python$(PYTHONVER)/(platform|cProfile|pdb|profile|trace|smtpd)\.py$ \
-> set pkg.depend.bypass-generate .*>
<transform file path=usr/lib/python$(PYTHONVER)/cgi\.py$ \
-> set pkg.depend.bypass-generate .*>

# Move /usr/lib/amd64/libpython3.so and replace with a symlink
<transform file path=usr/lib/amd64/libpython3.so$ \
Expand Down
Loading