!2 del patches to be consistent with open source

Merge pull request !2 from Anonymous_Z/local_master
This commit is contained in:
openeuler-ci-bot 2020-01-11 22:55:04 +08:00 committed by Gitee
commit bd4fbd07aa
5 changed files with 6 additions and 68 deletions

View File

@ -1,15 +0,0 @@
diff --git a/unix/configure.in b/unix/configure.in
index cb412af..abfd43b 100755
--- a/unix/configure.in
+++ b/unix/configure.in
@@ -479,8 +479,8 @@ if test $tk_aqua = no; then
XFT_LIBS=`xft-config --libs 2>/dev/null` || found_xft="no"
if test "$found_xft" = "no" ; then
found_xft=yes
- XFT_CFLAGS=`pkg-config --cflags xft 2>/dev/null` || found_xft="no"
- XFT_LIBS=`pkg-config --libs xft 2>/dev/null` || found_xft="no"
+ XFT_CFLAGS=`pkg-config --cflags xft freetype2 2>/dev/null` || found_xft="no"
+ XFT_LIBS=`pkg-config --libs xft freetype2 2>/dev/null` || found_xft="no"
fi
AC_MSG_RESULT([$found_xft])
dnl make sure that compiling against Xft header file doesn't bomb

View File

@ -1,13 +0,0 @@
diff --git a/unix/Makefile.in b/unix/Makefile.in
index 96f1408..05270c6 100644
--- a/unix/Makefile.in
+++ b/unix/Makefile.in
@@ -739,7 +739,7 @@ install-binaries: $(TK_STUB_LIB_FILE) $(TK_LIB_FILE) ${WISH_EXE}
fi
@echo "Installing $(LIB_FILE) to $(DLL_INSTALL_DIR)/"
@@INSTALL_LIB@
- @chmod 555 "$(DLL_INSTALL_DIR)/$(LIB_FILE)"
+ @chmod 755 "$(DLL_INSTALL_DIR)/$(LIB_FILE)"
@if test -f "tk${MAJOR_VERSION}${MINOR_VERSION}.dll"; then \
$(INSTALL_LIBRARY) "tk${MAJOR_VERSION}${MINOR_VERSION}.dll" "$(DLL_INSTALL_DIR)";\
chmod 555 "$(DLL_INSTALL_DIR)/tk${MAJOR_VERSION}${MINOR_VERSION}.dll";\

View File

@ -1,19 +0,0 @@
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 8a802fb..46a08c1 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -1402,12 +1402,12 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
# get rid of the warnings.
#CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
- SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
+ SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS} -Wl,-soname,${@}'
DL_OBJS="tclLoadDl.o"
DL_LIBS="-ldl"
LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
AS_IF([test $doRpath = yes], [
- CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'])
+ CC_SEARCH_FLAGS=''])
LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
AS_IF([test "`uname -m`" = "alpha"], [CFLAGS="$CFLAGS -mieee"])
AS_IF([test $do64bit = yes], [

View File

@ -1,13 +0,0 @@
diff --git a/unix/tkUnixRFont.c b/unix/tkUnixRFont.c
index cce59a8..78df47a 100644
--- a/unix/tkUnixRFont.c
+++ b/unix/tkUnixRFont.c
@@ -271,7 +271,7 @@ InitFont(
*/
set = FcFontSort(0, pattern, FcTrue, NULL, &result);
- if (!set) {
+ if (!set || set->nfont == 0) {
ckfree(fontPtr);
return NULL;
}

14
tk.spec
View File

@ -3,7 +3,7 @@
Name: tk Name: tk
Version: 8.6.8 Version: 8.6.8
Release: 2 Release: 3
Summary: The graphical toolkit for the Tcl scripting language Summary: The graphical toolkit for the Tcl scripting language
Epoch: 1 Epoch: 1
License: TCL License: TCL
@ -15,11 +15,6 @@ BuildRequires: tcl-devel = %{epoch}:%{version} autoconf libX11-devel libXft-deve
Conflicts: itcl <= 3.2 Conflicts: itcl <= 3.2
Obsoletes: tile <= 0.8.2 Obsoletes: tile <= 0.8.2
Provides: tile = 0.8.2 Provides: tile = 0.8.2
#Acknowledge patches 0001-0004 from redhat or fedora.
Patch0001: tk-8.6.5-make.patch
Patch0002: tk-8.6.7-conf.patch
Patch0003: tk-8.6.5-fix-xft.patch
Patch0004: tk-8.6.7-no-fonts-fix.patch
Patch6001: Bugfix-4966cad4d4-Now-function-NotebookPlaceSlaves-i.patch Patch6001: Bugfix-4966cad4d4-Now-function-NotebookPlaceSlaves-i.patch
Patch6002: Fix-382712ade6-X11-event-generate-.-KeyPress-segfaul.patch Patch6002: Fix-382712ade6-X11-event-generate-.-KeyPress-segfaul.patch
@ -96,8 +91,8 @@ sed -i -e "s|$PWD/unix|%{_libdir}|; s|$PWD|%{_includedir}/%{name}-private|" %{bu
%ldconfig_postun %ldconfig_postun
%files %files
%doc README changes license.terms
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc README changes license.terms
%{_bindir}/wish* %{_bindir}/wish*
%{_datadir}/%{name}%{majorver} %{_datadir}/%{name}%{majorver}
%exclude %{_datadir}/%{name}%{majorver}/tkAppInit.c %exclude %{_datadir}/%{name}%{majorver}/tkAppInit.c
@ -115,9 +110,12 @@ sed -i -e "s|$PWD/unix|%{_libdir}|; s|$PWD|%{_includedir}/%{name}-private|" %{bu
%files help %files help
%{_mandir}/man1/* %{_mandir}/man1/*
%{_mandir}/mann/*
%{_mandir}/man3/* %{_mandir}/man3/*
%{_mandir}/mann/*
%changelog %changelog
* Sat Jan 11 2020 zhangrui <zhangrui182@huawei.com> - 1:8.6.8-3
- del patches to be consistent with open source
* Wed Sep 18 2019 Zaiwang Li<lizaiwang1@huawei.com> - 1:8.6.8-2 * Wed Sep 18 2019 Zaiwang Li<lizaiwang1@huawei.com> - 1:8.6.8-2
- Init package - Init package