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

%patch from not the start of the line does not work #1088

Closed
mikhailnov opened this issue Feb 26, 2020 · 5 comments
Closed

%patch from not the start of the line does not work #1088

mikhailnov opened this issue Feb 26, 2020 · 5 comments
Labels
bug handsfree Packaging automation and convenience
Milestone

Comments

@mikhailnov
Copy link
Contributor

Example piece of code in %prep

( cd asedriveiiie-usb
  %patch1 -p1
)

Result:

DEBUG: + cd asedriveiiie-usb
DEBUG: + %patch1 -p1
DEBUG: BUILDSTDERR: /var/tmp/rpm-tmp.A0WUoX: line 45: fg: no job control

But it works in rpm5. I had to put %patch1 to the beginning of the line to make it work in rpm 4.15.1.

@pmatilai
Copy link
Member

Rpm5 compatibility is not a goal, so whether something works there or not isn't relevant generally.

One could consider this a bug on its own merits though.

@mikhailnov
Copy link
Contributor Author

mikhailnov commented Feb 27, 2020 via email

@dmnks dmnks self-assigned this Feb 12, 2021
@ffesti ffesti moved this to Backlog in RPM Jul 21, 2022
@ffesti ffesti added this to RPM Jul 21, 2022
@ffesti ffesti moved this from Backlog to Todo in RPM Jul 21, 2022
@dmnks dmnks moved this from Todo to Backlog in RPM Jul 21, 2022
@dmnks
Copy link
Contributor

dmnks commented Jul 21, 2022

One way to fix would be turning %patch into a proper macro, but I need to look closer.

@pmatilai
Copy link
Member

Yep, but that is far easier said than done. We've been laying the foundations for that for a while now, see #2205 and various linked stuff.

@dmnks dmnks removed their assignment Oct 4, 2023
@pmatilai pmatilai added the bug label Oct 31, 2023
@pmatilai
Copy link
Member

This is got fixed by the way of #2205 in #2730.

@github-project-automation github-project-automation bot moved this from Backlog to Done in RPM Oct 31, 2023
@pmatilai pmatilai added this to the 4.20.0 milestone Oct 31, 2023
@pmatilai pmatilai added the handsfree Packaging automation and convenience label Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug handsfree Packaging automation and convenience
Projects
Status: Done
Development

No branches or pull requests

3 participants