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

Unable to build RPM package #3217

Closed
fabaff opened this issue Aug 26, 2018 · 7 comments
Closed

Unable to build RPM package #3217

fabaff opened this issue Aug 26, 2018 · 7 comments
Labels

Comments

@fabaff
Copy link

fabaff commented Aug 26, 2018

Long story short

On Fedora 30 the source shipped as aiohttp-3.4.0.tar.gz leads to a build error which could be related to the changes around nodejs/http-parser in #3209.

Expected behaviour

Able to build the package.

Actual behaviour

creating build/temp.linux-x86_64-3.7/vendor/http-parser
gcc -pthread -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DHTTP_PARSER_STRICT=0 -I/usr/include/python3.7m -c aiohttp/_http_parser.c -o build/temp.linux-x86_64-3.7/aiohttp/_http_parser.o
aiohttp/_http_parser.c:590:10: fatal error: ../vendor/http-parser/http_parser.h: No such file or directory
 #include "../vendor/http-parser/http_parser.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1

Full log: https://kojipkgs.fedoraproject.org//work/tasks/6055/29286055/build.log

Steps to reproduce

  • On the Fedora build server: fedpkg scratch-build
  • Local: fedpkg local

Your environment

Fedora 30

@webknjaz
Copy link
Member

Your archive is missing http-parser submodule. Ask the packager to include it as well.

@fabaff
Copy link
Author

fabaff commented Aug 27, 2018

Our builds are done with the archive which is publish under releases.

Worked till 3.3.2.

@asvetlov
Copy link
Member

Github archive is autogenerated github snapshot, the project does nothing with it.
The official release tarball is hosted on PyPI: https://pypi.org/project/aiohttp/#files

@webknjaz
Copy link
Member

@fabaff We might add some dists to GitHub Releases in future, but currently, please don't rely on them now. It's just git archives, which don't include Git submodules.

@fabaff
Copy link
Author

fabaff commented Aug 27, 2018

Thanks for the quick responses. We will switch back to the archives which are available at PyPI.

As a sidenote: The bundling of http-parser is an issue in regard to comply with the guidelines for Fedora/EPEL packages. This is another point to address but I will open a new issue if needed to not pollute this one.

@asvetlov
Copy link
Member

Yes, better to have one issue for one problem

@lock
Copy link

lock bot commented Oct 28, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs.
If you feel like there's important points made in this discussion, please include those exceprts into that [new issue].
[new issue]: https://github.com/aio-libs/aiohttp/issues/new

@lock lock bot added the outdated label Oct 28, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants