Re: quilt patch (hunk ignored)

2022-05-19 Thread Bo YU

On Thu, May 19, 2022 at 04:21:42PM +0500, Andrey Rahmatullin wrote:

On Thu, May 19, 2022 at 07:17:11PM +0800, Bo YU wrote:

> > But if use the same way to apply patch into d/*, sometime it will get:
> Patches shouldn't patch files in debian/. Edit the files directly.


Understood it. here is SO[0] to hint it.

But this is inconvenient:

*shrug*


* if to modify many files in d/* or code snip and want to keep a clean status
 to watch different parts on many times modify. 

Not sure what does this mean but it's possible that a VCS can help here.


* send these modify to the package's maintainer

You should send a debdiff, not a patch from debian/patches/.


Ok, got it. thank you:)

BR,
Bo



--
WBR, wRAR





Re: quilt patch (hunk ignored)

2022-05-19 Thread Andrey Rahmatullin
On Thu, May 19, 2022 at 07:17:11PM +0800, Bo YU wrote:
> > > But if use the same way to apply patch into d/*, sometime it will get:
> > Patches shouldn't patch files in debian/. Edit the files directly.
> 
> 
> Understood it. here is SO[0] to hint it.
> 
> But this is inconvenient:
*shrug*

> * if to modify many files in d/* or code snip and want to keep a clean status
>  to watch different parts on many times modify. 
Not sure what does this mean but it's possible that a VCS can help here.

> * send these modify to the package's maintainer
You should send a debdiff, not a patch from debian/patches/.

-- 
WBR, wRAR


signature.asc
Description: PGP signature


Re: quilt patch (hunk ignored)

2022-05-19 Thread Bo YU

Hi wRAR,
On Thu, May 19, 2022 at 04:00:40PM +0500, Andrey Rahmatullin wrote:

On Thu, May 19, 2022 at 06:57:27PM +0800, Bo YU wrote:

Hi,

I followed the instructions[0]&[1] to generate/apply patch. It is ok if i
the patch file be applied out of debian/*.:

// for people who if need it
*quilt push -a
* quilt new fix-issue.patch
* quilt add source-code-file(out of the d/*)
* quilt refresh
* quilt header -e
* quilt pop -a

But if use the same way to apply patch into d/*, sometime it will get:

Patches shouldn't patch files in debian/. Edit the files directly.



Understood it. here is SO[0] to hint it.

But this is inconvenient:
* if to modify many files in d/* or code snip and want to keep a clean status
 to watch different parts on many times modify. 
* send these modify to the package's maintainer

Thank you~

BR,
Bo

[0]: 
https://stackoverflow.com/questions/29634868/adding-a-file-in-a-quilt-dquilt-patch-patch-applies-correctly-by-hand-but-brea



--
WBR, wRAR





Re: quilt patch (hunk ignored)

2022-05-19 Thread Andrey Rahmatullin
On Thu, May 19, 2022 at 06:57:27PM +0800, Bo YU wrote:
> Hi,
> 
> I followed the instructions[0]&[1] to generate/apply patch. It is ok if i
> the patch file be applied out of debian/*.:
> 
> // for people who if need it
> *quilt push -a
> * quilt new fix-issue.patch
> * quilt add source-code-file(out of the d/*)
> * quilt refresh
> * quilt header -e
> * quilt pop -a
> 
> But if use the same way to apply patch into d/*, sometime it will get:
Patches shouldn't patch files in debian/. Edit the files directly.

-- 
WBR, wRAR


signature.asc
Description: PGP signature