Skip to content

Conform BSD-2-Clause and BSD-3-Clause text to SPDX - #9813

Merged
mergify[bot] merged 1 commit into
haskell:masterfrom
ffaf1:fix-licence-text
Mar 17, 2024
Merged

mergify[bot] merged 1 commit into
haskell:masterfrom
ffaf1:fix-licence-text

Conversation

@ffaf1

@ffaf1 ffaf1 commented Mar 15, 2024 •

Copy link
Copy Markdown
Collaborator

cabal init text for BSD-2-Clause and BSD-3-Clause licence differed slightly from the one published at SPDX. [1] [2]

This caused some problems to users when dealing with licence-recognition software. [3]

[1] https://spdx.org/licenses/BSD-2-Clause.html
[2] https://spdx.org/licenses/BSD-3-Clause.html
[3] https://discourse.haskell.org/t/non-standard-license-generated-by-stack-new/9059


Include the following checklist in your PR:

  • Patches conform to the coding conventions.
  • Any changes that could be relevant to users have been recorded in the changelog.
  • The documentation has been updated, if necessary.
  • Manual QA notes have been included.
  • Tests have been added. (Ask for help if you don’t know how to write them! Ask for an exemption if tests are too complex for too little coverage!) automated tests not needed

QA Notes

  1. cabal init and a series of ⏎ (it should select a BSD licence)
  2. LICENSE file does not contain the sentence “All rights reserved.”.

@ffaf1 ffaf1 linked an issue Mar 15, 2024 that may be closed by this pull request
@ffaf1
ffaf1 force-pushed the fix-licence-text branch from b90f7f5 to b732fa8 Compare March 15, 2024 16:43
@ffaf1

ffaf1 commented Mar 15, 2024

Copy link
Copy Markdown
Collaborator Author

Two considerations:

  • We should not fix our own LICENSE files.
  • I have gone through GPLv2 and bar from very few cosmetic changes (e.g. “one line to give the program's name and an idea of what it does.” vs. “one line to give the program's name and a brief idea of what it does.”, italics mine) they are the same.

@ulysses4ever ulysses4ever left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Perfetto, grazie!

@glyn glyn left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks for this. LGTM.

@ulysses4ever ulysses4ever added the merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days label Mar 17, 2024
@ulysses4ever

Copy link
Copy Markdown
Collaborator

Merge-me?

@ffaf1 ffaf1 added the merge me Tell Mergify Bot to merge label Mar 17, 2024
@ffaf1 ffaf1 added the attention: needs-manual-qa PR is destined for manual QA label Mar 17, 2024
@mergify
mergify Bot merged commit 99c21ba into haskell:master Mar 17, 2024
@jasagredo

Copy link
Copy Markdown
Collaborator

Confirmed working on Windows. There are however some very small nitpicks:

  • In BSD-3-Clause, we use * for itemizing, the official license text uses numbering.
  • We output (in my example) Copyright (c) 2024, Javier Sagredo. and the license says it should be Copyright (c) 2024 Javier Sagredo. Notice the trailing dot and the comma.
  • In Windows the file is printed with CRLF (probably doesn't matter?):
➜ file LICENSE
LICENSE: ASCII text, with CRLF line terminators

@jasagredo jasagredo added the tested-on: windows QA has been successful on Windows label Mar 24, 2024
@ffaf1

ffaf1 commented Mar 25, 2024

Copy link
Copy Markdown
Collaborator Author

Thanks, it makes sense, I will make a follow up patch to this.

@glyn

glyn commented Mar 25, 2024

Copy link
Copy Markdown

I wonder about "automated tests not needed", given that it was possible for the text to deviate from what was required.

@ffaf1

ffaf1 commented Apr 9, 2024

Copy link
Copy Markdown
Collaborator Author

@mergify backport 3.12

@mergify

mergify Bot commented Apr 9, 2024 •

Copy link
Copy Markdown
Contributor

backport 3.12

✅ Backports have been created

Details

@ffaf1

ffaf1 commented Apr 9, 2024

Copy link
Copy Markdown
Collaborator Author

(I will address both of your comments when I have time, if you don’t do it before me!)

mergify Bot added a commit that referenced this pull request Apr 9, 2024
Conform BSD-2-Clause and BSD-3-Clause text to SPDX (backport #9813)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

attention: needs-manual-qa PR is destined for manual QA merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days merge me Tell Mergify Bot to merge tested-on: windows QA has been successful on Windows

Projects

Status: To Test

Development

Successfully merging this pull request may close these issues.

cabal init generates non-standard licences

6 participants