Opened 2 years ago

Last modified 2 years ago

#64477 new defect

git-annex fails to build with getProtocolNumber compile error message

Reported by: hmeine (Hans Meine) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: git-annex

Description

port install git-annex fails for me (I never installed it before, so I cannot give any details on changes between versions or so) on Big Sur 11.6.2.

The compile error seems to refer to some Haskell module Network.BSD that no longer supports the getProtocolNumber used by git-annex:

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_git-annex/git-annex/work
/git-annex-7.20190819/Utility/Url.hs:59:1: warning: [-Wdeprecations]
:info:build     Module ‘Network.BSD’ is deprecated:
:info:build       This platform dependent module is no longer supported.
:info:build    |
:info:build 59 | import Network.BSD (getProtocolNumber)
:info:build    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_git-annex/git-annex/work
/git-annex-7.20190819/Utility/Url.hs:607:26: warning: [-Wdeprecations]
:info:build     In the use of ‘getProtocolNumber’ (imported from Network.BSD):
:info:build     Deprecated: "This platform dependent module is no longer supported."
:info:build     |
:info:build 607 |                 proto <- getProtocolNumber "tcp"
:info:build     |                          ^^^^^^^^^^^^^^^^^

I got a few hits for the same error message, often on ARM architectures, but no related discussion or bug reports. I am also not familiar with Haskell.

Attachments (1)

Portfile (1.2 KB) - added by hmeine (Hans Meine) 2 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Port: git-annex added

Maybe if we update the port it will fix this.

$ port livecheck git-annex
git-annex seems to have been updated (port version: 7.20190819, new version: 8.20211231)

comment:2 Changed 2 years ago by hmeine (Hans Meine)

Sounds plausible. I am not familiar enough with port to do that myself, though. (With Gentoo, I was used to running modified "ebuilds", but with MacPorts, I never became so close to the development side of it.)

comment:3 Changed 2 years ago by hmeine (Hans Meine)

Ok, I managed to locally test this, by

  1. editing the Portfile pointed to by port file git-annex,
  2. sudo port fetch git-annex,
  3. sudo port bump git-annex to update the checksums, and
  4. finally sudo port install git-annex again.

Step 2 might have been optional (did not try), but overall I call this a success; at least the installation finished and the git annex command becomes available.

The Portfile lists no additional dependencies or so, so I don't think any further action than this version bumping will be necessary.

comment:4 Changed 2 years ago by hmeine (Hans Meine)

In the meantime, I also used git-annex quite a lot, and it seems to work fine, so I would really suggest to bump this.

Let me know if I can somehow help with that.

comment:5 Changed 2 years ago by hmeine (Hans Meine)

Today, I followed my own instructions from above on another machine (step 2 was indeed optional), but there's now also version 10.20220127 (which port livecheck revealed). I will attach my Portfile in case this helps to get fix into the repo.

Changed 2 years ago by hmeine (Hans Meine)

Attachment: Portfile added
Note: See TracTickets for help on using tickets.