Skip to content

build: configure using depends by default if config.site exists  #16692

Closed

Description

@fanquake

Mentioned by ryanofsky in #16691:

Also, I think it would be a good idea that if a depends/${host}/share/config.site file exists, bitcoin configure script would just use depends/$(host) as the default --prefix value instead of /usr/local.

This way using depends would just require running 'make -C depends; ./configure; make` without needing to figure out the host triple or look at depends output.

Activity

  1. hebasto commented on Aug 23, 2019

    @hebasto
    Member

    #14959 could be related:

    Why can't ./configure without any options find out self-compiled dependencies in the depends/ directory?

  2. hebasto commented on Jan 16, 2020

    @hebasto
    Member

    If this feature will be implemented what could be the way to force build against system packages?

  3. practicalswift commented on Jan 20, 2020

    @practicalswift
    Contributor

    Concept ACK

  4. ryanofsky commented on Jan 21, 2020

    @ryanofsky
    Contributor

    If this feature will be implemented what could be the way to force build against system packages?

    Maybe an --enable-depends/--disable-depends configure option where no would disable use of depends config.site settings, yes would require them, and auto would use them if they exist for the current build/host pair

  5. willcl-ark commented on May 2, 2023

    @willcl-ark
    Member

    @fanquake @hebasto mentions here that:

    I no longer consider this feature as a useful one due to the case, which is actually an everyday workflow for me, when the user has depends built for many hosts simultaneously.

    Intuitively I would estimate the number of users building depends for multiple hosts to be significantly less than the number building for their own host (especially since we have #26834).

    IMO ideally the easiest option should be geared towards new users who should only have to run make -C depends; ./configure; make to get a working version of Bitcoin Core with all the dependencies, rather than requiring them to modify the build options on the command line or export variables etc.

    @hebasto might it not make sense to detect your host triplet and build with depends automatically only if that host triplet is found? In any other case you are cross-compiling and will be setting CONFIG_SITE anyway. ISTM that this would still work with @ryanofsky's suggestion of an auto default mode for a --en/disable-depends flag

  6. locked and limited conversation to collaborators on Jul 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions