Skip to content

Commit

Permalink
MacPorts/libomp: pinning to version 11 because of macOS-specific bug
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Oct 26, 2021
1 parent 30f2da6 commit 6ccb869
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 20 deletions.
20 changes: 10 additions & 10 deletions tools/MacPorts/lang/libomp/Portfile.orig
Original file line number Diff line number Diff line change
@@ -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

PortSystem 1.0
PortGroup cmake 1.0
PortGroup cmake 1.1
if {${os.major} <= 17} {
PortGroup muniversal 1.0
}
Expand Down Expand Up @@ -30,16 +30,16 @@ subport libomp-devel {}

if {${os.platform} eq "darwin" && ${configure.cxx_stdlib} ne "libstdc++"} {
if { ${subport} eq "libomp-devel" } {
version 12.0.1
checksums rmd160 0c34a8e868b7fd831cf8f4d2413b1084643016c2 \
sha256 60fe79440eaa9ebf583a6ea7f81501310388c02754dbe7dc210776014d06b091 \
size 1081308
version 13.0.0
checksums rmd160 1ecfcc0f1d18e208f99ce8390281ed6b5f92a28e \
sha256 4930ae7a1829a53b698255c2c6b6ee977cc364b37450c14ee458793c0d5e493c \
size 1139488
livecheck.regex {"llvmorg-([0-9.rc-]+)".*}
} else {
version 12.0.1
checksums rmd160 0c34a8e868b7fd831cf8f4d2413b1084643016c2 \
sha256 60fe79440eaa9ebf583a6ea7f81501310388c02754dbe7dc210776014d06b091 \
size 1081308
version 13.0.0
checksums rmd160 1ecfcc0f1d18e208f99ce8390281ed6b5f92a28e \
sha256 4930ae7a1829a53b698255c2c6b6ee977cc364b37450c14ee458793c0d5e493c \
size 1139488
livecheck.regex {"llvmorg-([0-9.]+)".*}
}

Expand Down Expand Up @@ -139,7 +139,7 @@ post-destroot {
}

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

}
Expand Down
38 changes: 28 additions & 10 deletions tools/MacPorts/lang/libomp/Portfile.patch
Original file line number Diff line number Diff line change
@@ -1,24 +1,33 @@
--- Portfile.orig 2021-10-01 12:42:40.000000000 -0700
+++ Portfile 2021-10-01 12:41:52.000000000 -0700
--- Portfile.orig 2021-10-25 20:02:31.000000000 -0700
+++ Portfile 2021-10-25 20:06:45.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

PortSystem 1.0
-PortGroup cmake 1.1
+PortGroup cmake 1.0
if {${os.major} <= 17} {
PortGroup muniversal 1.0
}
@@ -30,17 +30,17 @@

if {${os.platform} eq "darwin" && ${configure.cxx_stdlib} ne "libstdc++"} {
if { ${subport} eq "libomp-devel" } {
- version 12.0.1
- checksums rmd160 0c34a8e868b7fd831cf8f4d2413b1084643016c2 \
- sha256 60fe79440eaa9ebf583a6ea7f81501310388c02754dbe7dc210776014d06b091 \
- size 1081308
- version 13.0.0
- checksums rmd160 1ecfcc0f1d18e208f99ce8390281ed6b5f92a28e \
- sha256 4930ae7a1829a53b698255c2c6b6ee977cc364b37450c14ee458793c0d5e493c \
- size 1139488
- 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 12.0.1
- checksums rmd160 0c34a8e868b7fd831cf8f4d2413b1084643016c2 \
- sha256 60fe79440eaa9ebf583a6ea7f81501310388c02754dbe7dc210776014d06b091 \
- size 1081308
- version 13.0.0
- checksums rmd160 1ecfcc0f1d18e208f99ce8390281ed6b5f92a28e \
- sha256 4930ae7a1829a53b698255c2c6b6ee977cc364b37450c14ee458793c0d5e493c \
- size 1139488
- livecheck.regex {"llvmorg-([0-9.]+)".*}
+ version 11.1.0
+ checksums rmd160 8869b60844901466aed4e462ae8dac831bf519c3 \
Expand Down Expand Up @@ -87,3 +96,12 @@
}

depends_build-append port:perl5
@@ -139,7 +143,7 @@
}

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

}

0 comments on commit 6ccb869

Please sign in to comment.