View previous topic :: View next topic |
Author |
Message |
Hu Administrator
Joined: 06 Mar 2007 Posts: 23014
|
Posted: Sat Jan 11, 2025 7:29 pm Post subject: |
|
|
Please elaborate on "doesn't work." Are you still getting an error applying the patch or does the patch apply and the game does not work as you want?
Yes, you can patch by hand and use ebuild to run the individual phases. This is discouraged, as you will need to redo that same work every time you build the package again, and get it right each time. |
|
Back to top |
|
|
Da51d n00b
Joined: 27 Mar 2024 Posts: 28
|
Posted: Sat Jan 11, 2025 7:56 pm Post subject: |
|
|
I get an error applying the patch, and the build is immediately aborted. I have just had an idea. I can copy the file, and amend it by hand, then use diff on the original and the amended file to create a (surely infallible) patchfile and then try emerging with that? I'm going to try it. _________________ What can be said at all can be said clearly and what we cannot talk about we must pass over in silence. |
|
Back to top |
|
|
Da51d n00b
Joined: 27 Mar 2024 Posts: 28
|
Posted: Sat Jan 11, 2025 9:19 pm Post subject: |
|
|
It worked!! Thank you all very much for your help. The problem seems to be solved. 0ad starts as usual. And I didn't have to do anything that is "discouraged". _________________ What can be said at all can be said clearly and what we cannot talk about we must pass over in silence. |
|
Back to top |
|
|
Da51d n00b
Joined: 27 Mar 2024 Posts: 28
|
Posted: Wed Jan 15, 2025 7:42 pm Post subject: |
|
|
I have discovered (maybe) what the problem was. When I copied and pasted CooSee's patch, the indentations came out as lots of spaces rather than tabs, but the patch produced by using diff on the two files shows tabs used in the indentations. That is the only difference between the patch which works and the one which doesn't. And of course, it's invisible under normal circumstances. Thanks again for the help. _________________ What can be said at all can be said clearly and what we cannot talk about we must pass over in silence. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23014
|
Posted: Wed Jan 15, 2025 8:50 pm Post subject: |
|
|
Yes, that difference is enough to break it. Since I only reviewed your patch in isolation, I could not see that your use of spaces was incorrect, because I could not see the use of tabs in the origin file.
In the future, you can extract a clean copy of the patch by starting a reply-with-quote of the post containing the patch, then copy the patch from the composition box where you are quoting it. You can discard the reply without posting after you have the patch text. |
|
Back to top |
|
|
CooSee Veteran
Joined: 20 Nov 2004 Posts: 1502 Location: Earth
|
Posted: Fri Jan 17, 2025 12:14 am Post subject: |
|
|
Quote: | When I copied and pasted CooSee's patch, the indentations came out as lots of spaces rather than tabs |
my apologies - i always look at the downloaded patch files to maybe clean it up.
_________________ " Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier " |
|
Back to top |
|
|
|