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

Some Linux patches from MacPorts-devel do not apply cleanly #108

Open
barracuda156 opened this issue Aug 6, 2024 · 8 comments
Open

Some Linux patches from MacPorts-devel do not apply cleanly #108

barracuda156 opened this issue Aug 6, 2024 · 8 comments

Comments

@barracuda156
Copy link
Contributor

Something does not apply cleanly from Linux patches:

36-25% git apply /Users/svacchanda/Github_barracuda156/macstrop/sysutils/MacPorts/files/lamarck/patch-restore-dpkg+rpm.diff 
/Users/svacchanda/Github_barracuda156/macstrop/sysutils/MacPorts/files/lamarck/patch-restore-dpkg+rpm.diff:244: space before tab in indent.
        	# get deplist
/Users/svacchanda/Github_barracuda156/macstrop/sysutils/MacPorts/files/lamarck/patch-restore-dpkg+rpm.diff:245: space before tab in indent.
        	set deps [make_dependency_list [option subport]]
/Users/svacchanda/Github_barracuda156/macstrop/sysutils/MacPorts/files/lamarck/patch-restore-dpkg+rpm.diff:246: space before tab in indent.
        	set deps [lsort -unique $deps]
/Users/svacchanda/Github_barracuda156/macstrop/sysutils/MacPorts/files/lamarck/patch-restore-dpkg+rpm.diff:247: space before tab in indent.
        	foreach dep $deps {
/Users/svacchanda/Github_barracuda156/macstrop/sysutils/MacPorts/files/lamarck/patch-restore-dpkg+rpm.diff:248: space before tab in indent.
        		set name [lindex [split $dep /] 0]
error: patch failed: src/port/port.tcl:4178
error: src/port/port.tcl: patch does not apply

Also:

36-25% git apply /Users/svacchanda/Github_barracuda156/macstrop/sysutils/MacPorts/files/patch-pextlib-curl_version_cmd.diff 
/Users/svacchanda/Github_barracuda156/macstrop/sysutils/MacPorts/files/patch-pextlib-curl_version_cmd.diff:61: trailing whitespace.
			// but tedious because it would involve checking for the existence of many of the 
warning: 1 line adds whitespace errors.
@RJVB
Copy link
Owner

RJVB commented Aug 6, 2024 via email

@barracuda156
Copy link
Contributor Author

No hurry here, I am just reporting what happened. Possibly the patch relies on some other being applied before it, which I did not apply. But I did not modify anything in the patches themselves and used the specified tag to check out. (Everything else of Linux patches applied fine.)

@RJVB
Copy link
Owner

RJVB commented Aug 6, 2024 via email

@barracuda156
Copy link
Contributor Author

barracuda156 commented Aug 7, 2024

All bets are off if you don't apply all the patches of course. Sadly that can't be avoided.

I did apply all the patches which applied from -devel subport (skipping Darwin-specific ones), but I may not have kept the exact sequence. Will re-do that.

@barracuda156
Copy link
Contributor Author

@RJVB No, it does not work. Both errors are there.

svacchanda@43-200 macports-base-10A190 % git apply /Volumes/Data/GIT_BARRACUDA/macstrop/sysutils/MacPorts/files/patch-pextlib-curl_version_cmd.diff
/Volumes/Data/GIT_BARRACUDA/macstrop/sysutils/MacPorts/files/patch-pextlib-curl_version_cmd.diff:61: trailing whitespace.
			// but tedious because it would involve checking for the existence of many of the 
warning: 1 line adds whitespace errors.

And this just fails to apply:

svacchanda@43-200 macports-base-10A190 % git apply /Volumes/Data/GIT_BARRACUDA/macstrop/sysutils/MacPorts/files/lamarck/patch-restore-dpkg+rpm.diff
/Volumes/Data/GIT_BARRACUDA/macstrop/sysutils/MacPorts/files/lamarck/patch-restore-dpkg+rpm.diff:244: space before tab in indent.
        	# get deplist
/Volumes/Data/GIT_BARRACUDA/macstrop/sysutils/MacPorts/files/lamarck/patch-restore-dpkg+rpm.diff:245: space before tab in indent.
        	set deps [make_dependency_list [option subport]]
/Volumes/Data/GIT_BARRACUDA/macstrop/sysutils/MacPorts/files/lamarck/patch-restore-dpkg+rpm.diff:246: space before tab in indent.
        	set deps [lsort -unique $deps]
/Volumes/Data/GIT_BARRACUDA/macstrop/sysutils/MacPorts/files/lamarck/patch-restore-dpkg+rpm.diff:247: space before tab in indent.
        	foreach dep $deps {
/Volumes/Data/GIT_BARRACUDA/macstrop/sysutils/MacPorts/files/lamarck/patch-restore-dpkg+rpm.diff:248: space before tab in indent.
        		set name [lindex [split $dep /] 0]
error: patch failed: src/port/port.tcl:4178
error: src/port/port.tcl: patch does not apply

@barracuda156
Copy link
Contributor Author

barracuda156 commented Aug 7, 2024

EDIT: nah, the actual failure happens at src/port/port.tcl:4178, rest are just warnings.

@RJVB
Copy link
Owner

RJVB commented Aug 8, 2024 via email

@barracuda156
Copy link
Contributor Author

I tried on 10.6 initially and second time on Sonoma. On the latter:

svacchanda@43-200 ~ % patch --version
patch 2.0-12u11-Apple

Notice, I did not apply patches via MacPorts, I did it manually via git apply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants