[MacPorts] #45334: ledger @ 3.1.0 upgrade
#45334: ledger @ 3.1.0 upgrade -----------------------+-------------------------------- Reporter: mgrimes@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Keywords: | Port: ledger -----------------------+-------------------------------- There have been a number of ledger releases this year in the v3 series. This patch updates to the current version (3.1). The build process has changed and files are now distributed through github. It seems to have an "interesting" build process that uses a custom build tool (acprep) and submodules to pull in certain (relatively minimal) dependencies. It also needs compiler support for c++11. I've never dealt with the compiler issues before. I've added a compiler.whitelist to the PortFile, but I'm not certain this is adequate. Thanks, Mark -- Ticket URL: <https://trac.macports.org/ticket/45334> MacPorts <http://www.macports.org/> Ports system for OS X
#45334: ledger @ 3.1.0 upgrade ------------------------+---------------------- Reporter: mgrimes@… | Owner: johnw@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: ledger | ------------------------+---------------------- Changes (by mf2k@…): * keywords: => haspatch * cc: johnw@… (removed) * version: 2.3.1 => * owner: macports-tickets@… => johnw@… Comment: The {{{revision}}} line should be deleted because it starts at 0 when increasing the version and that is the default value. -- Ticket URL: <https://trac.macports.org/ticket/45334#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#45334: ledger @ 3.1.0 upgrade ------------------------+---------------------- Reporter: mgrimes@… | Owner: johnw@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: ledger | ------------------------+---------------------- Comment (by mgrimes@…): I've removed the `revision` line. It appears that there is some issue with gcc 4.7 that causes a segfault. Seems to work ok with 4.8. I've modified the PortFile to reflect. I've also shuffled some dependencies from depends_lib to depends_build. -- Ticket URL: <https://trac.macports.org/ticket/45334#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#45334: ledger @ 3.1.0 upgrade ------------------------+---------------------- Reporter: mgrimes@… | Owner: johnw@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: ledger | ------------------------+---------------------- Comment (by larryv@…): If C++11 is required, the port must use the system’s libc++abi runtime and thus requires Clang. The MacPorts GCCs should not be used. -- Ticket URL: <https://trac.macports.org/ticket/45334#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#45334: ledger @ 3.1.0 upgrade ------------------------+---------------------- Reporter: mgrimes@… | Owner: johnw@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: ledger | ------------------------+---------------------- Comment (by jwiegley@…): Note that `acprep` is only for development and building directly from GitHub. Otherwise, you should be using cmake and either make or ninja. -- Ticket URL: <https://trac.macports.org/ticket/45334#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#45334: ledger @ 3.1.0 upgrade ------------------------+---------------------- Reporter: mgrimes@… | Owner: johnw@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: ledger | ------------------------+---------------------- Comment (by mgrimes@…): Larry, I was unable to get it to compile with the system compiler. mp- gcc-48 is working for me. John, both homebrew and archlinux use acprep for some/all of the build. I don't have the experience with cmake to work around it and there is no released version that builds with standard steps. I'd need some help if we need to address either at those issues. -- Ticket URL: <https://trac.macports.org/ticket/45334#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#45334: ledger @ 3.1.0 upgrade ------------------------+---------------------- Reporter: mgrimes@… | Owner: johnw@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: ledger | ------------------------+---------------------- Comment (by jwiegley@…): I think if you just run acprep with the verbose switch on, it will show you what it's doing. I think it's just "cmake" followed by "make", in the end. -- Ticket URL: <https://trac.macports.org/ticket/45334#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#45334: ledger @ 3.1.0 upgrade ------------------------+---------------------- Reporter: mgrimes@… | Owner: johnw@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: ledger | ------------------------+---------------------- Comment (by larryv@…): Replying to [comment:5 mgrimes@…]:
Larry, I was unable to get it to compile with the system compiler. mp-gcc-48 is working for me.
I can’t surmise why the system compiler doesn’t work, but MacPorts’ GCCs //will not work//. It may compile, but you almost certainly will encounter bizarre runtime problems. Software compiled with MacPorts’ GCCs uses a different C++ runtime than software compiled with Clang, and mixing two different runtimes in the same process leads to bad places. The port seems to link with our Boost at least, which will be a non- starter if you insist on using libsupc++. Our Boost is linked against the system libc++abi. -- Ticket URL: <https://trac.macports.org/ticket/45334#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts