@@ -11,12 +11,11 @@ pkg_deps=(
1111 core/rsync
1212 core/sed
1313 core/libffi
14- core/sqlite/3.50.4
14+ core/sqlite
1515 core/tzdata
1616 core/openssl
1717 core/gcc-libs
1818 core/glibc
19- core/libyaml
2019)
2120pkg_build_deps=(
2221 core/git
@@ -27,10 +26,6 @@ pkg_build_deps=(
2726 core/coreutils
2827 core/libxml2
2928 core/libxslt
30- core/libyaml
31- core/glibc
32- core/binutils
33- core/diffutils
3429)
3530pkg_binds_optional=(
3631 [database]=" port"
@@ -74,26 +69,10 @@ do_prepare() {
7469}
7570
7671do_build () {
77- export LD_LIBRARY_PATH=" $( pkg_path_for core/libffi) /lib:$( pkg_path_for core/sqlite) /lib: $( pkg_path_for core/libyaml ) /lib: $( pkg_path_for core/postgresql13-client ) /lib "
72+ export LD_LIBRARY_PATH=" $( pkg_path_for core/libffi) /lib:$( pkg_path_for core/sqlite) /lib"
7873 export USE_SYSTEM_LIBFFI=1
79- export C_INCLUDE_PATH=" $( pkg_path_for core/sqlite) /include: $( pkg_path_for core/libyaml ) /include: $( pkg_path_for core/postgresql13-client ) /include "
74+ export C_INCLUDE_PATH=" $( pkg_path_for core/sqlite) /include"
8075 export BUNDLE_SILENCE_ROOT_WARNING=1
81-
82- # Set conservative compiler flags to avoid architecture-specific instructions
83- # that can cause "Illegal instruction" errors on different CPUs
84- export CFLAGS=" -march=x86-64 -mtune=generic -O2"
85- export CXXFLAGS=" -march=x86-64 -mtune=generic -O2"
86- export CPPFLAGS=" -I$( pkg_path_for core/libffi) /include -I$( pkg_path_for core/sqlite) /include -I$( pkg_path_for core/libyaml) /include -I$( pkg_path_for core/postgresql13-client) /include"
87- export LDFLAGS=" -L$( pkg_path_for core/libffi) /lib -L$( pkg_path_for core/sqlite) /lib -L$( pkg_path_for core/libyaml) /lib -L$( pkg_path_for core/postgresql13-client) /lib"
88-
89- # Force Ruby platform for gems to avoid native compilation issues
90- # Commented out due to platform conflict with Gemfile.lock
91- # export BUNDLE_FORCE_RUBY_PLATFORM=true
92-
93- build_line " Setting CFLAGS='$CFLAGS '"
94- build_line " Setting CXXFLAGS='$CXXFLAGS '"
95- build_line " Setting CPPFLAGS='$CPPFLAGS '"
96- build_line " Setting LDFLAGS='$LDFLAGS '"
9776}
9877
9978_tar_pipe_app_cp_to () {
@@ -132,37 +111,12 @@ do_install() {
132111 ! -path " ./.bundle/*" \
133112 ! -name " *.hart" \
134113 | _tar_pipe_app_cp_to " $HOME "
135-
136- # Ensure build tools are available in PATH during gem installation
137- export PATH=" $( pkg_path_for core/gcc) /bin:$( pkg_path_for core/make) /bin:$( pkg_path_for core/pkg-config) /bin:$PATH "
138-
139- # Re-export build environment variables for gem compilation
140- export LD_LIBRARY_PATH=" $( pkg_path_for core/libffi) /lib:$( pkg_path_for core/sqlite) /lib:$( pkg_path_for core/libyaml) /lib:$( pkg_path_for core/postgresql13-client) /lib"
141- export CFLAGS=" -march=x86-64 -mtune=generic -O2"
142- export CXXFLAGS=" -march=x86-64 -mtune=generic -O2"
143- export CPPFLAGS=" -I$( pkg_path_for core/libffi) /include -I$( pkg_path_for core/sqlite) /include -I$( pkg_path_for core/libyaml) /include -I$( pkg_path_for core/postgresql13-client) /include"
144- export LDFLAGS=" -L$( pkg_path_for core/libffi) /lib -L$( pkg_path_for core/sqlite) /lib -L$( pkg_path_for core/libyaml) /lib -L$( pkg_path_for core/postgresql13-client) /lib"
145-
146114 bundle config path ${HOME} /vendor/bundle
147115 bundle config build.sqlite3 --with-sqlite3-lib=$( pkg_path_for core/sqlite) /lib
148116 bundle config build.nokogiri --with-xml2-include=$( pkg_path_for core/libxml2) /include/libxml2 \
149117 --with-xml2-lib=$( pkg_path_for core/libxml2) /lib \
150118 --with-xslt-include=$( pkg_path_for core/libxslt) /include/libxslt \
151119 --with-xslt-lib=$( pkg_path_for core/libxslt) /lib
152- # Configure gems with native extensions to use conservative compiler flags and system libraries
153- bundle config build.ffi --with-cflags=" $CFLAGS " --with-ldflags=" $LDFLAGS "
154- bundle config build.psych --with-cflags=" $CFLAGS " --with-ldflags=" $LDFLAGS " \
155- --with-libyaml-include=$( pkg_path_for core/libyaml) /include \
156- --with-libyaml-lib=$( pkg_path_for core/libyaml) /lib
157- bundle config build.io-console --with-cflags=" $CFLAGS " --with-ldflags=" $LDFLAGS "
158- bundle config build.kgio --with-cflags=" $CFLAGS " --with-ldflags=" $LDFLAGS "
159- bundle config build.pg --with-cflags=" $CFLAGS " --with-ldflags=" $LDFLAGS " \
160- --with-pg-config=$( pkg_path_for core/postgresql13-client) /bin/pg_config \
161- --with-pg-include=$( pkg_path_for core/postgresql13-client) /include \
162- --with-pg-lib=$( pkg_path_for core/postgresql13-client) /lib
163- # Force ruby platform for gems to avoid architecture issues
164- # Commented out due to platform conflict with Gemfile.lock
165- # bundle config set --local force_ruby_platform true
166120 bundle config set path " ${HOME} /vendor/bundle"
167121 bundle config set deployment ' true'
168122 bundle config set --local shebang ' ruby'
@@ -177,4 +131,4 @@ do_install() {
177131# needed due to libffi Bad value error
178132do_strip () {
179133 return 0
180- }
134+ }
0 commit comments