Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
0ad
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23014

PostPosted: Sat Jan 11, 2025 7:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Da51d
n00b
n00b


Joined: 27 Mar 2024
Posts: 28

PostPosted: Sat Jan 11, 2025 7:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Da51d
n00b
n00b


Joined: 27 Mar 2024
Posts: 28

PostPosted: Sat Jan 11, 2025 9:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
Da51d
n00b
n00b


Joined: 27 Mar 2024
Posts: 28

PostPosted: Wed Jan 15, 2025 7:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23014

PostPosted: Wed Jan 15, 2025 8:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1502
Location: Earth

PostPosted: Fri Jan 17, 2025 12:14 am    Post subject: Reply with quote

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.

8)
_________________
" 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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum