Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 951525 - net-libs/nghttp2: switch to autotools for build (to avoid circular dependency with net-misc/curl, dev-build/cmake)
Summary: net-libs/nghttp2: switch to autotools for build (to avoid circular dependency...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on: 951526
Blocks:
  Show dependency tree
 
Reported: 2025-03-18 00:01 UTC by Sam James
Modified: 2025-03-18 00:38 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-18 00:01:35 UTC
Hi!

Both nghttp2 and nghttp3 can be built with autotools rather than CMake because CMake itself depends on those.

Now that net-misc/curl defaults to +http2 +http3, this shows up as a circular dependency more often:

    (net-misc/curl-8.11.1-r2:0/0::gentoo, ebuild scheduled for merge) depends on
     (net-libs/nghttp3-1.7.0:0/0::gentoo, ebuild scheduled for merge) (buildtime)
      (dev-build/cmake-3.31.5:0/0::gentoo, ebuild scheduled for merge) (buildtime)
       (net-misc/curl-8.11.1-r2:0/0::gentoo, ebuild scheduled for merge) (buildtime)

voyageur has already ACKed me switching nghttp2 back to autotools, just filing this for completeness.
Comment 1 Larry the Git Cow gentoo-dev 2025-03-18 00:28:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7716d6ed1fbff2e7c27618aa2f7d24bc748f7d1

commit a7716d6ed1fbff2e7c27618aa2f7d24bc748f7d1
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-03-17 23:56:52 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-18 00:27:39 +0000

    net-libs/nghttp2: switch back to autotools, rather than cmake
    
    Naive first pass based on the live ebuild from 3a38f9b245e674722d5d58dfbb6baafca2b26975
    (live ebuild was done in subsequent commit).
    
    We need to use autotools rather than CMake here because of a circular
    dependency (ditto nghttp2):
    ```
    (net-misc/curl-8.11.1-r2:0/0::gentoo, ebuild scheduled for merge) depends on
     (net-libs/nghttp3-1.7.0:0/0::gentoo, ebuild scheduled for merge) (buildtime)
      (dev-build/cmake-3.31.5:0/0::gentoo, ebuild scheduled for merge) (buildtime)
       (net-misc/curl-8.11.1-r2:0/0::gentoo, ebuild scheduled for merge) (buildtime)
    ```
    
    I've taken the opportunity to add a live ebuild template to allow
    easier syncing. I'm going to make some followup changes to deps to clean
    them up a bit (I think, needs checking) but I want to do that separately
    as I want to stabilise this version quickly.
    
    Bug: https://bugs.gentoo.org/899568
    Closes: https://bugs.gentoo.org/951525
    Signed-off-by: Sam James <sam@gentoo.org>

 net-libs/nghttp2/nghttp2-1.65.0-r1.ebuild | 68 +++++++++++++++++++++++++++++
 net-libs/nghttp2/nghttp2-9999.ebuild      | 71 +++++++++++++++++--------------
 2 files changed, 108 insertions(+), 31 deletions(-)
Comment 2 Larry the Git Cow gentoo-dev 2025-03-18 00:31:19 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=365690cfb496e95ed743c7569f53120ba52132aa

commit 365690cfb496e95ed743c7569f53120ba52132aa
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-03-18 00:30:21 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-18 00:30:21 +0000

    net-libs/nghttp2: add comment wrt circular dep
    
    Bug: https://bugs.gentoo.org/951525
    Signed-off-by: Sam James <sam@gentoo.org>

 net-libs/nghttp2/nghttp2-1.65.0-r1.ebuild | 2 ++
 net-libs/nghttp2/nghttp2-9999.ebuild      | 2 ++
 2 files changed, 4 insertions(+)