Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New package: Opencoarrays-2.9.2 #27618

Closed
wants to merge 752 commits into from
Closed

New package: Opencoarrays-2.9.2 #27618

wants to merge 752 commits into from

Conversation

ramos
Copy link

@ramos ramos commented Jan 2, 2021

No description provided.

@ericonr ericonr added the new-package This PR adds a new package label Jan 5, 2021
@astralchan
Copy link
Contributor

astralchan commented Jan 9, 2021

Get rid of line 15 to pass Lint check.

build_style=cmake
short_desc="OpenCoarray fortran PAGS paralellization library"
maintainer="Alberto Ramos <alberto.ramos@ific.uv.es>"
hostdepends="gcc gcc-fortran openmpi openmpi-devel cmake"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hostmakedepends, -devel things should go in makedepends. The build_style is cmake, no need to include cmake in hostmakedepends or in makedepends. Looking at the project, you might want openmpi-devel for the development files in makedepends.

hostdepends="gcc gcc-fortran openmpi openmpi-devel cmake"
makedepends="gcc gcc-fortran openmpi openmpi-devel cmake"
depends="gcc gcc-fortran openmpi openmpi-devel cmake"
license="GPL-3.0-or-later"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The license is actually a BSD 3 Clause license, change to license="BSD-3-Clause", and add

post_install() {
    vlicense LICENSE
}

but with a tab before vlicense, not spaces.

depends="gcc gcc-fortran openmpi openmpi-devel cmake"
license="GPL-3.0-or-later"
homepage="http://www.opencoarrays.org/"
distfiles="https://github.com/sourceryinstitute/OpenCoarrays/releases/download/2.9.2/OpenCoarrays-${version}.tar.gz"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You hardcoded 2.9.2 in one spot in the URL yet expanded ${version} in another? It's recommended to expand ${version} when possible to make maintaining easier. Try switching distfiles to distfiles="https://github.com/sourceryinstitute/OpenCoarrays/archive/${version}.tar.gz" and match the checksum.

@astralchan
Copy link
Contributor

There are three commits, there should only be one. Try squashing your commits with rebase: git rebase -i HEAD~3 and squash the last two, having the commit message just be "New package: OpenCoarrays-2.9.2", just use amend to commit future changes.

git commit --amend
git push origin master -f

One thing I might recommend while I'm on git things, I would recommend making a specific branch on your fork, e.g.

git checkout -b opencoarrays
<add your template>
git add -A
git commit -m "New package: OpenCoarrays-2.9.2"
git push origin opencoarrays

then, on this PR, switch to request merging that branch from your fork to the upstream master branch.

@astralchan
Copy link
Contributor

astralchan commented Jan 16, 2021

Haven't tested, but, from what I've read on upstream's documentation, this template might be helpful as a start point.

@astralchan
Copy link
Contributor

astralchan commented Jan 16, 2021

I tried testing on aarch64-musl, and found that:

=> OpenCoarrays-2.9.2_1: building [cmake] for aarch64-musl...
   [host] gcc-fortran-9.3.0_9: found (https://alpha.de.repo.voidlinux.org/current/musl)
   [host] openmpi-4.1.0_1: found (https://alpha.de.repo.voidlinux.org/current/musl)
   [host] cmake-3.19.3_1: found (https://alpha.de.repo.voidlinux.org/current/musl)
   [target] libgfortran-devel-9.3.0_9: found (https://alpha.de.repo.voidlinux.org/current/aarch64)
   [target] openmpi-devel-4.1.0_1: not found

openmpi isn't on cross platform. I have an updated template here:

# Template file for 'OpenCoarrays'
pkgname=OpenCoarrays
version=2.9.2
revision=1
build_style=cmake
hostmakedepends="gcc-fortran openmpi"
makedepends="libgfortran-devel openmpi-devel"
short_desc="Parallel application binary interface for Fortran 2018 compilers"
maintainer="Alberto Ramos <alberto.ramos@ific.uv.es>"
license="BSD-3-Clause"
homepage="https://opencoarrays.org"
distfiles="https://github.com/sourceryinstitute/OpenCoarrays/archive/${version}.tar.gz"
checksum=a11639034ecc2445b6e5efa187ab4fac2b0b384ddae5872d62f717b40922d259
nocross="openmpi not available on cross build"
 
post_install() {
	vlicense LICENSE
}

This passes xbps-src locally on my x86_64-musl machine. The hostmakedepends and makedepends of the template I made could probably be cleaned up a bit, I don't know much about fortran, though.

@ramos
Copy link
Author

ramos commented Jan 17, 2021

Ok, Many thank

Not sure about the conflicts. I have checked that this builds ok in my system with your new template.

Many thanks!

@astralchan
Copy link
Contributor

It looks like you pulled all changes from latest upstream master branch - over 700 commits! You might want to do a couple of things:

  1. Add an upstream remote: git remote add upstream https://github.com/void-linux/void-packages.git
  2. Rebase your branch against upstream master: git pull --rebase upstream master
  3. Add a branch specifically for your template: git checkout -b opencoarrays, then add your template and push there: git push origin opencoarrays, switch this PR to merge from that branch rather than your forked master branch.

@astralchan astralchan mentioned this pull request Jan 28, 2021
@github-actions
Copy link

github-actions bot commented May 2, 2022

Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.

@github-actions github-actions bot added the Stale label May 2, 2022
@github-actions github-actions bot closed this May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-package This PR adds a new package Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet