Opened 3 years ago

Last modified 3 years ago

#6148 new Bug

how to use the libraries in third-party/ instead of download them

Reported by: morph Owned by:
Priority: Normal Milestone: None Set
Component: Transmission Version: 2.92
Severity: Normal Keywords:
Cc:

Description

Hello, there are some libraries not available in Debian, f.e. dht but that library is available in third-party and still cmake tries to download it from github:

-- Could NOT find DHT (missing:  DHT_LIBRARY DHT_INCLUDE_DIR) 
-- Could NOT find UTP (missing:  UTP_LIBRARY UTP_INCLUDE_DIR) 
-- Could NOT find B64 (missing:  B64_LIBRARY B64_INCLUDE_DIR) 
[  1%] Creating directories for 'dht-cc379e406d'
[  1%] Performing download step (download, verify and extract) for 'dht-cc379e406d'
-- downloading...
     src='https://github.com/jech/dht/archive/cc379e406d.tar.gz'
     dst='/home/morph/deb/build-area/transmission-2.92/third-party/dht-cc379e406d/src/cc379e406d.tar.gz'
     timeout='none'
-- downloading... done
-- verifying file...
     file='/home/morph/deb/build-area/transmission-2.92/third-party/dht-cc379e406d/src/cc379e406d.tar.gz'
-- verifying file... done
-- extracting...
     src='/home/morph/deb/build-area/transmission-2.92/third-party/dht-cc379e406d/src/cc379e406d.tar.gz'
     dst='/home/morph/deb/build-area/transmission-2.92/third-party/dht-cc379e406d/src/dht-cc379e406d'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done

I've a bit of a trouble following all the cmake files, for example there is a cmake/FindDHT.cmake which seems relevant but i'm not sure if it's executed, so is it possible to specify some cmake parameters to make it use the library in third-party instead of downloading them (which is forbidden by the debian policy)?

thanks!!

Change History (1)

comment:1 Changed 3 years ago by mike.dld

Not currently possible, although I was anticipating this... Patches are welcome.

Note: See TracTickets for help on using tickets.