added my Recipes
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
From 53ca110d53ca82f6c4224e4c29dbcf7dfe6914cd Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Tue, 23 Aug 2022 00:25:06 -0700
|
||||
Subject: [PATCH] Forward port defining PREFIX_BINDIR to use new autoconf
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
configure.in | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure.in b/configure.in
|
||||
index c3ef568..a320c56 100644
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -44,7 +44,7 @@ wi_EXTRA_SYSV_SUNOS_DIRS dnl For better curses library on SunOS 4
|
||||
|
||||
dnl Try to use PATH rather than hardcode the installation path, if possible.
|
||||
if test "${prefix-NONE}" != "NONE" && test "$prefix" != "/usr/local" && test "$prefix" != "/usr"; then
|
||||
- AC_DEFINE_UNQUOTED(PREFIX_BINDIR, "$prefix/bin")
|
||||
+ AC_DEFINE([PREFIX_BINDIR], [${prefix}/bin], [Install bindir])
|
||||
fi
|
||||
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
Fix build with -fno-common
|
||||
|
||||
Patch from https://src.fedoraproject.org/rpms/ncftp/raw/master/f/ncftp-3.2.5-gcc10.patch
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
|
||||
--- a/ncftp/bookmark.h
|
||||
+++ b/ncftp/bookmark.h
|
||||
@@ -29,6 +29,8 @@ typedef struct Bookmark {
|
||||
int reserved;
|
||||
} Bookmark;
|
||||
|
||||
+extern Bookmark gBm;
|
||||
+
|
||||
#define kBookmarkVersion 8
|
||||
#define kBookmarkMinVersion 3
|
||||
#if (defined(WIN32) || defined(_WINDOWS)) && !defined(__CYGWIN__)
|
||||
--- a/ncftp/cmds.c
|
||||
+++ b/ncftp/cmds.c
|
||||
@@ -98,7 +98,7 @@ extern char gPager[], gHome[], gShell[];
|
||||
extern char gOS[];
|
||||
extern int gAutoResume;
|
||||
extern int gAutoSaveChangesToExistingBookmarks;
|
||||
-extern Bookmark gBm;
|
||||
+//extern Bookmark gBm;
|
||||
extern int gLoadedBm, gConfirmClose, gSavePasswords, gScreenColumns;
|
||||
extern char gLocalCWD[512], gPrevLocalCWD[512];
|
||||
extern int gMayCancelJmp;
|
||||
--- a/ncftp/main.c
|
||||
+++ b/ncftp/main.c
|
||||
@@ -38,7 +38,7 @@ extern int gUnprocessedJobs;
|
||||
char gLocalCWD[512], gPrevLocalCWD[512];
|
||||
|
||||
extern char gRemoteCWD[512], gPrevRemoteCWD[512];
|
||||
-extern Bookmark gBm;
|
||||
+//extern Bookmark gBm;
|
||||
extern int gLoadedBm;
|
||||
extern int gFirewallType;
|
||||
extern char gAutoAscii[];
|
||||
--- a/sh_util/gpshare.c
|
||||
+++ b/sh_util/gpshare.c
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
static int gIsAtty1 = 1, gIsAtty2 = 1;
|
||||
extern int gLoadedBm, gBookmarkMatchMode;
|
||||
-Bookmark gBm;
|
||||
+//Bookmark gBm;
|
||||
|
||||
double
|
||||
FileSize(double size, const char **uStr0, double *uMult0)
|
||||
--- a/sh_util/ncftpget.c
|
||||
+++ b/sh_util/ncftpget.c
|
||||
@@ -40,7 +40,7 @@ extern unsigned int gFirewallPort;
|
||||
extern char gFirewallExceptionList[256];
|
||||
extern int gFwDataPortMode;
|
||||
extern const char gOS[], gVersion[];
|
||||
-extern Bookmark gBm;
|
||||
+//extern Bookmark gBm;
|
||||
|
||||
static void
|
||||
#if (defined(__GNUC__)) && (__GNUC__ >= 2)
|
||||
--- a/sh_util/ncftpls.c
|
||||
+++ b/sh_util/ncftpls.c
|
||||
@@ -39,7 +39,7 @@ extern unsigned int gFirewallPort;
|
||||
extern char gFirewallExceptionList[256];
|
||||
extern int gFwDataPortMode;
|
||||
extern const char gOS[], gVersion[];
|
||||
-extern Bookmark gBm;
|
||||
+//extern Bookmark gBm;
|
||||
|
||||
static int FTPRemoteRecursiveMList(FTPCIPtr cip, const char *const rdir, /* FTPFileInfoListPtr files, */ FTPLineListPtr lines);
|
||||
|
||||
--- a/sh_util/ncftpput.c
|
||||
+++ b/sh_util/ncftpput.c
|
||||
@@ -41,7 +41,6 @@ extern unsigned int gFirewallPort;
|
||||
extern char gFirewallExceptionList[256];
|
||||
extern int gFwDataPortMode;
|
||||
extern const char gOS[], gVersion[];
|
||||
-extern Bookmark gBm;
|
||||
extern int gSendfileInProgress;
|
||||
|
||||
static void
|
||||
@@ -0,0 +1,32 @@
|
||||
From 043e1a9ec83a59671ef8c4cad679dbf781e5ef98 Mon Sep 17 00:00:00 2001
|
||||
From: Jackie Huang <jackie.huang@windriver.com>
|
||||
Date: Sun, 29 Nov 2015 23:37:06 -0800
|
||||
Subject: [PATCH] configure: use BUILD_CC for ccdv
|
||||
|
||||
ccdv is intended to be invoked from Makefiles only,
|
||||
it doesn't work for the cross compiling, so compile
|
||||
it with $BUILD_CC and corresponding CFLAGS.
|
||||
|
||||
Upstream-Status: Inappropriate [cross compile specific]
|
||||
|
||||
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
|
||||
---
|
||||
configure | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure b/configure
|
||||
index 2f0fae0..a7e9112 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -11286,7 +11286,7 @@ panic:
|
||||
} /* main */
|
||||
/* eof ccdv.c */
|
||||
EOF
|
||||
- ${CC-cc} $DEFS $CPPFLAGS $CFLAGS "ccdv.c" -o "ccdv" >/dev/null 2>&1
|
||||
+ ${BUILD_CC} $DEFS ${BUILD_CPPFLAGS} ${BUILD_CFLAGS} "ccdv.c" -o "ccdv" >/dev/null 2>&1
|
||||
rm -f ccdv.c ccdv.o ccdv.c.gz.uu ccdv.c.gz
|
||||
strip ./ccdv >/dev/null 2>&1
|
||||
./ccdv >/dev/null 2>&1
|
||||
--
|
||||
2.3.5
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
This patch is needed to avoid double definitions of functions
|
||||
especially when building with security flags turned on. The double
|
||||
definitions causes the sed.sh script in configure to fail since it
|
||||
starts to spit out double outputs e.g.
|
||||
|
||||
wi_cv_gethostname_size_t size_t size_t
|
||||
|
||||
which then caused almost all subsequent compile time tests to fail since
|
||||
this gets into confdefs.h file
|
||||
|
||||
removing this include causes only one definitions to be emitted into
|
||||
the genrated protos.h file and thus avoiding the above failure.
|
||||
|
||||
Other solution would to fix sed.sh to ignore double definitions
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-of-by: Khem Raj <raj.khem@gmail.com>
|
||||
--- a/autoconf_local/aclocal.m4
|
||||
+++ b/autoconf_local/aclocal.m4
|
||||
@@ -4220,7 +4220,6 @@ changequote({{, }})dnl
|
||||
cat << 'EOF' > "$wi_tmpdir/unistd.c"
|
||||
#include <confdefs.h>
|
||||
|
||||
-#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
@@ -0,0 +1,32 @@
|
||||
DESCRIPTION = "A sophisticated console ftp client"
|
||||
HOMEPAGE = "http://ncftp.com/"
|
||||
SECTION = "net"
|
||||
LICENSE = "ClArtistic"
|
||||
LIC_FILES_CHKSUM = "file://ncftp/cmds.c;beginline=3;endline=4;md5=9c2390809f71465aa7ff76e03dc14d91"
|
||||
DEPENDS = "ncurses"
|
||||
|
||||
SRC_URI = "ftp://ftp.ncftp.com/${BPN}/${BP}-src.tar.xz \
|
||||
file://ncftp-configure-use-BUILD_CC-for-ccdv.patch \
|
||||
file://unistd.patch \
|
||||
file://ncftp-3.2.5-gcc10.patch \
|
||||
file://0001-Forward-port-defining-PREFIX_BINDIR-to-use-new-autoc.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "42d0f896d69a4d603ec097546444245f"
|
||||
SRC_URI[sha256sum] = "5f200687c05d0807690d9fb770327b226f02dd86155b49e750853fce4e31098d"
|
||||
|
||||
inherit autotools-brokensep pkgconfig
|
||||
|
||||
CFLAGS += "-DNO_SSLv2 -D_FILE_OFFSET_BITS=64 -Wall"
|
||||
|
||||
PACKAGECONFIG ??= ""
|
||||
PACKAGECONFIG[ccdv] = "--enable-ccdv,--disable-ccdv,,"
|
||||
|
||||
EXTRA_OECONF = "--disable-precomp --disable-universal ac_cv_path_TAR=tar"
|
||||
ACLOCALEXTRAPATH:append = " -I ${S}/autoconf_local"
|
||||
|
||||
do_install () {
|
||||
install -d ${D}${bindir} ${D}${sysconfdir} ${D}${mandir}
|
||||
oe_runmake 'prefix=${D}${prefix}' 'BINDIR=${D}${bindir}' \
|
||||
'SYSCONFDIR=${D}${sysconfdir}' 'mandir=${D}${mandir}' \
|
||||
install
|
||||
}
|
||||
Reference in New Issue
Block a user