-
-
Notifications
You must be signed in to change notification settings - Fork 623
allow any posix-compliant PATCH(1) #30481
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
Comments
comment:1
Sounds good to me. Additionally we could check to see if the system |
comment:2
Setting new milestone based on a cursory review of ticket status, priority, and last modification date. |
Dependencies: #30668 |
Author: Dima Pasechnik |
Commit: |
comment:4
This will actually only find a non-POSIX patch, since the I think
That way, if |
comment:5
meanwhile I am finding out that we cannot call |
comment:6
on the other hand I see no harm in just dropping |
comment:7
Replying to @dimpase:
What's the problem with file creation? The It may be important: if we start to accept any "patch", then we have to be prepared for one that follows the POSIX behavior. In other words, if the patches we ship only work with GNU/BSD patch, then we should probably check for one of those and not for any POSIX-compatible patch. (In that case, we can still test for the backup flag with |
comment:8
Relaxing the spkg-configure.m4 of patch sounds to me like asking for trouble. Recall the insanity that had to be worked around in #30403? |
comment:9
Replying to @orlitzky:
I suppose it's due to the way
I agree, some more testing is needed. |
comment:10
Replying to @mkoeppe:
I don't think it's so hard, it's just an executable after all. |
comment:11
There are no problems with Sage's patch spkg, please don't create new problems |
comment:12
And until someone is sufficiently invested in a *BSD port to actually set up automatic testing, as discussed several times, let's please not use any BSD platform as motivation for changes like this. |
comment:13
Replying to @mkoeppe:
my primary issue with patch is that it's part of the Sage's toolchain, and as such 1st in line to be kicked out. |
comment:14
comment 11 covers this. |
comment:15
Replying to @mkoeppe:
How? I don't see why we need to keep toolchain components vendored. |
comment:16
We are not vendoring it. We are providing a fallback installation script for the benefit of users who don't have it on their machines. It is working well: It installs correctly and has not caused other maintenance issues. (That's in contrast to the problematic |
comment:17
so far one outcome is that I gather that the fallback is simply not needed, just as it's not needed for Whether BSD patch should be allowed is another question. Oh, and iml spkg has a patch for a non-existing file, something I found out using |
@jhpalmieri - it seems we can just drop the requirement that the option |
Note that Apple's current version of patch supports Otherwise, a brief skim of the discussion here suggests that we need to test whether the version of patch supports |
|
sagemathgh-39943: remove patch spkg every system we support has a decent enough version of patch. So we just purge it, like we did with tar a while ago. This will fix sagemath#39941 and sagemath#30481 <!-- ^ Please provide a concise and informative title. --> <!-- ^ Don't put issue numbers in the title, do this in the PR description below. --> <!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method to calculate 1 + 2". --> <!-- v Describe your changes below in detail. --> <!-- v Why is this change required? What problem does it solve? --> <!-- v If this PR resolves an open issue, please link to it here. For example, "Fixes sagemath#12345". --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [x] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#39943 Reported by: Dima Pasechnik Reviewer(s): Tobias Diez
sagemathgh-39943: remove patch spkg every system we support has a decent enough version of patch. So we just purge it, like we did with tar a while ago. This will fix sagemath#39941 and sagemath#30481 <!-- ^ Please provide a concise and informative title. --> <!-- ^ Don't put issue numbers in the title, do this in the PR description below. --> <!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method to calculate 1 + 2". --> <!-- v Describe your changes below in detail. --> <!-- v Why is this change required? What problem does it solve? --> <!-- v If this PR resolves an open issue, please link to it here. For example, "Fixes sagemath#12345". --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [x] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#39943 Reported by: Dima Pasechnik Reviewer(s): Tobias Diez
sagemathgh-39943: remove patch spkg every system we support has a decent enough version of patch. So we just purge it, like we did with tar a while ago. This will fix sagemath#39941 and sagemath#30481 <!-- ^ Please provide a concise and informative title. --> <!-- ^ Don't put issue numbers in the title, do this in the PR description below. --> <!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method to calculate 1 + 2". --> <!-- v Describe your changes below in detail. --> <!-- v Why is this change required? What problem does it solve? --> <!-- v If this PR resolves an open issue, please link to it here. For example, "Fixes sagemath#12345". --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [x] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#39943 Reported by: Dima Pasechnik Reviewer(s): Tobias Diez
sagemathgh-39943: remove patch spkg every system we support has a decent enough version of patch. So we just purge it, like we did with tar a while ago. This will fix sagemath#39941 and sagemath#30481 <!-- ^ Please provide a concise and informative title. --> <!-- ^ Don't put issue numbers in the title, do this in the PR description below. --> <!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method to calculate 1 + 2". --> <!-- v Describe your changes below in detail. --> <!-- v Why is this change required? What problem does it solve? --> <!-- v If this PR resolves an open issue, please link to it here. For example, "Fixes sagemath#12345". --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [x] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#39943 Reported by: Dima Pasechnik Reviewer(s): Tobias Diez
sagemathgh-39943: remove patch spkg every system we support has a decent enough version of patch. So we just purge it, like we did with tar a while ago. This will fix sagemath#39941 and sagemath#30481 <!-- ^ Please provide a concise and informative title. --> <!-- ^ Don't put issue numbers in the title, do this in the PR description below. --> <!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method to calculate 1 + 2". --> <!-- v Describe your changes below in detail. --> <!-- v Why is this change required? What problem does it solve? --> <!-- v If this PR resolves an open issue, please link to it here. For example, "Fixes sagemath#12345". --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [x] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#39943 Reported by: Dima Pasechnik Reviewer(s): Tobias Diez
sagemathgh-39943: remove patch spkg every system we support has a decent enough version of patch. So we just purge it, like we did with tar a while ago. This will fix sagemath#39941 and sagemath#30481 <!-- ^ Please provide a concise and informative title. --> <!-- ^ Don't put issue numbers in the title, do this in the PR description below. --> <!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method to calculate 1 + 2". --> <!-- v Describe your changes below in detail. --> <!-- v Why is this change required? What problem does it solve? --> <!-- v If this PR resolves an open issue, please link to it here. For example, "Fixes sagemath#12345". --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [x] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#39943 Reported by: Dima Pasechnik Reviewer(s): Tobias Diez
currently we require GNU patch, version at least 2.7 (from 2009).
In particular, BSD patch does not know about
--no-backup-if-mismatch
, something that Sage used. An equivalent, and known to BSD patch as well as GNU patch, option is--posix
.So we could use
--posix
and change spkg-configure to accept BSD patch too.I am not sure what's needed to be checked, besides that
--posix
is accepted. Something to learn from https://savannah.gnu.org/forum/forum.php?forum_id=7361 ?Depends on #30668
CC: @thierry-FreeBSD @orlitzky
Component: build: configure
Author: Dima Pasechnik
Branch/Commit: u/dimpase/config/acceptposixpatch @
e0fcafc
Issue created by migration from https://trac.sagemath.org/ticket/30481
The text was updated successfully, but these errors were encountered: