package/setserial: apply patches from setserial_2.17-45.3.diff.gz
Since64ac719952("apply-patches.sh: add recursivity when scanning patchdir"), patches with the .dpatch file extension are simply ignored. Unfortunately, setserial package stopped applying the patches after that commit. Sadly, 0002-tiocghayesesp-build-fix.patch is breaking the patch context for patch 18 in the debian diff because we are currently applying patches from within Buildroot tree before applying the ones we download from Debian. Instead of doing some hacks, let's apply Debian patches before Buildroot's. However, this requires a few changes. First, we need to migrate away from the SETSERIAL_PATCH mechanism because currently _PRE_PATCH_HOOKS runs before this is applied and _POST_PATCH_HOOKS runs after the Buildroot patches are applied. Instead, let's use an _EXTRA_DOWNLOADS we manually extract à-la package/android-tools/android-tools.mk. Then in the _PRE_PATCH_HOOKS, we apply the big diff the _EXTRA_DOWNLOADS contains so that the patches from within can be applied afterwards. Because the big diff still contains only patches with the *.dpatch extensions that are not supported anymore, we need to either rename all patches or use the 00list file that lists all patches in the order they need to be applied. Fortunately, Buildroot already supports applying patches with `patch` regardless of their extension if they are within such a file. Unfortunately, it needs to be called "series", hence the renaming. Because patch 18 from the big diff is now applied before 0002-tiocghayesesp-build-fix.patch from Buildroot tree, the latter will fail if left unmodified, so this commit also rebases it. Finally, we keep the removal of 01_makefile.dpatch for now even though it only exists because it generates a conflict with 0001-build-system-fix.patch from Buildroot tree. It'll be rebased in a later commit though. Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit534147af94) Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
committed by
Thomas Perale
parent
84164861c9
commit
cbf3ead4c8
@@ -1090,7 +1090,6 @@ package/sentry-native/0001-sentry.h-include-ucontext.h.patch lib_patch.Upstream
|
||||
package/ser2net/S50ser2net Shellcheck lib_sysv.Indent lib_sysv.Variables
|
||||
package/setools/0001-Do-not-export-use-setools.InfoFlowAnalysis-and-setoo.patch lib_patch.Upstream
|
||||
package/setserial/0001-build-system-fix.patch lib_patch.Upstream
|
||||
package/setserial/0002-tiocghayesesp-build-fix.patch lib_patch.Upstream
|
||||
package/shadowsocks-libev/0001-configure.ac-use-pkg-config-to-find-netfilter_conntr.patch lib_patch.Upstream
|
||||
package/shadowsocks-libev/0002-fix-maybe-uninitialized-errors.patch lib_patch.Upstream
|
||||
package/shadowsocks-libev/0003-lib-Makefile.am-remove-static-from-LDFLAGS.patch lib_patch.Upstream
|
||||
|
||||
Reference in New Issue
Block a user