Skip to content

Commit 44a089a

Browse files
author
jan.nijtmans
committed
Merge 8.6
2 parents 888053f + e5f5a66 commit 44a089a

File tree

11 files changed

+50
-8
lines changed

11 files changed

+50
-8
lines changed

.fossil-settings/ignore-glob

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ unix/pkgs8/*
6464
unix/pkgs/*
6565
win/Debug*
6666
win/Release*
67+
win/tcl.pc
6768
win/*.manifest
6869
win/pkgs8/*
6970
win/pkgs/*

.github/workflows/win-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ jobs:
140140
timeout-minutes: 30
141141
env:
142142
ERROR_ON_FAILURES: 1
143+
- name: Install
144+
run: make install
145+
timeout-minutes: 5
143146

144147
# If you add builds with Wine, be sure to define the environment variable
145148
# CI_USING_WINE when running them so that broken tests know not to run.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,6 @@ win/pkgs8/*
6565
win/pkgs/*
6666
win/coffbase.txt
6767
win/tcl.hpj
68+
win/tcl.pc
6869
win/nmakehlp.out
6970
win/nmhlp-out.txt

changes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ to the userbase.
1616
- [Pointer arithmetic with NULL in buildInfoObjCmd()](https://core.tcl-lang.org/tcl/tktview/85fc8b)
1717
- [TclPushVarName(): pointer overflow](https://core.tcl-lang.org/tcl/tktview/77059c)
1818
- [Add IWYU export pragma annotations](https://core.tcl-lang.org/tcl/tktview/c7dc59)
19+
- [Windows: Install man pages](https://core.tcl-lang.org/tcl/tktview/3161b7)
20+
- [Windows: Install pkgconfig](https://core.tcl-lang.org/tcl/tktview/1cf49a)
1921

2022
# Updated bundled packages, libraries, standards, data
2123
- http 2.10.1

generic/tclInt.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5144,8 +5144,8 @@ typedef struct NRE_callback {
51445144
#define NRE_ASSERT(expr)
51455145
#endif
51465146

5147-
#include "tclIntDecls.h"
5148-
#include "tclIntPlatDecls.h"
5147+
#include "tclIntDecls.h" /* IWYU pragma: export */
5148+
#include "tclIntPlatDecls.h" /* IWYU pragma: export */
51495149

51505150
#if !defined(USE_TCL_STUBS) && !defined(TCL_MEM_DEBUG)
51515151
#define Tcl_AttemptAlloc TclpAlloc

generic/tclOO.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ enum TclOOMetadataVersion {
174174
* Include all the public API, generated from tclOO.decls.
175175
*/
176176

177-
#include "tclOODecls.h"
177+
#include "tclOODecls.h" /* IWYU pragma: export */
178178

179179
#ifdef __cplusplus
180180
}

