Opened 11 years ago
Closed 11 years ago
#43339 closed update (fixed)
Update arb to 6.0
Reported by: | mattcottrell | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | haspatch maintainer | Cc: | |
Port: | arb |
Description
This update is arb 6.0. The port now builds with clang and is compatible with Mavericks.
Attachments (5)
Change History (12)
Changed 11 years ago by mattcottrell
Attachment: | patch-ARB-arb.diff added |
---|
Changed 11 years ago by mattcottrell
Attachment: | patch-ARB-ARBDB.diff added |
---|
Changed 11 years ago by mattcottrell
Attachment: | patch-ARB-config.makefile.diff added |
---|
Changed 11 years ago by mattcottrell
Attachment: | patch-ARB-intro.fig.diff added |
---|
comment:1 follow-up: 2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 11 years ago by mattcottrell
Replying to ryandesign@…:
Thanks. Some remarks about your changes:
You've set the version field to 6.0, but it appears to actually be downloading version 6.0-rc1. You shouldn't deceive the user as to what version they're going to get. If this is 6.0-rc1, put 6.0-rc1 in the version field. We usually update ports to stable versions, not release candidates or other development releases. However if you as maintainer feel that 6.0-rc1 is more stable or more usable than the official latest stable release 5.5 then that's ok.
The Portfile now accurately reflects the release candidate status of this arb version. I've been in frequent contact with the upstream developers and they agree that 6.0 rc1 is a better option for users than the the old 5.5 version.
You've added a dependency on
port:glib2
. You should instead writepath:lib/pkgconfig/glib-2.0.pc:glib2
so that glib2-devel could satisfy the dependency.
Thanks for the correct syntax fort glib2.
You've added this block:
# https://trac.macports.org/ticket/33756 if {${configure.compiler} == "llvm-gcc-4.2"} { configure.compiler clang }The correct way to express this is:
compiler.blacklist *llvm-gcc-4.2
Thanks for the blacklist syntax.
This will blacklist both the Xcode and MacPorts versions of llvm-gcc and will use the next best compiler, which will most likely be a version of clang.
However, you should fix the ticket citation. #33756 is about clang not working; it says nothing about llvm-gcc-4.2 not working (quite the opposite, in fact).
You added this check:
#Adjusting configure flags for Clang on Lion (ticket #34545) if {${configure.compiler} == "clang"} { configure.args-append -CXX_FLAGS="-Wno-reserved-user-defined-literal -stdlib=libc++"Note that MacPorts may select a different clang compiler, i.e. one provided by MacPorts rather than one from Xcode. To target any version of clang, you should usually use:
if {[string match *clang* ${configure.compiler}]} {However, setting
-stdlib=libc++
is suspect. Have you read wiki:FAQ#libcpp? You cite #34545, but that's about kdevplatform, not arb, and the code in question, although it was added to kdevplatform 22 months ago, was subsequently changed.
I don't know why I included that Lion check. It must have crept in from old versions on my system.
A revised Portile.diff is attached.
comment:3 follow-up: 4 Changed 11 years ago by mf2k (Frank Schima)
The compiler.blacklist *llvm-gcc-4.2
line should not be placed inside the if {${configure.compiler} == "llvm-gcc-4.2"}
block. Just remove the if
statement.
comment:4 Changed 11 years ago by mattcottrell
Replying to macsforever2000@…:
The
compiler.blacklist *llvm-gcc-4.2
line should not be placed inside theif {${configure.compiler} == "llvm-gcc-4.2"}
block. Just remove theif
statement.
Thanks for the compiler blacklist help. Revised Portfile.diff is attached.
comment:5 follow-up: 6 Changed 11 years ago by mf2k (Frank Schima)
Note these issues:
$ port lint --nitpick ---> Verifying Portfile for arb Error: Unknown dependency: glib Warning: no license set ---> 1 errors and 1 warnings found.
Changed 11 years ago by mattcottrell
Attachment: | Portfile.diff added |
---|
Addresses license and unknown dependency issues
comment:6 Changed 11 years ago by mattcottrell
Replying to macsforever2000@…:
Note these issues:
$ port lint --nitpick ---> Verifying Portfile for arb Error: Unknown dependency: glib Warning: no license set ---> 1 errors and 1 warnings found.
Portfile now includes license info. The unknown dependency issue is resolved as well.
comment:7 Changed 11 years ago by mf2k (Frank Schima)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Version: | 2.2.1 |
Thanks. Some remarks about your changes:
You've set the version field to 6.0, but it appears to actually be downloading version 6.0-rc1. You shouldn't deceive the user as to what version they're going to get. If this is 6.0-rc1, put 6.0-rc1 in the version field. We usually update ports to stable versions, not release candidates or other development releases. However if you as maintainer feel that 6.0-rc1 is more stable or more usable than the official latest stable release 5.5 then that's ok.
You've added a dependency on
port:glib2
. You should instead writepath:lib/pkgconfig/glib-2.0.pc:glib2
so that glib2-devel could satisfy the dependency.You've added this block:
The correct way to express this is:
This will blacklist both the Xcode and MacPorts versions of llvm-gcc and will use the next best compiler, which will most likely be a version of clang.
However, you should fix the ticket citation. #33756 is about clang not working; it says nothing about llvm-gcc-4.2 not working (quite the opposite, in fact).
You added this check:
Note that MacPorts may select a different clang compiler, i.e. one provided by MacPorts rather than one from Xcode. To target any version of clang, you should usually use:
However, setting
-stdlib=libc++
is suspect. Have you read wiki:FAQ#libcpp? You cite #34545, but that's about kdevplatform, not arb, and the code in question, although it was added to kdevplatform 22 months ago, was subsequently changed.