Skip to content

Commit

Permalink
macports: keep the pin on libomp 11.1.0, although issue closed on LLV…
Browse files Browse the repository at this point in the history
…M side

llvm hav moved to github issues, here's the corresponding github issue:
llvm/llvm-project#49923
which was closed because they couldn't repro.
see also microsoft/LightGBM#4229 (comment)
let us keep the pin until someone confirms it's fixed
  • Loading branch information
devernay committed Jun 13, 2022
1 parent f3241ff commit eda1666
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 23 deletions.
20 changes: 10 additions & 10 deletions tools/MacPorts/lang/libomp/Portfile.orig
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,20 @@ subport libomp-devel {}

if {${os.platform} eq "darwin" && ${configure.cxx_stdlib} ne "libstdc++"} {
if { ${subport} eq "libomp-devel" } {
version 13.0.1
checksums rmd160 ca94e49b654082edf4444b9fc089dfb8c6facb1a \
sha256 6b79261371616c31fea18cd3ee1797c79ee38bcaf8417676d4fa366a24c96b4f \
size 1139440
version 14.0.4
checksums rmd160 75ad369911d553c6770420b9e6910ca5aad26f72 \
sha256 d4b627e2668c3c1001b6c772297273dc67b42f2deec934a59650a55731f8d411 \
size 1205512
livecheck.regex {"llvmorg-([0-9.rc-]+)".*}
} else {
version 13.0.1
checksums rmd160 ca94e49b654082edf4444b9fc089dfb8c6facb1a \
sha256 6b79261371616c31fea18cd3ee1797c79ee38bcaf8417676d4fa366a24c96b4f \
size 1139440
version 14.0.4
checksums rmd160 75ad369911d553c6770420b9e6910ca5aad26f72 \
sha256 d4b627e2668c3c1001b6c772297273dc67b42f2deec934a59650a55731f8d411 \
size 1205512
livecheck.regex {"llvmorg-([0-9.]+)".*}
}

revision 1
revision 0

if {${os.major} <= 12} {
# kmp_alloc.c includes <atomic> but libc++ is not the default on
Expand Down Expand Up @@ -153,7 +153,7 @@ post-destroot {

set fpath ${worksrcpath}/${rtpath}
file copy ${fpath}/README.txt ${fpath}/../LICENSE.TXT \
${fpath}/../www ${instdest}/share/doc/libomp/
${instdest}/share/doc/libomp/

}

Expand Down
28 changes: 15 additions & 13 deletions tools/MacPorts/lang/libomp/Portfile.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- Portfile.orig 2022-04-05 16:09:10.000000000 -0700
+++ Portfile 2022-04-05 16:14:29.000000000 -0700
--- Portfile.orig 2022-06-13 13:19:08.000000000 -0700
+++ Portfile 2022-06-13 13:21:21.000000000 -0700
@@ -1,7 +1,7 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

Expand All @@ -13,21 +13,21 @@

if {${os.platform} eq "darwin" && ${configure.cxx_stdlib} ne "libstdc++"} {
if { ${subport} eq "libomp-devel" } {
- version 13.0.1
- checksums rmd160 ca94e49b654082edf4444b9fc089dfb8c6facb1a \
- sha256 6b79261371616c31fea18cd3ee1797c79ee38bcaf8417676d4fa366a24c96b4f \
- size 1139440
- version 14.0.4
- checksums rmd160 75ad369911d553c6770420b9e6910ca5aad26f72 \
- sha256 d4b627e2668c3c1001b6c772297273dc67b42f2deec934a59650a55731f8d411 \
- size 1205512
- livecheck.regex {"llvmorg-([0-9.rc-]+)".*}
+ version 11.1.0
+ checksums rmd160 8869b60844901466aed4e462ae8dac831bf519c3 \
+ sha256 d187483b75b39acb3ff8ea1b7d98524d95322e3cb148842957e9b0fbb866052e \
+ size 971628
+ livecheck.regex {"llvmorg-([0-9.rc-]+)".*}
} else {
- version 13.0.1
- checksums rmd160 ca94e49b654082edf4444b9fc089dfb8c6facb1a \
- sha256 6b79261371616c31fea18cd3ee1797c79ee38bcaf8417676d4fa366a24c96b4f \
- size 1139440
- version 14.0.4
- checksums rmd160 75ad369911d553c6770420b9e6910ca5aad26f72 \
- sha256 d4b627e2668c3c1001b6c772297273dc67b42f2deec934a59650a55731f8d411 \
- size 1205512
- livecheck.regex {"llvmorg-([0-9.]+)".*}
+ version 11.1.0
+ checksums rmd160 8869b60844901466aed4e462ae8dac831bf519c3 \
Expand All @@ -36,7 +36,7 @@
+ livecheck.regex {"llvmorg-([0-9.]+)".*}
}

- revision 1
- revision 0
-
if {${os.major} <= 12} {
# kmp_alloc.c includes <atomic> but libc++ is not the default on
Expand Down Expand Up @@ -145,12 +145,14 @@
foreach p {libiomp5.dylib libomp.dylib libgomp.dylib} {
system -W ${instdest}/lib/ \
"ln -s libomp/${p}"
@@ -152,7 +143,7 @@
@@ -152,8 +143,8 @@
}

set fpath ${worksrcpath}/${rtpath}
- file copy ${fpath}/README.txt ${fpath}/../LICENSE.TXT \
- ${instdest}/share/doc/libomp/
+ file copy ${fpath}/README.txt ${fpath}/../LICENSE.txt \
${fpath}/../www ${instdest}/share/doc/libomp/
+ ${fpath}/../www ${instdest}/share/doc/libomp/

}

0 comments on commit eda1666

Please sign in to comment.