generic/tclOOInt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ MODULE_SCOPE void TclOORegisterInstanceProperty(Object *oPtr,
663663
* Include all the private API, generated from tclOO.decls.
664664
*/
665665

666-
#include "tclOOIntDecls.h"
666+
#include "tclOOIntDecls.h" /* IWYU pragma: export */
667667

668668
/*
669669
* Alternatives to Tcl_Preserve/Tcl_EventuallyFree/Tcl_Release.

generic/tclTomMath.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@
4444
#elif !defined(BN_H_) /* If BN_H_ already defined, don't try to include tommath.h again. */
4545
# include "tommath.h"
4646
#endif
47-
#include "tclTomMathDecls.h"
47+
#include "tclTomMathDecls.h" /* IWYU pragma: export */
4848

4949
#endif

win/Makefile.in

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ TOP_DIR = $(shell cd @srcdir@/..; pwd -W 2>/dev/null || pwd -P)
104104
BUILD_DIR = @builddir@
105105
GENERIC_DIR = $(TOP_DIR)/generic
106106
WIN_DIR = $(TOP_DIR)/win
107+
UNIX_DIR = $(TOP_DIR)/unix
107108
COMPAT_DIR = $(TOP_DIR)/compat
108109
PKGS_DIR = $(TOP_DIR)/pkgs
109110
TOOL_DIR = $(TOP_DIR)/tools
@@ -216,6 +217,11 @@ RM = rm -f
216217
COPY = cp
217218
LN = ln
218219
GDB = gdb
220+
INSTALL = $(SHELL) $(UNIX_DIR)/install-sh -c
221+
INSTALL_PROGRAM = ${INSTALL}
222+
INSTALL_LIBRARY = ${INSTALL}
223+
INSTALL_DATA = ${INSTALL} -m 644
224+
INSTALL_DATA_DIR = ${INSTALL} -d -m 755
219225

220226
###
221227
# Tip 430 - ZipFS Modifications
@@ -901,6 +907,9 @@ install-binaries: binaries
901907
echo Installing $(REG_LIB_FILE); \
902908
$(COPY) $(REG_LIB_FILE) "$(LIB_INSTALL_DIR)/registry${REGDOTVER}"; \
903909
fi
910+
@echo "Installing pkg-config file to $(LIB_INSTALL_DIR)/pkgconfig/"
911+
@$(INSTALL_DATA_DIR) "$(LIB_INSTALL_DIR)/pkgconfig"
912+
@$(INSTALL_DATA) tcl.pc "$(LIB_INSTALL_DIR)/pkgconfig/tcl.pc"
904913

905914
install-libraries: libraries install-tzdata install-msgs
906915
@for i in "$(prefix)/lib" "$(INCLUDE_INSTALL_DIR)" \
@@ -967,7 +976,27 @@ install-msgs:
967976
"$(ROOT_DIR)/library/msgs" "$(SCRIPT_INSTALL_DIR_NATIVE)/msgs"
968977

969978
install-doc: doc
970-
979+
@for i in "$(MAN_INSTALL_DIR)" "$(MAN1_INSTALL_DIR)" "$(MAN3_INSTALL_DIR)" "$(MANN_INSTALL_DIR)" ; \
980+
do \
981+
if [ ! -d "$$i" ] ; then \
982+
echo "Making directory $$i"; \
983+
$(INSTALL_DATA_DIR) "$$i"; \
984+
else true; \
985+
fi; \
986+
done;
987+
@echo "Installing and cross-linking top-level (.1) docs to $(MAN1_INSTALL_DIR)/";
988+
@for i in $(TOP_DIR)/doc/*.1; do \
989+
$(SHELL) $(UNIX_DIR)/installManPage $(MAN_FLAGS) $$i "$(MAN1_INSTALL_DIR)"; \
990+
done
991+
@echo "Installing and cross-linking C API (.3) docs to $(MAN3_INSTALL_DIR)/";
992+
@for i in $(TOP_DIR)/doc/*.3; do \
993+
$(SHELL) $(UNIX_DIR)/installManPage $(MAN_FLAGS) $$i "$(MAN3_INSTALL_DIR)"; \
994+
done
995+
@echo "Installing and cross-linking command (.n) docs to $(MANN_INSTALL_DIR)/";
996+
@for i in $(TOP_DIR)/doc/*.n; do \
997+
$(SHELL) $(UNIX_DIR)/installManPage $(MAN_FLAGS) $$i "$(MANN_INSTALL_DIR)"; \
998+
done
999+
9711000
install-headers:
9721001
@for i in "$(INCLUDE_INSTALL_DIR)"; \
9731002
do \

win/configure

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,7 @@ TCL_STUB_LIB_SPEC
661661
TCL_STUB_LIB_FLAG
662662
TCL_STUB_LIB_FILE
663663
TCL_LIB_SPEC
664+
TCL_LIBS
664665
TCL_IMPORT_LIB_FLAG
665666
TCL_IMPORT_LIB_FILE
666667
TCL_STATIC_LIB_FLAG
@@ -5823,6 +5824,7 @@ eval "TCL_SRC_DIR=\"`cd $srcdir/..; $CYGPATH $(pwd)`\""
58235824

58245825
eval "TCL_DLL_FILE=tcl${VER}${DLLSUFFIX}"
58255826

5827+
eval "TCL_LIB_FLAG=\"-ltcl${VER}${LIBFLAGSUFFIX}\""
58265828
eval "TCL_STUB_LIB_FILE=\"${LIBPREFIX}tclstub${LIBSUFFIX}\""
58275829
eval "TCL_STUB_LIB_FLAG=\"-ltclstub${LIBFLAGSUFFIX}\""
58285830
eval "TCL_BUILD_STUB_LIB_SPEC=\"-L`$CYGPATH $(pwd)` ${TCL_STUB_LIB_FLAG}\""
@@ -5915,6 +5917,7 @@ TCL_WIN_VERSION="$TCL_VERSION.$TCL_RELEASE_LEVEL.`echo $TCL_PATCH_LEVEL | tr -d
59155917

59165918

59175919

5920+
59185921
# win/tcl.m4 doesn't set (CFLAGS)
59195922

59205923

@@ -5971,7 +5974,7 @@ TCL_WIN_VERSION="$TCL_VERSION.$TCL_RELEASE_LEVEL.`echo $TCL_PATCH_LEVEL | tr -d
59715974

59725975

59735976

5974-
ac_config_files="$ac_config_files Makefile tclConfig.sh tclsh.exe.manifest"
5977+
ac_config_files="$ac_config_files Makefile tclConfig.sh tclsh.exe.manifest tcl.pc:../unix/tcl.pc.in"
59755978

59765979
cat >confcache <<\_ACEOF
59775980
# This file is a shell script that caches the results of configure
@@ -6677,6 +6680,7 @@ do
66776680
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
66786681
"tclConfig.sh") CONFIG_FILES="$CONFIG_FILES tclConfig.sh" ;;
66796682
"tclsh.exe.manifest") CONFIG_FILES="$CONFIG_FILES tclsh.exe.manifest" ;;
6683+
"tcl.pc") CONFIG_FILES="$CONFIG_FILES tcl.pc:../unix/tcl.pc.in" ;;
66806684
66816685
*) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
66826686
esac

0 commit comments

Comments
 (0)