Hello,
Trying to build a rpm package for gsl.2.7 I downloaded gsl-2.7.tar.gz I copy cp -a gsl.spec.in gsl.spec and run (in gsl-2.7) fedpkg --release fc34 local but I get Traceback (most recent call last): File "/usr/bin/fedpkg", line 33, in <module> sys.exit(load_entry_point('fedpkg==1.40', 'console_scripts', 'fedpkg')()) File "/usr/bin/fedpkg", line 25, in importlib_load_entry_point return next(matches).load() File "/usr/lib64/python3.9/importlib/metadata.py", line 77, in load module = import_module(match.group('module')) File "/usr/lib64/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 680, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 855, in exec_module File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "/usr/lib/python3.9/site-packages/fedpkg/__init__.py", line 12, in <module> import pyrpkg File "/usr/lib/python3.9/site-packages/pyrpkg/__init__.py", line 47, in <module> from pyrpkg.lookaside import CGILookasideCache File "/usr/lib/python3.9/site-packages/pyrpkg/lookaside.py", line 23, in <module> import pycurl ImportError: pycurl: libcurl link-time version (7.64.1) is older than compile-time version (7.75.0)
Can I easy fix this issue?
Thanks
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com Laboratoire interdisciplinaire Carnot de Bourgogne 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE Tel: +33 (0)380395988 | | Room# D114A ===========================================================================
On 2021-06-19 7:34 a.m., Patrick Dupre wrote:
import pycurlImportError: pycurl: libcurl link-time version (7.64.1) is older than compile-time version (7.75.0)
Do you have a self-installed version of pycurl or libcurl somewhere?
What does "rpm -q python3-pycurl libcurl" show?
python3-pycurl-7.43.0.6-5.fc34.x86_64 libcurl-7.76.1-4.fc34.x86_64 libcurl-7.76.1-4.fc34.i686
On 2021-06-19 7:34 a.m., Patrick Dupre wrote:
import pycurlImportError: pycurl: libcurl link-time version (7.64.1) is older than compile-time version (7.75.0)
Do you have a self-installed version of pycurl or libcurl somewhere?
What does "rpm -q python3-pycurl libcurl" show? _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
Actually, now I have: fedpkg --release fc34 local sources file doesn't exist. Source files download skipped. Could not execute local: Could not find the release/dist from branch name fc34 Please specify with --release
using gsl.spec.in (gsl-2.7.tar.gz)
Name: gsl Summary: GNU Scientific Library (GSL) Packager: jungman@lanl.gov, rosalia@lanl.gov %define version @VERSION@ %define release 0 Version: %{version} Release: %{release} License: GPL Vendor: The GSL Team Distribution: research software Source: gsl-%{version}.tar.gz Group: Libraries/Research %define mybuildroot /var/tmp/%{name}-build BuildRoot: %{mybuildroot}
%description The GNU Scientific Library (GSL) is a numerical library for C and C++ programmers. It contains over 1000 mathematical routines written in ANSI C. The library follows modern coding conventions, and lends itself to being used in very high level languages (VHLLs).
The library covers the following subject areas:
Complex Numbers Roots of Polynomials Special Functions Vectors and Matrices Permutations Sorting BLAS Support Linear Algebra Eigensystems Fast Fourier Transforms Quadrature Random Numbers Quasi-Random Sequences Random Distributions Statistics Histograms N-Tuples Monte Carlo Integration Simulated Annealing Differential Equations Interpolation Numerical Differentiation Chebyshev Approximation Series Acceleration Discrete Hankel Transforms Root-Finding Minimization Least-Squares Fitting Physical Constants IEEE Floating-Point
Further information can be found in the GSL Reference Manual. Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 The GSL Team.
Install the gsl package if you need a library for high-level scientific numerical analysis.
%prep %setup -q -n gsl-%{version}
%build CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} \ --bindir=%{_bindir} --mandir=%{_mandir} \ --localstatedir=%{_localstatedir} --libdir=%{_libdir} \ --datadir=%{_datadir} --includedir=%{_includedir} \ --sysconfdir=%{_sysconfdir} make
%install rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT%{_prefix} bindir=$RPM_BUILD_ROOT%{_bindir} \ mandir=$RPM_BUILD_ROOT%{_mandir} libdir=$RPM_BUILD_ROOT%{_libdir} \ localstatedir=$RPM_BUILD_ROOT%{_localstatedir} \ datadir=$RPM_BUILD_ROOT%{_datadir} \ includedir=$RPM_BUILD_ROOT%{_includedir} \ sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} install
%clean rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files %doc {NEWS,ChangeLog,INSTALL,README,AUTHORS,THANKS,SUPPORT,BUGS} %doc /usr/info/* /usr/bin/gsl-config /usr/bin/gsl-histogram /usr/bin/gsl-randist /usr/lib /usr/include/gsl /usr/share/aclocal/gsl.m4 /usr/share/man
Subject: Re: fedpkg
On 2021-06-19 7:34 a.m., Patrick Dupre wrote:
import pycurlImportError: pycurl: libcurl link-time version (7.64.1) is older than compile-time version (7.75.0)
Do you have a self-installed version of pycurl or libcurl somewhere?
What does "rpm -q python3-pycurl libcurl" show? _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
I thought that fedpkg works with a clone of the git repo for a fedora package. Is that what you are doing?
Barry
On 19 Jun 2021, at 15:35, Patrick Dupre pdupre@gmx.com wrote:
Hello,
Trying to build a rpm package for gsl.2.7 I downloaded gsl-2.7.tar.gz I copy cp -a gsl.spec.in gsl.spec and run (in gsl-2.7) fedpkg --release fc34 local but I get Traceback (most recent call last): File "/usr/bin/fedpkg", line 33, in <module> sys.exit(load_entry_point('fedpkg==1.40', 'console_scripts', 'fedpkg')()) File "/usr/bin/fedpkg", line 25, in importlib_load_entry_point return next(matches).load() File "/usr/lib64/python3.9/importlib/metadata.py", line 77, in load module = import_module(match.group('module')) File "/usr/lib64/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 680, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 855, in exec_module File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "/usr/lib/python3.9/site-packages/fedpkg/__init__.py", line 12, in <module> import pyrpkg File "/usr/lib/python3.9/site-packages/pyrpkg/__init__.py", line 47, in <module> from pyrpkg.lookaside import CGILookasideCache File "/usr/lib/python3.9/site-packages/pyrpkg/lookaside.py", line 23, in <module> import pycurl ImportError: pycurl: libcurl link-time version (7.64.1) is older than compile-time version (7.75.0)
Can I easy fix this issue?
Thanks
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com Laboratoire interdisciplinaire Carnot de Bourgogne 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE Tel: +33 (0)380395988 | | Room# D114A =========================================================================== _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
I do not think so. I downloaded
https://www.gnu.org/software/gsl/gsl-latest.tgz (gsl-2.7)
I thought that fedpkg works with a clone of the git repo for a fedora package. Is that what you are doing?
Barry
On 19 Jun 2021, at 15:35, Patrick Dupre pdupre@gmx.com wrote:
Hello,
Trying to build a rpm package for gsl.2.7 I downloaded gsl-2.7.tar.gz I copy cp -a gsl.spec.in gsl.spec and run (in gsl-2.7) fedpkg --release fc34 local but I get Traceback (most recent call last): File "/usr/bin/fedpkg", line 33, in <module> sys.exit(load_entry_point('fedpkg==1.40', 'console_scripts', 'fedpkg')()) File "/usr/bin/fedpkg", line 25, in importlib_load_entry_point return next(matches).load() File "/usr/lib64/python3.9/importlib/metadata.py", line 77, in load module = import_module(match.group('module')) File "/usr/lib64/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 680, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 855, in exec_module File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "/usr/lib/python3.9/site-packages/fedpkg/__init__.py", line 12, in <module> import pyrpkg File "/usr/lib/python3.9/site-packages/pyrpkg/__init__.py", line 47, in <module> from pyrpkg.lookaside import CGILookasideCache File "/usr/lib/python3.9/site-packages/pyrpkg/lookaside.py", line 23, in <module> import pycurl ImportError: pycurl: libcurl link-time version (7.64.1) is older than compile-time version (7.75.0)
Can I easy fix this issue?
Thanks
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com Laboratoire interdisciplinaire Carnot de Bourgogne 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE Tel: +33 (0)380395988 | | Room# D114A =========================================================================== _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
On 2021-06-19 2:00 p.m., Patrick Dupre wrote:
I do not think so. I downloaded
https://www.gnu.org/software/gsl/gsl-latest.tgz (gsl-2.7)
I thought that fedpkg works with a clone of the git repo for a fedora package. Is that what you are doing?
That isn't going to work. You need the extra files from the repo to use fedpkg. A possibly easier method would be to get the current source file (dnf download --source gsl), install it as your user, edit things as necessary and use rpmbuild to create a new rpm.
This what I have done.
extrated the gsl.spec from gsl-2.7.tgz edited it to set the version (2.7) run rpmbuild -bb gsl.spec It started to work, but finally stop with * Examples: * - to ignore standard and empty RPATHs, execute 'rpmbuild' like * $ QA_RPATHS=$(( 0x0001|0x0010 )) rpmbuild my-package.src.rpm * - to check existing files, set $RPM_BUILD_ROOT and execute check-rpaths like * $ RPM_BUILD_ROOT=<top-dir> /usr/lib/rpm/check-rpaths * ******************************************************************************* ERROR 0001: file '/usr/bin/gsl-histogram' contains a standard rpath '/usr/lib64' in [/usr/lib64] ERROR 0001: file '/usr/bin/gsl-randist' contains a standard rpath '/usr/lib64' in [/usr/lib64] error: Bad exit status from /var/tmp/rpm-tmp.rVEtxu (%install)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.rVEtxu (%install)
https://www.gnu.org/software/gsl/gsl-latest.tgz (gsl-2.7)
I thought that fedpkg works with a clone of the git repo for a fedora package. Is that what you are doing?
That isn't going to work. You need the extra files from the repo to use fedpkg. A possibly easier method would be to get the current source file (dnf download --source gsl), install it as your user, edit things as necessary and use rpmbuild to create a new rpm. _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
This information is probably missing:
/usr/lib/rpm/sepdebugcrcfix: Updated 4 CRC32s, 0 CRC32s did match. 12830 blocks + '[' '%{buildarch}' = noarch ']' + QA_CHECK_RPATHS=1 + case "${QA_CHECK_RPATHS:-}" in + /usr/lib/rpm/check-rpaths ******************************************************************************* * * WARNING: 'check-rpaths' detected a broken RPATH and will cause 'rpmbuild' * to fail. To ignore these errors, you can set the '$QA_RPATHS' * environment variable which is a bitmask allowing the values * below. The current value of QA_RPATHS is 0x0000. * * 0x0001 ... standard RPATHs (e.g. /usr/lib); such RPATHs are a minor * issue but are introducing redundant searchpaths without * providing a benefit. They can also cause errors in multilib * environments. * 0x0002 ... invalid RPATHs; these are RPATHs which are neither absolute * nor relative filenames and can therefore be a SECURITY risk * 0x0004 ... insecure RPATHs; these are relative RPATHs which are a * SECURITY risk * 0x0008 ... the special '$ORIGIN' RPATHs are appearing after other * RPATHs; this is just a minor issue but usually unwanted * 0x0010 ... the RPATH is empty; there is no reason for such RPATHs * and they cause unneeded work while loading libraries * 0x0020 ... an RPATH references '..' of an absolute path; this will break * the functionality when the path before '..' is a symlink * * * Examples: * - to ignore standard and empty RPATHs, execute 'rpmbuild' like * $ QA_RPATHS=$(( 0x0001|0x0010 )) rpmbuild my-package.src.rpm * - to check existing files, set $RPM_BUILD_ROOT and execute check-rpaths like * $ RPM_BUILD_ROOT=<top-dir> /usr/lib/rpm/check-rpaths * ******************************************************************************* ERROR 0001: file '/usr/bin/gsl-histogram' contains a standard rpath '/usr/lib64' in [/usr/lib64] ERROR 0001: file '/usr/bin/gsl-randist' contains a standard rpath '/usr/lib64' in [/usr/lib64] error: Bad exit status from /var/tmp/rpm-tmp.rVEtxu (%install)
Sent: Saturday, June 19, 2021 at 11:35 PM From: "Patrick Dupre" pdupre@gmx.com To: users@lists.fedoraproject.org Cc: users@lists.fedoraproject.org Subject: Re: fedpkg
This what I have done.
extrated the gsl.spec from gsl-2.7.tgz edited it to set the version (2.7) run rpmbuild -bb gsl.spec It started to work, but finally stop with
- Examples:
- to ignore standard and empty RPATHs, execute 'rpmbuild' like
- $ QA_RPATHS=$(( 0x0001|0x0010 )) rpmbuild my-package.src.rpm
- to check existing files, set $RPM_BUILD_ROOT and execute check-rpaths like
- $ RPM_BUILD_ROOT=<top-dir> /usr/lib/rpm/check-rpaths
ERROR 0001: file '/usr/bin/gsl-histogram' contains a standard rpath '/usr/lib64' in [/usr/lib64] ERROR 0001: file '/usr/bin/gsl-randist' contains a standard rpath '/usr/lib64' in [/usr/lib64] error: Bad exit status from /var/tmp/rpm-tmp.rVEtxu (%install)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.rVEtxu (%install)
https://www.gnu.org/software/gsl/gsl-latest.tgz (gsl-2.7)
I thought that fedpkg works with a clone of the git repo for a fedora package. Is that what you are doing?
That isn't going to work. You need the extra files from the repo to use fedpkg. A possibly easier method would be to get the current source file (dnf download --source gsl), install it as your user, edit things as necessary and use rpmbuild to create a new rpm. _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
On 2021-06-19 2:35 p.m., Patrick Dupre wrote:
This what I have done.
extrated the gsl.spec from gsl-2.7.tgz edited it to set the version (2.7) run rpmbuild -bb gsl.spec It started to work, but finally stop with
- Examples:
- to ignore standard and empty RPATHs, execute 'rpmbuild' like
- $ QA_RPATHS=$(( 0x0001|0x0010 )) rpmbuild my-package.src.rpm
- to check existing files, set $RPM_BUILD_ROOT and execute check-rpaths like
- $ RPM_BUILD_ROOT=<top-dir> /usr/lib/rpm/check-rpaths
ERROR 0001: file '/usr/bin/gsl-histogram' contains a standard rpath '/usr/lib64' in [/usr/lib64] ERROR 0001: file '/usr/bin/gsl-randist' contains a standard rpath '/usr/lib64' in [/usr/lib64] error: Bad exit status from /var/tmp/rpm-tmp.rVEtxu (%install)
You probably need the Fedora spec file, not the upstream one.
Yes,
How to I extract the .tgz (or the .spec) file from a src.rpm ?
On 2021-06-19 2:35 p.m., Patrick Dupre wrote:
This what I have done.
extrated the gsl.spec from gsl-2.7.tgz edited it to set the version (2.7) run rpmbuild -bb gsl.spec It started to work, but finally stop with
- Examples:
- to ignore standard and empty RPATHs, execute 'rpmbuild' like
- $ QA_RPATHS=$(( 0x0001|0x0010 )) rpmbuild my-package.src.rpm
- to check existing files, set $RPM_BUILD_ROOT and execute check-rpaths like
- $ RPM_BUILD_ROOT=<top-dir> /usr/lib/rpm/check-rpaths
ERROR 0001: file '/usr/bin/gsl-histogram' contains a standard rpath '/usr/lib64' in [/usr/lib64] ERROR 0001: file '/usr/bin/gsl-randist' contains a standard rpath '/usr/lib64' in [/usr/lib64] error: Bad exit status from /var/tmp/rpm-tmp.rVEtxu (%install)
You probably need the Fedora spec file, not the upstream one. _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
On Sat, Jun 19, 2021 at 4:01 PM Patrick Dupre pdupre@gmx.com wrote:
Yes,
How to I extract the .tgz (or the .spec) file from a src.rpm ?
If you run "rpm -i <name of spec file", it will unpack the src.rpm into ~/rpmbuild, with the spec file in ~/rpmbuild/SPECS and the source files in ~/rpmbuild/SOURCES.
Or you can look here to get the current spec file:
https://src.fedoraproject.org/rpms/gsl/tree/rawhide
On Jun 19, 2021, at 18:00, Patrick Dupre pdupre@gmx.com wrote:
How to I extract the .tgz (or the .spec) file from a src.rpm ?
You already have fedpkg. You can run
fedpkg co -a gsl
(Add a —branch f34 to get the Fedora 34 branch, or check it out manually with git)
And it will check out the branch in a directory called “gsl”. You can cd into that directory, change the spec, add the source tarball or whatever, and run “fedpkg mockbuild” to make it build the package using the current branch’s base. I do this all the time.
— Jonathan Billings