summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2022-05-24 10:27:52 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2022-05-24 10:27:52 +0900
commit4f58485a00ee254b99d246898740ce8143336c9a (patch)
tree27b99982607e1fcdf1df50dd504821077dfb9307
parent5ed85cba06422b26aeb0073b8698f1092c0d7397 (diff)
downloadrsync-tizen_7.0.tar.gz
rsync-tizen_7.0.tar.bz2
rsync-tizen_7.0.zip
sometimes nanosleep occures hang Change-Id: Ib23c370795b3afdf91c02e1d70af4691bdf8c2b4
-rw-r--r--packaging/Chnage_nanosleep_to_gettimeofday.patch13
-rw-r--r--packaging/rsync.spec2
2 files changed, 15 insertions, 0 deletions
diff --git a/packaging/Chnage_nanosleep_to_gettimeofday.patch b/packaging/Chnage_nanosleep_to_gettimeofday.patch
new file mode 100644
index 00000000..bbad796f
--- /dev/null
+++ b/packaging/Chnage_nanosleep_to_gettimeofday.patch
@@ -0,0 +1,13 @@
+diff --git a/configure.ac b/configure.ac
+index 64d2e6d6..017fd953 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -852,7 +852,7 @@ AC_CHECK_FUNCS(waitpid wait4 getcwd chown chmod lchmod mknod mkfifo \
+ setlocale setmode open64 lseek64 mkstemp64 mtrace va_copy __va_copy \
+ seteuid strerror putenv iconv_open locale_charset nl_langinfo getxattr \
+ extattr_get_link sigaction sigprocmask setattrlist getgrouplist \
+- initgroups utimensat posix_fallocate attropen setvbuf nanosleep usleep)
++ initgroups utimensat posix_fallocate attropen setvbuf )
+
+ dnl cygwin iconv.h defines iconv_open as libiconv_open
+ if test x"$ac_cv_func_iconv_open" != x"yes"; then
diff --git a/packaging/rsync.spec b/packaging/rsync.spec
index f6ff87d3..06611846 100644
--- a/packaging/rsync.spec
+++ b/packaging/rsync.spec
@@ -7,6 +7,7 @@ Url: http://rsync.samba.org/
#X-Vcs-Url: git://git.samba.org/rsync
Group: Base/Utilities
Source0: http://rsync.samba.org/ftp/rsync/src/rsync-%{version}.tar.gz
+Source10: Chnage_nanosleep_to_gettimeofday.patch
Source1001: rsync.manifest
BuildRequires: libacl-devel
BuildRequires: libattr-devel
@@ -34,6 +35,7 @@ Support filrs for rsync
%prep
%setup -q
cp %{SOURCE1001} .
+%{__patch} -p1 < %{SOURCE10}
%build
export CFLAGS+=" -fPIC"