thanks

it works fine

Le mercredi 19 février 2020 17:10:29 UTC+1, jlacvdr L. a écrit :

Hi,

I'm trying apply patch to an upstream debian package

recipe looks like:

inherit dpkg

SRC_URI = "apt://${PN} \
file://files/mypatch.patch \
"

during  do_dpkg_build, I've got the error:

 dpkg-source -I --before-build nano-2.9.3
dpkg-buildpackage: info: host architecture amd64
 fakeroot debian/rules clean
dh clean --parallel
   dh_clean -O--parallel
 dpkg-source -I -b nano-2.9.3
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building nano using existing ./nano_2.9.3.orig.tar.bz2
dpkg-source: info: local changes detected, the modified files are:
 nano-2.9.3/.applied_patches/.patch-commands
 nano-2.9.3/.applied_patches/files/mypatch.patch
 nano-2.9.3/src/utils.c
dpkg-source: error: aborting due to unexpected upstream changes, see /tmp/nano_2.9.3-1.diff.rSd68A
dpkg-source: info: you can integrate the local changes with dpkg-source --commit
dpkg-buildpackage: error: dpkg-source -I -b nano-2.9.3 subprocess returned exit status 2
WARNING: exit code 2 from a shell command.


How fix it ? 
Can you confirm that patching an upstream package is supported ?

Regards,