Please describe the problem.
Attempting to use git-annex addurl on Android 9 (Pixel 3a) fails with "ConnectionFailure Network.BSD.getProtocolByName: does not exist (no such protocol name: tcp)"
To be clear, this is the installed the current way, inside of Termux. Not the obsolete apk.
# If you can, paste a complete transcript of the problem occurring here.
# If the problem is with the git-annex assistant, paste in .git/annex/daemon.log
$ git-annex addurl --file "Thermopen Mk4.pdf" "http://www.thermoworks.com/pdf/thermapen_mk4_operating_instructions_a.pdf"
addurl http://www.thermoworks.com/pdf/thermapen_mk4_operating_instructions_a.pdf
download failed: ConnectionFailure Network.BSD.getProtocolByName: does not exist (no such protocol name: tcp)
failed
git-annex: addurl: 1 failed
$ git-annex version
git-annex version: 7.20190508-g8b44548d0
build flags: Assistant Webapp Pairing S3 WebDAV Inotify DBus DesktopNotify TorrentParser MagicMime Feeds Testsuite
dependency versions: aws-0.20 bloomfilter-2.0.1.0 cryptonite-0.25 DAV-1.3.3 feed-1.0.0.0 ghc-8.4.4 http-client-0.5.13.1 persistent-sqlite-2.8.2 torrent-10000.1.1 uuid-1.3.13 yesod-1.6.0
key/value backends: SHA256E SHA256 SHA512E SHA512 SHA224E SHA224 SHA384E SHA384 SHA3_256E SHA3_256 SHA3_512E SHA3_512 SHA3_224E SHA3_224 SHA3_384E SHA3_384 SKEIN256E SKEIN256 SKEIN512E SKEIN512 BLAKE2B256E BLAKE2B256 BLAKE2B512E BLAKE2B512 BLAKE2B160E BLAKE2B160 BLAKE2B224E BLAKE2B224 BLAKE2B384E BLAKE2B384 BLAKE2S256E BLAKE2S256 BLAKE2S160E BLAKE2S160 BLAKE2S224E BLAKE2S224 BLAKE2SP256E BLAKE2SP256 BLAKE2SP224E BLAKE2SP224 SHA1E SHA1 MD5E MD5 WORM URL
remote types: git gcrypt p2p S3 bup directory rsync web bittorrent webdav adb tahoe glacier ddar hook external
operating system: linux aarch64
supported repository versions: 5 7
upgrade supported from repository versions: 0 1 2 3 4 5 6
local repository version: 7
# End of transcript or log.
Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders)
Yep, I continue to use git-annex a bunch of places. And this bug isn't a huge deal, wget followed by add worked fine.
It's looking for /etc/protocols. May be that termux provides the same file in some other location.
It would be difficult to make the termux package use it if so, since it's reusing git-annex that was compiled for a standard Linux system. I don't think that libc provides a way to make getprotobyname read a different file, other than
LD_PRELOAD
open hacks.