- **status**: review --> fixed
- **Comment**:
commit 822c70a20c86cbe41718a4634281aa73f64f6b5b (HEAD -> develop,
origin/develop, ticket-3270)
Author: thien.m.huynh <[email protected]>
Date: Mon Aug 16 17:18:29 2021 +0700
build: adaptive python version for rpm build [#3270]
The unversioned macros, %{__python}, %{python_sitelib} are deprecated.
This patch make specific version python during byte compilation.
---
** [tickets:#3270] build: make rpm got unversioned python**
**Status:** fixed
**Milestone:** 5.21.12
**Created:** Mon Jun 28, 2021 07:10 AM UTC by Thien Minh Huynh
**Last Updated:** Tue Sep 14, 2021 06:24 AM UTC
**Owner:** Thien Minh Huynh
%{__python} is no longer pointed to python2.
~~~
rpmbuild -bb --clean --rmspec --rmsource \
--define "_topdir `pwd`/rpms" --define "_tmppath `pwd`/rpms/tmp" \
`pwd`/rpms/SPECS/opensaf.spec
error: attempt to use unversioned python, define %__python to /usr/bin/python2
or /usr/bin/python3 explicitly
error: line 1556: %{python_sitelib}/pyosaf/*.py
make[1]: *** [Makefile:26843: rpm] Error 1
make[1]: Leaving directory '/root/osaf-build/opensaf-5.21.06'
make: *** [makefile:8: all] Error 2
~~~
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list._______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets