File tree 4 files changed +69
-26
lines changed
4 files changed +69
-26
lines changed Original file line number Diff line number Diff line change 1
1
package :
2
2
name : python-3.10
3
3
version : 3.10.16
4
- epoch : 1
4
+ epoch : 2
5
5
description : " the Python programming language"
6
6
copyright :
7
7
- license : PSF-2.0
@@ -61,6 +61,22 @@ pipeline:
61
61
62
62
- name : Configure
63
63
runs : |
64
+ # Use more generic -march for rosetta2 compatibility
65
+ # Add additional flag overrides here
66
+ case "${{build.arch}}" in
67
+ "aarch64")
68
+ common_flags=""
69
+ ;;
70
+ "x86_64")
71
+ common_flags="-march=x86-64"
72
+ ;;
73
+ esac
74
+
75
+ export CFLAGS="${CFLAGS/-Os/-O2} $common_flags"
76
+ export CXXFLAGS="${CXXFLAGS/-Os/-O2} $common_flags"
77
+ export CPPFLAGS="${CPPFLAGS/-Os/-O2} $common_flags"
78
+
79
+
64
80
./configure \
65
81
--host=${{host.triplet.gnu}} \
66
82
--build=${{host.triplet.gnu}} \
Original file line number Diff line number Diff line change 1
1
package :
2
2
name : python-3.11
3
3
version : 3.11.11
4
- epoch : 1
4
+ epoch : 2
5
5
description : " the Python programming language"
6
6
copyright :
7
7
- license : PSF-2.0
@@ -61,6 +61,21 @@ pipeline:
61
61
62
62
- name : Configure
63
63
runs : |
64
+ # Use more generic -march for rosetta2 compatibility
65
+ # Add additional flag overrides here
66
+ case "${{build.arch}}" in
67
+ "aarch64")
68
+ common_flags=""
69
+ ;;
70
+ "x86_64")
71
+ common_flags="-march=x86-64"
72
+ ;;
73
+ esac
74
+
75
+ export CFLAGS="${CFLAGS/-Os/-O2} $common_flags"
76
+ export CXXFLAGS="${CXXFLAGS/-Os/-O2} $common_flags"
77
+ export CPPFLAGS="${CPPFLAGS/-Os/-O2} $common_flags"
78
+
64
79
./configure \
65
80
--host=${{host.triplet.gnu}} \
66
81
--build=${{host.triplet.gnu}} \
Original file line number Diff line number Diff line change 1
1
package :
2
2
name : python-3.12
3
3
version : " 3.12.9"
4
- epoch : 2
4
+ epoch : 3
5
5
description : " the Python programming language"
6
6
copyright :
7
7
- license : PSF-2.0
@@ -68,6 +68,21 @@ pipeline:
68
68
69
69
- name : Configure
70
70
runs : |
71
+ # Use more generic -march for rosetta2 compatibility
72
+ # Add additional flag overrides here
73
+ case "${{build.arch}}" in
74
+ "aarch64")
75
+ common_flags=""
76
+ ;;
77
+ "x86_64")
78
+ common_flags="-march=x86-64"
79
+ ;;
80
+ esac
81
+
82
+ export CFLAGS="${CFLAGS/-Os/-O2} $common_flags"
83
+ export CXXFLAGS="${CXXFLAGS/-Os/-O2} $common_flags"
84
+ export CPPFLAGS="${CPPFLAGS/-Os/-O2} $common_flags"
85
+
71
86
./configure \
72
87
--host=${{host.triplet.gnu}} \
73
88
--build=${{host.triplet.gnu}} \
@@ -213,18 +228,9 @@ subpackages:
213
228
- runs : |
214
229
mkdir -p "${{targets.contextdir}}/usr/bin"
215
230
cp "${{targets.outdir}}/${{package.name}}-base/usr/bin/${{vars.python}}" "${{targets.contextdir}}/usr/bin/"
231
+ # Note this sets the capability the test using getcap fails but the
232
+ # capability is set in images with this package.
216
233
setcap cap_net_bind_service=+eip "${{targets.contextdir}}/usr/bin/${{vars.python}}"
217
- test :
218
- environment :
219
- contents :
220
- packages :
221
- - libcap-utils
222
- pipeline :
223
- - runs : |
224
- stat "/usr/bin/${{vars.python}}"
225
- - name : Test file capabilities
226
- runs : |
227
- getcap /usr/bin/${{vars.python}} | cut -d ' ' -f2 | grep -q -E '^cap_net_bind_service=eip$'
228
234
229
235
- name : " ${{package.name}}-tk"
230
236
dependencies :
Original file line number Diff line number Diff line change 1
1
package :
2
2
name : python-3.13
3
3
version : " 3.13.2"
4
- epoch : 2
4
+ epoch : 3
5
5
description : " the Python programming language"
6
6
copyright :
7
7
- license : PSF-2.0
@@ -68,6 +68,21 @@ pipeline:
68
68
69
69
- name : Configure
70
70
runs : |
71
+ # Use more generic -march for rosetta2 compatibility
72
+ # Add additional flag overrides here
73
+ case "${{build.arch}}" in
74
+ "aarch64")
75
+ common_flags=""
76
+ ;;
77
+ "x86_64")
78
+ common_flags="-march=x86-64"
79
+ ;;
80
+ esac
81
+
82
+ export CFLAGS="${CFLAGS/-Os/-O2} $common_flags"
83
+ export CXXFLAGS="${CXXFLAGS/-Os/-O2} $common_flags"
84
+ export CPPFLAGS="${CPPFLAGS/-Os/-O2} $common_flags"
85
+
71
86
./configure \
72
87
--host=${{host.triplet.gnu}} \
73
88
--build=${{host.triplet.gnu}} \
@@ -213,18 +228,9 @@ subpackages:
213
228
- runs : |
214
229
mkdir -p "${{targets.contextdir}}/usr/bin"
215
230
cp "${{targets.outdir}}/${{package.name}}-base/usr/bin/${{vars.python}}" "${{targets.contextdir}}/usr/bin/"
231
+ # Note this sets the capability the test using getcap fails but the
232
+ # capability is set in images with this package.
216
233
setcap cap_net_bind_service=+eip "${{targets.contextdir}}/usr/bin/${{vars.python}}"
217
- test :
218
- environment :
219
- contents :
220
- packages :
221
- - libcap-utils
222
- pipeline :
223
- - runs : |
224
- stat /usr/bin/${{vars.python}}
225
- - name : Test file capabilities
226
- runs : |
227
- getcap /usr/bin/${{vars.python}} | cut -d ' ' -f2 | grep -q -E '^cap_net_bind_service=eip$'
228
234
229
235
- name : " ${{package.name}}-tk"
230
236
dependencies :
You can’t perform that action at this time.
0 commit comments