diff options
| author | Khem Raj <raj.khem@gmail.com> | 2020-08-12 12:19:36 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2020-08-13 22:32:07 -0700 |
| commit | ca50225db70e13aa9813867be0c87996acdb104c (patch) | |
| tree | 62b86c13c97ba3b94d244b19dddec4271ef9516a | |
| parent | b99b2f5297a587188cf28e687111b58d7e358fb7 (diff) | |
| download | meta-openembedded-ca50225db70e13aa9813867be0c87996acdb104c.tar.gz | |
tftp-hpa: Fix build with -fno-common
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-networking/recipes-daemons/tftp-hpa/files/0001-tftp-Mark-toplevel-definition-as-external.patch | 30 | ||||
| -rw-r--r-- | meta-networking/recipes-daemons/tftp-hpa/tftp-hpa_5.2.bb | 1 |
2 files changed, 31 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/tftp-hpa/files/0001-tftp-Mark-toplevel-definition-as-external.patch b/meta-networking/recipes-daemons/tftp-hpa/files/0001-tftp-Mark-toplevel-definition-as-external.patch new file mode 100644 index 0000000000..646757c783 --- /dev/null +++ b/meta-networking/recipes-daemons/tftp-hpa/files/0001-tftp-Mark-toplevel-definition-as-external.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | From 2a12174a5059e84d4ff6fad8f983a4d0f2127e73 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Wed, 12 Aug 2020 12:17:31 -0700 | ||
| 4 | Subject: [PATCH] tftp: Mark toplevel definition as external | ||
| 5 | |||
| 6 | Fixes | ||
| 7 | multiple definition of `toplevel'; tftp.o:/usr/src/debug/tftp-hpa/5.2-r0/tftp-hpa-5.2/tftp/tftp.c:51: first defined here | ||
| 8 | |||
| 9 | Upstream-Status: Pending | ||
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 11 | --- | ||
| 12 | tftp/tftp.c | 2 +- | ||
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/tftp/tftp.c b/tftp/tftp.c | ||
| 16 | index 9d15022..109848c 100644 | ||
| 17 | --- a/tftp/tftp.c | ||
| 18 | +++ b/tftp/tftp.c | ||
| 19 | @@ -48,7 +48,7 @@ extern int maxtimeout; | ||
| 20 | #define PKTSIZE SEGSIZE+4 | ||
| 21 | char ackbuf[PKTSIZE]; | ||
| 22 | int timeout; | ||
| 23 | -sigjmp_buf toplevel; | ||
| 24 | +extern sigjmp_buf toplevel; | ||
| 25 | sigjmp_buf timeoutbuf; | ||
| 26 | |||
| 27 | static void nak(int, const char *); | ||
| 28 | -- | ||
| 29 | 2.28.0 | ||
| 30 | |||
diff --git a/meta-networking/recipes-daemons/tftp-hpa/tftp-hpa_5.2.bb b/meta-networking/recipes-daemons/tftp-hpa/tftp-hpa_5.2.bb index 413950be1b..4c62da8181 100644 --- a/meta-networking/recipes-daemons/tftp-hpa/tftp-hpa_5.2.bb +++ b/meta-networking/recipes-daemons/tftp-hpa/tftp-hpa_5.2.bb | |||
| @@ -28,6 +28,7 @@ SRC_URI = "http://kernel.org/pub/software/network/tftp/tftp-hpa/tftp-hpa-${PV}.t | |||
| 28 | file://tftp-hpa-bug-fix-on-separated-CR-and-LF.patch \ | 28 | file://tftp-hpa-bug-fix-on-separated-CR-and-LF.patch \ |
| 29 | file://fix-writing-emtpy-file.patch \ | 29 | file://fix-writing-emtpy-file.patch \ |
| 30 | file://0001-__progname-is-provided-by-libc.patch \ | 30 | file://0001-__progname-is-provided-by-libc.patch \ |
| 31 | file://0001-tftp-Mark-toplevel-definition-as-external.patch \ | ||
| 31 | file://tftpd-hpa.socket \ | 32 | file://tftpd-hpa.socket \ |
| 32 | file://tftpd-hpa.service \ | 33 | file://tftpd-hpa.service \ |
| 33 | " | 34 | " |
