diff options
author | Slávek Banko <[email protected]> | 2020-10-31 01:41:46 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-10-31 01:41:46 +0100 |
commit | a815976a0aebcb84d0d4290b4f17f015f7212436 (patch) | |
tree | 43143be42ad6b7050ffb0cdc0d367986d88df3fa /freebsd/tdebase/files | |
parent | bf83c213311228cac7361c123ee73d10b664ddbd (diff) | |
download | tde-packaging-a815976a0aebcb84d0d4290b4f17f015f7212436.tar.gz tde-packaging-a815976a0aebcb84d0d4290b4f17f015f7212436.zip |
FreeBSD: Update for final release R14.0.9.
Switch several applications to CMake.
Add ports for several applications.
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'freebsd/tdebase/files')
-rw-r--r-- | freebsd/tdebase/files/patch-bp000-fix-tdmlib-log-symbol-redefinition.diff | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/freebsd/tdebase/files/patch-bp000-fix-tdmlib-log-symbol-redefinition.diff b/freebsd/tdebase/files/patch-bp000-fix-tdmlib-log-symbol-redefinition.diff new file mode 100644 index 000000000..37d9c6687 --- /dev/null +++ b/freebsd/tdebase/files/patch-bp000-fix-tdmlib-log-symbol-redefinition.diff @@ -0,0 +1,47 @@ +commit 5b7a534126e2ed2d26d75c1321a9bc58a5a95a29 +Author: Slávek Banko <[email protected]> +Date: Thu Oct 29 00:09:36 2020 +0100 + + Fix FTBFS due to redefine the 'log' symbol in tdmlib. + + Signed-off-by: Slávek Banko <[email protected]> + +diff --git a/tdmlib/kgreet_pam.cpp b/tdmlib/kgreet_pam.cpp +index e7a5f074..69eac485 100644 +--- a/tdmlib/kgreet_pam.cpp ++++ b/tdmlib/kgreet_pam.cpp +@@ -55,7 +55,7 @@ protected: + virtual void contextMenuEvent( TQContextMenuEvent * ) {} + }; + +-static FILE* log; ++static FILE *logFile; + static void kg_debug(const char* fmt, ...) + { + va_list lst; +@@ -63,8 +63,8 @@ static void kg_debug(const char* fmt, ...) + + #ifdef PAM_GREETER_DEBUG + #if 0 +- vfprintf(log, fmt, lst); +- fflush(log); ++ vfprintf(logFile, fmt, lst); ++ fflush(logFile); + #else + char buf[6000]; + sprintf(buf, "*** %s\n", fmt); +@@ -691,9 +691,11 @@ static bool init( const TQString &, + static void done( void ) + { + TDEGlobal::locale()->removeCatalogue( "kgreet_pam" ); +- if (log && log != stderr) +- fclose(log); +- log = 0; ++ if (logFile && (logFile != stderr)) ++ { ++ fclose(logFile); ++ } ++ logFile = 0; + } + + static KGreeterPlugin * |