-
Notifications
You must be signed in to change notification settings - Fork 191
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
libllhttp.pc.in is missing in release/v6.0.7 #163
Comments
This is probably fixed by the recent re-release of v6.0.7 (originally the main branch was accidentally used for the release instead of he release branch) |
No, the source code link for the release still points to https://github.com/nodejs/llhttp/archive/refs/tags/v6.0.7.tar.gz which is missing the pkg-config file. |
The 6.0.7 release has definitely changed (due to my intervention) Previously it was a 6 MB incorrect file based the main branch, now it is replaced by a correct 40Kb file based on release branch, with the same but updated contents as 6.0.6. I dont think either should have a pkg-config file
|
Without the pkg-config file, building the package from the CmakeLists.txt does not work:
This tarball is not functional as-is for packaging purposes. Additionally, the CMakeLists.txt still has |
attn: @mcollina @sgallagher Looking more at this , the section "configure file" at line 41 of CMakelists.txt should be removed: Its not appropriate for the "release" (just the "main" branch). The error is not a missing file, but an incorrect dependency on that file in CMakeLists.txt. Remove this, then things build. remove these lines from CMakeLists.txt at line 41
Also the name of the release directory should probably be llhttp-release-v6.0.7 for consistency, not llhttp-6.0.7, and the file should have "release" in its name: |
The .pc file is actually desirable to have, as it makes life easier for other projects that want to link against libllhttp. |
I agree: in that case its a new feature for the v6.0.7 release that has not properly been integrated |
Thanks for reporting! Would you like to send a Pull Request to address this issue? |
here is the missing file in main that needed I verified that simply adding it to release branch allows a build The issue of the directory name with "-release" in it is more complicated. |
It looks like the main branch has the script to correctly create the release including libllhttp.pc.in |
I dont have installed whatever it takes to build main, but I think "make all" or "make release" should produce a directory "release" and should contain libllhttp.pc.in, unless the Makefile is broken. The commit for this was by @JackLiar |
v6.0.7 was retagged due to #166. |
FreeBSD port (www/llhttp) uses the source code from tag release/v6.0.7 which does not have libllhttp.pc.in. |
@mcollina @JackLiar either (1) the relevant entries should be removed from CMakeLists.txt or (2) liblhttp.pc.in should be added. either way, a further adjustment to the release would seem to be needed. |
I don't have any idea on what to do, or what's the use case. I would need step-by-step instructions on how to fix this. |
best answer: ask @indutny for fix (2) (the best) add the missing file libhttp.pc.in to the release branch: in some directory now do a new release of v6.0.7 as v6.0.7a (from the release branch) I'm not sure of the github procedure to release from the release branch (I don't use a release branch, and release from the main branch). The release should have "assets" llhttp-release-v6.0.7a.zip" and "llhttp-release-v6.0.7a.tar.gz" The 6.0.6 release has all this correctly, but the 6.0.7 release just was in a directory llhttp-6.0.7. Whatever was done for The llhttp release process might be using an automated procedure "git-flow .." which I don't use, and don't understand. Best thing is to ask @indutny if he is still involved. |
great! Now it builds correctly! |
Unfortunately, I found another error: It should be 6.0.7a ( or 6.0.7b if you make a second re-release to fix it) Looks like you need to edit CMakeLists.txt in the release branch when doing a release. |
and also edit CMakeLists.txt in the main branch to fix it there too. |
Please send a PR that automate all of this, it's kind of an impossible goal to meet by hand. There is already a script https://github.com/nodejs/llhttp/blob/main/Makefile#L45 Which is what I execute. I welcome a PR that enables us to release this as it would work for you. |
released, hopefully should be good |
Unfortunately, cmake doesnt like the VERSION 6.0.7b in CMakeLists.txtt, so it doesnt build. cmake accepts VERSION 6.0.7.1 (numbers) , appropriate for a minor release of 6.0.7. The best would be either to do it again with a tag 6.0.7.1 or just redo it as 6.0.8 Sorry! |
v6.0.8 is out and it should be good to go |
@mcollina @sgallagher Now builds fine! Yes its good to go. The generated libllhttp.pc file seems correct. You still need to post 6.0.8 to the "Releases" sidebar on git hub by releasing 6.0.8 (its still showing 6.0.7b as latest) |
The build log is as follows:
The text was updated successfully, but these errors were encountered: