Skip to content

Commit

Permalink
Support building pkg on aarch64 again
Browse files Browse the repository at this point in the history
  • Loading branch information
citrus-it committed Feb 25, 2024
1 parent e9dba29 commit d348198
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 9 additions & 1 deletion src/pkg/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ PKGSEND_OPTS = --no-index --no-catalog
PKGPUBLISHER = pkg5-nightly
PKGPUBLISHER_LOCALIZABLE = pkg5-localizable

POUND_SIGN:sh = echo \\043
PRE_POUND = pre\#
POUND_SIGN = $(PRE_POUND:pre\%=%)
PUBLISHALL = $(POUND_SIGN)
# This won't work if we obsolete a package in an update build, but shouldn't be
# necessary after we stop publishing duplicate packages.
Expand Down Expand Up @@ -110,10 +111,17 @@ PM_TRANSFORMS += pynext

i386_DEFINES = \
i386_ONLY='' \
aarch64_ONLY=$(POUND_SIGN) \
sparc_ONLY=$(POUND_SIGN)

aarch64_DEFINES = \
i386_ONLY=$(POUND_SIGN) \
aarch64_ONLY='' \
sparc_ONLY=$(POUND_SIGN)

sparc_DEFINES = \
i386_ONLY=$(POUND_SIGN) \
aarch64_ONLY=$(POUND_SIGN) \
sparc_ONLY=''

ARCH_DEFINES = $($(ARCH)_DEFINES)
Expand Down
6 changes: 4 additions & 2 deletions src/pkg/transforms/pynext
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@
<transform path=TBD -> edit path 3.11 3.12>

# During the 3.11 to 3.12 upgrade, we need to also translate the loadable
# module names as they were (incorrectly) unqualified with 3.11
<transform path=TBD \
# module names as they were unqualified with 3.11
$(i386_ONLY)<transform path=TBD \
-> edit path cpython-312.so cpython-312-x86_64-pc-solaris2.so >
$(aarch64_ONLY)<transform path=TBD \
-> edit path cpython-312.so cpython-312-aarch64-unknown-solaris2.so >

<transform path=TBD -> edit path TBD ''>

0 comments on commit d348198

Please sign in to comment.