Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new SRPM method: UPT packaging tool #1092

Open
fedora-copr-github-bot opened this issue Nov 17, 2022 · 1 comment
Open

Add new SRPM method: UPT packaging tool #1092

fedora-copr-github-bot opened this issue Nov 17, 2022 · 1 comment
Labels
RFE Enhancement, feature requests

Comments

@fedora-copr-github-bot
Copy link
Collaborator

fedora-copr-github-bot commented Nov 17, 2022

Original issue: https://pagure.io/copr/copr/issue/1092
Opened: 2019-11-04 08:22:50
Opened by: praiskup

UPT is now in Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=1756899

@fedora-copr-github-bot fedora-copr-github-bot added the RFE Enhancement, feature requests label Nov 22, 2022
@praiskup
Copy link
Member

Tested now (package is in Fedora):

$ upt package -f pypi -b fedora argparse-manpage
[INFO    ] [Backend] Creating directory /home/praiskup/python-argparse-manpage
[INFO    ] [Backend] Writing spec file to /home/praiskup/python-argparse-manpage/argparse-manpage.spec
[INFO    ] [Backend] Writing /home/praiskup/python-argparse-manpage/sources

$ cd /home/praiskup/python-argparse-manpage

$ spectool -S *spec --get-files
Downloading: https://files.pythonhosted.org/packages/source/a/argparse-manpage/argparse-manpage-4.tar.gz
100% of  51.3 KiB |##################################################################################################################################################################################| Elapsed Time: 0:00:00 Time:  0:00:00
Downloaded: argparse-manpage-4.tar.gz

$ rpmbuild --define '_sourcedir /home/praiskup/python-argparse-manpage' --define '_rpmdir /home/praiskup/rh/projects/copr/copr/python-argparse-manpage' --define '_builddir /home/praiskup/rh/projects/copr/copr/python-argparse-manpage' --define '_specdir /home/praiskup/rh/projects/copr/copr/python-argparse-manpage' --define '_srcrpmdir /home/praiskup/rh/projects/copr/copr/python-argparse-manpage' --define '_source_filedigest_algorithm md5' --define '_binary_filedigest_algorithm md5' --define 'dist %nil' -bs argparse-manpage.spec
setting SOURCE_DATE_EPOCH=1674518400
Wrote: /home/praiskup/rh/projects/copr/copr/python-argparse-manpage/python-argparse-manpage-4-1.src.rpm

SRPM is generated, but mock build fails (might be a PyPI packaging issue):

Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.2mFQ4p
+ umask 022
+ cd /builddir/build/BUILD
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
+ export CFLAGS
+ CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules'
+ export FCFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes'
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd argparse-manpage-4
+ sleep 1
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes'
+ /usr/bin/python2 setup.py build '--executable=/usr/bin/python2 -s'
Traceback (most recent call last):
  File "setup.py", line 3, in <module>
    from setuptools import setup, find_packages
ImportError: No module named setuptools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFE Enhancement, feature requests
Projects
Status: Someday in future
Development

No branches or pull requests

2 participants