Merge pull request #271362 from pbsds/rm-dead-patches
treewide: remove unreferenced patch files
This commit is contained in:
commit
ba75066821
83 changed files with 0 additions and 4422 deletions
|
@ -1,93 +0,0 @@
|
|||
diff --git a/plug-ins/pdf/pdf-import.cpp b/plug-ins/pdf/pdf-import.cpp
|
||||
index 189737908..a2a479693 100644
|
||||
--- a/plug-ins/pdf/pdf-import.cpp
|
||||
+++ b/plug-ins/pdf/pdf-import.cpp
|
||||
@@ -152,12 +152,12 @@ public :
|
||||
void
|
||||
updateLineDash (GfxState *state)
|
||||
{
|
||||
- double *dashPattern;
|
||||
- int dashLength;
|
||||
- double dashStart;
|
||||
-
|
||||
- state->getLineDash (&dashPattern, &dashLength, &dashStart);
|
||||
- this->dash_length = dashLength ? dashPattern[0] * scale : 1.0;
|
||||
+ const double *dashPattern=NULL;
|
||||
+ int dashLength=0;
|
||||
+ double dashStart=0;
|
||||
+ const std::vector<double> &dash = state->getLineDash(&dashStart); // > Poppler 22.09 ...
|
||||
+ dashPattern = dash.data();
|
||||
+ dashLength = dash.size();
|
||||
|
||||
if (dashLength == 0)
|
||||
this->line_style = DIA_LINE_STYLE_SOLID;
|
||||
@@ -318,10 +318,11 @@ public :
|
||||
//FIXME: Dia is really unhappy about zero size fonts
|
||||
if (!(state->getFontSize() > 0.0))
|
||||
return;
|
||||
- GfxFont *f = state->getFont();
|
||||
+ const std::shared_ptr<GfxFont> f = state->getFont(); // poppler 22.05 ... header changed
|
||||
+ gconstpointer f1 = &f; // GLib typedef const void * gconstpointer;
|
||||
|
||||
// instead of building the same font over and over again
|
||||
- if (g_hash_table_lookup (this->font_map, f)) {
|
||||
+ if (g_hash_table_lookup (this->font_map, f1)) {
|
||||
++font_map_hits;
|
||||
return;
|
||||
}
|
||||
@@ -333,8 +334,9 @@ public :
|
||||
gchar *family = g_strdup (f->getFamily() ? f->getFamily()->c_str() : "sans");
|
||||
|
||||
// we are (not anymore) building the same font over and over again
|
||||
+ f1 = &f;
|
||||
g_print ("Font 0x%x: '%s' size=%g (* %g)\n",
|
||||
- GPOINTER_TO_INT (f), family, state->getTransformedFontSize(), scale);
|
||||
+ GPOINTER_TO_INT (f1), family, state->getTransformedFontSize(), scale);
|
||||
|
||||
// now try to make a fontname Dia/Pango can cope with
|
||||
// strip style postfix - we already have extracted the style bits above
|
||||
@@ -354,7 +356,9 @@ public :
|
||||
fsize *= fabs(fm[3] / fm[0]);
|
||||
font = dia_font_new (family, style, fsize * scale / 0.8);
|
||||
|
||||
- g_hash_table_insert (this->font_map, f, font);
|
||||
+ f1 = &f;
|
||||
+ gpointer f2 = (gpointer)f1; // GLib typedef void* gpointer;
|
||||
+ g_hash_table_insert (this->font_map, f2, font);
|
||||
g_free (family);
|
||||
}
|
||||
void updateTextShift(GfxState *state, double shift)
|
||||
@@ -721,11 +725,12 @@ DiaOutputDev::drawString(GfxState *state, GooString *s)
|
||||
return;
|
||||
if (!(state->getFontSize() > 0.0))
|
||||
return;
|
||||
- font = (DiaFont *)g_hash_table_lookup (this->font_map, state->getFont());
|
||||
+ gconstpointer f_1 = &state->getFont();
|
||||
+ font = (DiaFont *)g_hash_table_lookup (this->font_map, f_1);
|
||||
|
||||
// we have to decode the string data first
|
||||
{
|
||||
- GfxFont *f = state->getFont();
|
||||
+ const std::shared_ptr<GfxFont> f = state->getFont();
|
||||
const char *p = s->c_str();
|
||||
CharCode code;
|
||||
int j = 0, m, n;
|
||||
@@ -870,8 +875,8 @@ import_pdf(const gchar *filename, DiagramData *dia, DiaContext *ctx, void* user_
|
||||
std::unique_ptr<PDFDoc> doc;
|
||||
GooString *fileName = new GooString(filename);
|
||||
// no passwords yet
|
||||
- GooString *ownerPW = NULL;
|
||||
- GooString *userPW = NULL;
|
||||
+ const std::optional<GooString> ownerPW;
|
||||
+ const std::optional<GooString> userPW;
|
||||
gboolean ret = FALSE;
|
||||
|
||||
// without this we will get strange crashes (at least with /O2 build)
|
||||
@@ -899,6 +904,7 @@ import_pdf(const gchar *filename, DiagramData *dia, DiaContext *ctx, void* user_
|
||||
delete diaOut;
|
||||
ret = TRUE;
|
||||
}
|
||||
+ doc.reset();
|
||||
delete fileName;
|
||||
|
||||
return ret;
|
|
@ -1,200 +0,0 @@
|
|||
ls diff --git focusblur-3.2.6/src/aaa.h focusblur-3.2.6/src/aaa.h
|
||||
index 4a6d90b..c74cab2 100644
|
||||
--- focusblur-3.2.6/src/aaa.h
|
||||
+++ focusblur-3.2.6/src/aaa.h
|
||||
@@ -19,8 +19,7 @@
|
||||
#ifndef __AAA_H__
|
||||
#define __AAA_H__
|
||||
|
||||
-#include <glib/gmacros.h>
|
||||
-#include <glib/gtypes.h>
|
||||
+#include <glib.h>
|
||||
|
||||
|
||||
G_BEGIN_DECLS
|
||||
diff --git focusblur-3.2.6/src/brush.h focusblur-3.2.6/src/brush.h
|
||||
index 685b253..8778fec 100644
|
||||
--- focusblur-3.2.6/src/brush.h
|
||||
+++ focusblur-3.2.6/src/brush.h
|
||||
@@ -22,7 +22,7 @@
|
||||
#ifndef __FOCUSBLUR_BRUSH_H__
|
||||
#define __FOCUSBLUR_BRUSH_H__
|
||||
|
||||
-#include <glib/gtypes.h>
|
||||
+#include <glib.h>
|
||||
#include "focusblurtypes.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
diff --git focusblur-3.2.6/src/depthmap.h focusblur-3.2.6/src/depthmap.h
|
||||
index 78f5e99..baee540 100644
|
||||
--- focusblur-3.2.6/src/depthmap.h
|
||||
+++ focusblur-3.2.6/src/depthmap.h
|
||||
@@ -22,7 +22,7 @@
|
||||
#ifndef __FOCUSBLUR_DEPTHMAP_H__
|
||||
#define __FOCUSBLUR_DEPTHMAP_H__
|
||||
|
||||
-#include <glib/gtypes.h>
|
||||
+#include <glib.h>
|
||||
|
||||
#include "focusblurtypes.h"
|
||||
#include "focusblurenums.h"
|
||||
diff --git focusblur-3.2.6/src/diffusion.h focusblur-3.2.6/src/diffusion.h
|
||||
index 07ffe4b..3c1e4b9 100644
|
||||
--- focusblur-3.2.6/src/diffusion.h
|
||||
+++ focusblur-3.2.6/src/diffusion.h
|
||||
@@ -23,7 +23,7 @@
|
||||
#define __FOCUSBLUR_DIFFUSION_H__
|
||||
|
||||
|
||||
-#include <glib/gtypes.h>
|
||||
+#include <glib.h>
|
||||
|
||||
#include "focusblur.h"
|
||||
#include "focusblurtypes.h"
|
||||
diff --git focusblur-3.2.6/src/fftblur.h focusblur-3.2.6/src/fftblur.h
|
||||
index 124bcba..cd809fa 100644
|
||||
--- focusblur-3.2.6/src/fftblur.h
|
||||
+++ focusblur-3.2.6/src/fftblur.h
|
||||
@@ -23,8 +23,7 @@
|
||||
#define __FOCUSBLUR_FFTBLUR_H__
|
||||
|
||||
|
||||
-#include <glib/gmacros.h>
|
||||
-#include <glib/gtypes.h>
|
||||
+#include <glib.h>
|
||||
#include <libgimpwidgets/gimpwidgetstypes.h>
|
||||
|
||||
#include "focusblurparam.h"
|
||||
diff --git focusblur-3.2.6/src/fftblurbuffer.h focusblur-3.2.6/src/fftblurbuffer.h
|
||||
index b34d682..42e6380 100644
|
||||
--- focusblur-3.2.6/src/fftblurbuffer.h
|
||||
+++ focusblur-3.2.6/src/fftblurbuffer.h
|
||||
@@ -28,8 +28,7 @@
|
||||
#endif
|
||||
#include <fftw3.h>
|
||||
|
||||
-#include <glib/gmacros.h>
|
||||
-#include <glib/gtypes.h>
|
||||
+#include <glib.h>
|
||||
#include <gtk/gtkstyle.h>
|
||||
#include <libgimp/gimptypes.h>
|
||||
#include <libgimpwidgets/gimpwidgetstypes.h>
|
||||
diff --git focusblur-3.2.6/src/fftblurproc.h focusblur-3.2.6/src/fftblurproc.h
|
||||
index 495572d..10a34f4 100644
|
||||
--- focusblur-3.2.6/src/fftblurproc.h
|
||||
+++ focusblur-3.2.6/src/fftblurproc.h
|
||||
@@ -23,8 +23,7 @@
|
||||
#define __FOCUSBLUR_FFTBLUR_PROC_H__
|
||||
|
||||
|
||||
-#include <glib/gmacros.h>
|
||||
-#include <glib/gtypes.h>
|
||||
+#include <glib.h>
|
||||
|
||||
#include "focusblurtypes.h"
|
||||
|
||||
diff --git focusblur-3.2.6/src/focusblur.h focusblur-3.2.6/src/focusblur.h
|
||||
index 54ca40a..d7e13a6 100644
|
||||
--- focusblur-3.2.6/src/focusblur.h
|
||||
+++ focusblur-3.2.6/src/focusblur.h
|
||||
@@ -22,7 +22,7 @@
|
||||
#ifndef __FOCUSBLUR_H__
|
||||
#define __FOCUSBLUR_H__
|
||||
|
||||
-#include <glib/gmacros.h>
|
||||
+#include <glib.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
diff --git focusblur-3.2.6/src/focusblurparam.h focusblur-3.2.6/src/focusblurparam.h
|
||||
index 64c887b..32865b4 100644
|
||||
--- focusblur-3.2.6/src/focusblurparam.h
|
||||
+++ focusblur-3.2.6/src/focusblurparam.h
|
||||
@@ -22,8 +22,7 @@
|
||||
#ifndef __FOCUSBLUR_PARAM_H__
|
||||
#define __FOCUSBLUR_PARAM_H__
|
||||
|
||||
-#include <glib/gmacros.h>
|
||||
-#include <glib/gtypes.h>
|
||||
+#include <glib.h>
|
||||
#include <gtk/gtkstyle.h>
|
||||
#include <libgimp/gimptypes.h>
|
||||
|
||||
diff --git focusblur-3.2.6/src/focusblurstock.h focusblur-3.2.6/src/focusblurstock.h
|
||||
index 15f3603..cfc0567 100644
|
||||
--- focusblur-3.2.6/src/focusblurstock.h
|
||||
+++ focusblur-3.2.6/src/focusblurstock.h
|
||||
@@ -22,7 +22,7 @@
|
||||
#ifndef __FOCUSBLUR_STOCK_H__
|
||||
#define __FOCUSBLUR_STOCK_H__
|
||||
|
||||
-#include <glib/gtypes.h>
|
||||
+#include <glib.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
diff --git focusblur-3.2.6/src/focusblurtypes.h focusblur-3.2.6/src/focusblurtypes.h
|
||||
index 0954c60..1531c84 100644
|
||||
--- focusblur-3.2.6/src/focusblurtypes.h
|
||||
+++ focusblur-3.2.6/src/focusblurtypes.h
|
||||
@@ -22,7 +22,7 @@
|
||||
#ifndef __FOCUSBLUR_TYPES_H__
|
||||
#define __FOCUSBLUR_TYPES_H__
|
||||
|
||||
-#include <glib/gmacros.h>
|
||||
+#include <glib.h>
|
||||
|
||||
|
||||
G_BEGIN_DECLS
|
||||
diff --git focusblur-3.2.6/src/interface.h focusblur-3.2.6/src/interface.h
|
||||
index 6defd27..e819c60 100644
|
||||
--- focusblur-3.2.6/src/interface.h
|
||||
+++ focusblur-3.2.6/src/interface.h
|
||||
@@ -22,7 +22,7 @@
|
||||
#ifndef __FOCUSBLUR_INTERFACE_H__
|
||||
#define __FOCUSBLUR_INTERFACE_H__
|
||||
|
||||
-#include <glib/gtypes.h>
|
||||
+#include <glib.h>
|
||||
|
||||
#include "focusblurtypes.h"
|
||||
|
||||
diff --git focusblur-3.2.6/src/render.h focusblur-3.2.6/src/render.h
|
||||
index febbd24..a501f1e 100644
|
||||
--- focusblur-3.2.6/src/render.h
|
||||
+++ focusblur-3.2.6/src/render.h
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
-#include <glib/gtypes.h>
|
||||
+#include <glib.h>
|
||||
//#include <libgimp/gimp.h>
|
||||
#include <libgimp/gimpui.h>
|
||||
|
||||
diff --git focusblur-3.2.6/src/shine.h focusblur-3.2.6/src/shine.h
|
||||
index c5a3621..86b4c09 100644
|
||||
--- focusblur-3.2.6/src/shine.h
|
||||
+++ focusblur-3.2.6/src/shine.h
|
||||
@@ -22,7 +22,7 @@
|
||||
#ifndef __FOCUSBLUR_SHINE_H__
|
||||
#define __FOCUSBLUR_SHINE_H__
|
||||
|
||||
-#include <glib/gtypes.h>
|
||||
+#include <glib.h>
|
||||
#include <libgimp/gimptypes.h>
|
||||
|
||||
#include "focusblurtypes.h"
|
||||
diff --git focusblur-3.2.6/src/source.h focusblur-3.2.6/src/source.h
|
||||
index 50d34ca..8eec35c 100644
|
||||
--- focusblur-3.2.6/src/source.h
|
||||
+++ focusblur-3.2.6/src/source.h
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
-#include <glib/gtypes.h>
|
||||
+#include <glib.h>
|
||||
#include <libgimp/gimptypes.h>
|
||||
|
||||
#include "focusblurtypes.h"
|
|
@ -1,12 +0,0 @@
|
|||
diff -urN Cura-15.04.old/Cura/util/sliceEngine.py Cura-15.04/Cura/util/sliceEngine.py
|
||||
--- Cura-15.04.old/Cura/util/sliceEngine.py 2016-05-07 20:34:17.305020334 +0200
|
||||
+++ Cura-15.04/Cura/util/sliceEngine.py 2016-05-07 20:40:02.993286467 +0200
|
||||
@@ -343,7 +343,7 @@
|
||||
objMax[1] = max(oMax[1], objMax[1])
|
||||
if objMin is None:
|
||||
return
|
||||
- pos += (objMin + objMax) / 2.0 * 1000
|
||||
+ pos = numpy.add( pos, (objMin + objMax) / 2.0 * 1000, out=pos, casting='unsafe')
|
||||
commandList += ['-s', 'posx=%d' % int(pos[0]), '-s', 'posy=%d' % int(pos[1])]
|
||||
|
||||
vertexTotal = [0] * 4
|
|
@ -1,15 +0,0 @@
|
|||
index 7ea81c7..0c19767 100644
|
||||
--- a/src/utils/iso5426converter.cpp
|
||||
+++ b/src/utils/iso5426converter.cpp
|
||||
@@ -1211,7 +1211,11 @@ QChar Iso5426Converter::getCombiningChar(uint c) {
|
||||
return 0x1EF1; // SMALL LETTER U WITH HORN AND DOT BELOW
|
||||
|
||||
default:
|
||||
+#if (QT_VERSION < QT_VERSION_CHECK(5, 14, 0))
|
||||
+ myDebug() << "no match for" << hex << c;
|
||||
+#else
|
||||
myDebug() << "no match for" << Qt::hex << c;
|
||||
+#endif
|
||||
return QChar();
|
||||
}
|
||||
}
|
|
@ -1,55 +0,0 @@
|
|||
From 86cc27022015697a61d1ec1b13e52f9dbe7f6c57 Mon Sep 17 00:00:00 2001
|
||||
From: worldofpeace <worldofpeace@protonmail.ch>
|
||||
Date: Mon, 23 Mar 2020 18:34:00 -0400
|
||||
Subject: [PATCH] Adjust get_data_path for NixOS
|
||||
|
||||
We construct the ulauncher data path from xdg_data_dirs
|
||||
and prevent it from being a nix store path or being xdg_data_home.
|
||||
We do this to prevent /nix/store paths being hardcoded to shortcuts.json.
|
||||
On NixOS this path will either be /run/current-system/sw/share/ulauncher
|
||||
or $HOME/.nix-profile/share/ulauncher if the user used nix-env.
|
||||
---
|
||||
ulauncher/config.py | 27 ++++++++++++++++++---------
|
||||
1 file changed, 18 insertions(+), 9 deletions(-)
|
||||
|
||||
diff --git a/ulauncher/config.py b/ulauncher/config.py
|
||||
index f21014e..cc636e1 100644
|
||||
--- a/ulauncher/config.py
|
||||
+++ b/ulauncher/config.py
|
||||
@@ -50,15 +50,24 @@ def get_data_path():
|
||||
is specified at installation time.
|
||||
"""
|
||||
|
||||
- # Get pathname absolute or relative.
|
||||
- path = os.path.join(
|
||||
- os.path.dirname(__file__), __ulauncher_data_directory__)
|
||||
-
|
||||
- abs_data_path = os.path.abspath(path)
|
||||
- if not os.path.exists(abs_data_path):
|
||||
- raise ProjectPathNotFoundError(abs_data_path)
|
||||
-
|
||||
- return abs_data_path
|
||||
+ paths = list(
|
||||
+ filter(
|
||||
+ os.path.exists,
|
||||
+ [
|
||||
+ os.path.join(dir, "ulauncher")
|
||||
+ for dir in xdg_data_dirs
|
||||
+ # Get path that isn't in the /nix/store so they don't get hardcoded into configs
|
||||
+ if not dir.startswith("/nix/store/")
|
||||
+ # Exclude .local/share/ulauncher which isn't what we want
|
||||
+ if not dir.startswith(xdg_data_home)
|
||||
+ ],
|
||||
+ )
|
||||
+ )
|
||||
+
|
||||
+ try:
|
||||
+ return paths[0]
|
||||
+ except:
|
||||
+ raise ProjectPathNotFoundError()
|
||||
|
||||
|
||||
def is_wayland():
|
||||
--
|
||||
2.25.1
|
||||
|
|
@ -1,98 +0,0 @@
|
|||
diff --git a/libs/widgets/KoCsvImportDialog.cpp b/libs/widgets/KoCsvImportDialog.cpp
|
||||
index 0ffdcf6..cdca006 100644
|
||||
--- a/libs/widgets/KoCsvImportDialog.cpp
|
||||
+++ b/libs/widgets/KoCsvImportDialog.cpp
|
||||
@@ -21,6 +21,7 @@
|
||||
#include "KoCsvImportDialog.h"
|
||||
|
||||
// Qt
|
||||
+#include <QButtonGroup>
|
||||
#include <QTextCodec>
|
||||
#include <QTextStream>
|
||||
|
||||
diff --git a/libs/widgets/KoPageLayoutWidget.cpp b/libs/widgets/KoPageLayoutWidget.cpp
|
||||
index f91555c..a3816f9 100644
|
||||
--- a/libs/widgets/KoPageLayoutWidget.cpp
|
||||
+++ b/libs/widgets/KoPageLayoutWidget.cpp
|
||||
@@ -23,6 +23,8 @@
|
||||
|
||||
#include <KoUnit.h>
|
||||
|
||||
+#include <QButtonGroup>
|
||||
+
|
||||
class Q_DECL_HIDDEN KoPageLayoutWidget::Private
|
||||
{
|
||||
public:
|
||||
diff --git a/plugins/chartshape/dialogs/TableEditorDialog.cpp b/plugins/chartshape/dialogs/TableEditorDialog.cpp
|
||||
index c0d5136..d2a772e 100644
|
||||
--- a/plugins/chartshape/dialogs/TableEditorDialog.cpp
|
||||
+++ b/plugins/chartshape/dialogs/TableEditorDialog.cpp
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
// Qt
|
||||
#include <QAbstractItemModel>
|
||||
+#include <QAction>
|
||||
|
||||
// Calligra
|
||||
#include <KoIcon.h>
|
||||
diff --git a/plugins/formulashape/FormulaToolWidget.cpp b/plugins/formulashape/FormulaToolWidget.cpp
|
||||
index ed10919..8f52177 100644
|
||||
--- a/plugins/formulashape/FormulaToolWidget.cpp
|
||||
+++ b/plugins/formulashape/FormulaToolWidget.cpp
|
||||
@@ -30,6 +30,7 @@
|
||||
#include <QWidgetAction>
|
||||
#include <QTableWidget>
|
||||
#include <QAction>
|
||||
+#include <QHeaderView>
|
||||
#include <QMenu>
|
||||
|
||||
FormulaToolWidget::FormulaToolWidget( KoFormulaTool* tool, QWidget* parent )
|
||||
diff --git a/sheets/dialogs/LayoutDialog.cpp b/sheets/dialogs/LayoutDialog.cpp
|
||||
index a0a9832..7d7db53 100644
|
||||
--- a/sheets/dialogs/LayoutDialog.cpp
|
||||
+++ b/sheets/dialogs/LayoutDialog.cpp
|
||||
@@ -36,6 +36,7 @@
|
||||
#include <math.h>
|
||||
|
||||
#include <QIntValidator>
|
||||
+#include <QButtonGroup>
|
||||
#include <QCheckBox>
|
||||
#include <QFrame>
|
||||
#include <QLabel>
|
||||
diff --git a/words/part/dialogs/KWAnchoringProperties.cpp b/words/part/dialogs/KWAnchoringProperties.cpp
|
||||
index d64208c..bfddb3a 100644
|
||||
--- a/words/part/dialogs/KWAnchoringProperties.cpp
|
||||
+++ b/words/part/dialogs/KWAnchoringProperties.cpp
|
||||
@@ -35,6 +35,7 @@
|
||||
|
||||
#include <kundo2command.h>
|
||||
|
||||
+#include <QButtonGroup>
|
||||
#include <QComboBox>
|
||||
|
||||
const int KWAnchoringProperties::vertRels[4][20] = {
|
||||
diff --git a/words/part/dialogs/KWRunAroundProperties.cpp b/words/part/dialogs/KWRunAroundProperties.cpp
|
||||
index e38599a..7e8b2d5 100644
|
||||
--- a/words/part/dialogs/KWRunAroundProperties.cpp
|
||||
+++ b/words/part/dialogs/KWRunAroundProperties.cpp
|
||||
@@ -28,6 +28,8 @@
|
||||
|
||||
#include <kundo2command.h>
|
||||
|
||||
+#include <QButtonGroup>
|
||||
+
|
||||
KWRunAroundProperties::KWRunAroundProperties(FrameConfigSharedState *state)
|
||||
: m_state(state)
|
||||
{
|
||||
diff --git a/stage/part/KPrPresentationTool.cpp b/stage/part/KPrPresentationTool.cpp
|
||||
index ae743da..3007f91 100644
|
||||
--- a/stage/part/KPrPresentationTool.cpp
|
||||
+++ b/stage/part/KPrPresentationTool.cpp
|
||||
@@ -32,6 +32,7 @@
|
||||
#include <QDesktopServices>
|
||||
#include <QUrl>
|
||||
#include <QDBusConnection>
|
||||
+#include <QFrame>
|
||||
|
||||
#include <KoShape.h>
|
||||
#include <KoShapeManager.h>
|
|
@ -1,31 +0,0 @@
|
|||
diff --git a/shapely/geos.py b/shapely/geos.py
|
||||
index 88c5f53..1ccd6e4 100644
|
||||
--- a/shapely/geos.py
|
||||
+++ b/shapely/geos.py
|
||||
@@ -96,6 +96,7 @@ if sys.platform.startswith('linux'):
|
||||
alt_paths = [
|
||||
'libgeos_c.so.1',
|
||||
'libgeos_c.so',
|
||||
+ '@libgeos_c@',
|
||||
]
|
||||
_lgeos = load_dll('geos_c', fallbacks=alt_paths)
|
||||
|
||||
@@ -160,6 +161,7 @@ elif sys.platform == 'darwin':
|
||||
"/usr/local/lib/libgeos_c.dylib",
|
||||
# homebrew Apple Silicon
|
||||
"/opt/homebrew/lib/libgeos_c.dylib",
|
||||
+ "@libgeos_c@",
|
||||
]
|
||||
_lgeos = load_dll('geos_c', fallbacks=alt_paths)
|
||||
|
||||
diff --git a/tests/test_dlls.py b/tests/test_dlls.py
|
||||
index c71da8e..c36262c 100644
|
||||
--- a/tests/test_dlls.py
|
||||
+++ b/tests/test_dlls.py
|
||||
@@ -18,4 +18,5 @@ class LoadingTestCase(unittest.TestCase):
|
||||
'/opt/homebrew/lib/libgeos_c.dylib', # homebrew (macOS)
|
||||
os.path.join(sys.prefix, "lib", "libgeos_c.so"), # anaconda (Linux)
|
||||
'libgeos_c.so.1',
|
||||
- 'libgeos_c.so'])
|
||||
+ 'libgeos_c.so',
|
||||
+ '@libgeos_c@'])
|
|
@ -1,26 +0,0 @@
|
|||
diff --git i/tests/test-yacas w/tests/test-yacas
|
||||
index b375d78b..0e3a616b 100755
|
||||
--- i/tests/test-yacas
|
||||
+++ w/tests/test-yacas
|
||||
@@ -35,9 +35,9 @@ FAILED_TESTS="" # list of failed tests
|
||||
FAILURES=0 # number of failed tests
|
||||
TOTALTESTS=0 # total number of tests
|
||||
|
||||
-TESTFILE=/tmp/test-yacas.$$
|
||||
-TIMEFILE=/tmp/time-yacas.$$
|
||||
-VERSIONF=/tmp/version-yacas-$$.ys
|
||||
+TESTFILE="$(mktemp -t test-yacas.XXX)"
|
||||
+TIMEFILE="$(mktemp -t time-yacas.XXX)"
|
||||
+VERSIONF="$(mktemp -t version-yacas-XXX.ys)"
|
||||
LOGFILE=yacas-logfile.txt
|
||||
echo "Print(Version());" > $VERSIONF
|
||||
VERSION=`$CMD $VERSIONF`
|
||||
@@ -69,7 +69,7 @@ for scr in $SCRIPTS; do
|
||||
# fi
|
||||
echo "Running $scr"
|
||||
if [ -f $TESTFILE ]; then rm $TESTFILE ; fi
|
||||
- /bin/bash -c "time -p ($CMD $f || echo \"Error: exit status $?\") | tee $TESTFILE" \
|
||||
+ bash -c "time -p ($CMD $f || echo \"Error: exit status $?\") | tee $TESTFILE" \
|
||||
2> $TIMEFILE \
|
||||
|| (echo "Error -- User interrupt" > $TESTFILE)
|
||||
# cat $TIMEFILE
|
|
@ -1,52 +0,0 @@
|
|||
diff --git a/unitest.py b/unitest.py
|
||||
--- a/unitest.py
|
||||
+++ b/unitest.py
|
||||
@@ -59,6 +59,7 @@ class TestGlances(unittest.TestCase):
|
||||
"""The function is called *every time* before test_*."""
|
||||
print('\n' + '=' * 78)
|
||||
|
||||
+ @unittest.skip("Requires access to /etc/mtab")
|
||||
def test_000_update(self):
|
||||
"""Update stats (mandatory step for all the stats).
|
||||
|
||||
@@ -87,6 +88,7 @@ class TestGlances(unittest.TestCase):
|
||||
for plugin in plugins_to_check:
|
||||
self.assertTrue(plugin in plugins_list)
|
||||
|
||||
+ @unittest.skip("Fails on NixOS")
|
||||
def test_002_system(self):
|
||||
"""Check SYSTEM plugin."""
|
||||
stats_to_check = ['hostname', 'os_name']
|
||||
@@ -97,6 +99,7 @@ class TestGlances(unittest.TestCase):
|
||||
self.assertTrue(stat in stats_grab, msg='Cannot find key: %s' % stat)
|
||||
print('INFO: SYSTEM stats: %s' % stats_grab)
|
||||
|
||||
+ @unittest.skip("Fails on NixOS")
|
||||
def test_003_cpu(self):
|
||||
"""Check CPU plugin."""
|
||||
stats_to_check = ['system', 'user', 'idle']
|
||||
@@ -110,7 +113,7 @@ class TestGlances(unittest.TestCase):
|
||||
self.assertLessEqual(stats_grab[stat], 100)
|
||||
print('INFO: CPU stats: %s' % stats_grab)
|
||||
|
||||
- @unittest.skipIf(WINDOWS, "Load average not available on Windows")
|
||||
+ @unittest.skip("Fails on NixOS")
|
||||
def test_004_load(self):
|
||||
"""Check LOAD plugin."""
|
||||
stats_to_check = ['cpucore', 'min1', 'min5', 'min15']
|
||||
@@ -123,6 +126,7 @@ class TestGlances(unittest.TestCase):
|
||||
self.assertGreaterEqual(stats_grab[stat], 0)
|
||||
print('INFO: LOAD stats: %s' % stats_grab)
|
||||
|
||||
+ @unittest.skip("Fails on NixOS")
|
||||
def test_005_mem(self):
|
||||
"""Check MEM plugin."""
|
||||
stats_to_check = ['available', 'used', 'free', 'total']
|
||||
@@ -135,6 +139,7 @@ class TestGlances(unittest.TestCase):
|
||||
self.assertGreaterEqual(stats_grab[stat], 0)
|
||||
print('INFO: MEM stats: %s' % stats_grab)
|
||||
|
||||
+ @unittest.skip("Fails on NixOS")
|
||||
def test_006_swap(self):
|
||||
"""Check MEMSWAP plugin."""
|
||||
stats_to_check = ['used', 'free', 'total']
|
|
@ -1,48 +0,0 @@
|
|||
diff --git a/effects/internal/texteffect.cpp b/effects/internal/texteffect.cpp
|
||||
index 279f406d9..7fe9e8e72 100644
|
||||
--- a/effects/internal/texteffect.cpp
|
||||
+++ b/effects/internal/texteffect.cpp
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#include "texteffect.h"
|
||||
|
||||
+#include <QPainterPath>
|
||||
#include <QGridLayout>
|
||||
#include <QLabel>
|
||||
#include <QOpenGLTexture>
|
||||
diff --git a/effects/internal/timecodeeffect.cpp b/effects/internal/timecodeeffect.cpp
|
||||
index 4de3e3497..fd0fa6224 100644
|
||||
--- a/effects/internal/timecodeeffect.cpp
|
||||
+++ b/effects/internal/timecodeeffect.cpp
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#include "timecodeeffect.h"
|
||||
|
||||
+#include <QPainterPath>
|
||||
#include <QGridLayout>
|
||||
#include <QLabel>
|
||||
#include <QOpenGLTexture>
|
||||
diff --git a/ui/graphview.cpp b/ui/graphview.cpp
|
||||
index 3e13075cd..c441133a8 100644
|
||||
--- a/ui/graphview.cpp
|
||||
+++ b/ui/graphview.cpp
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#include "graphview.h"
|
||||
|
||||
+#include <QPainterPath>
|
||||
#include <QPainter>
|
||||
#include <QMouseEvent>
|
||||
#include <QtMath>
|
||||
diff --git a/ui/timelineheader.cpp b/ui/timelineheader.cpp
|
||||
index f39065b4f..aa7fd638d 100644
|
||||
--- a/ui/timelineheader.cpp
|
||||
+++ b/ui/timelineheader.cpp
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#include "timelineheader.h"
|
||||
|
||||
+#include <QPainterPath>
|
||||
#include <QPainter>
|
||||
#include <QMouseEvent>
|
||||
#include <QScrollBar>
|
|
@ -1,21 +0,0 @@
|
|||
diff --git a/Makefile b/Makefile
|
||||
index 0070ada..802cef0 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -202,7 +202,7 @@ $(BIN_NAME): $(BIN_OBJS)
|
||||
##### Public rules #####
|
||||
|
||||
all: CPPFLAGS += -DNDEBUG
|
||||
-all: shared static tools
|
||||
+all: shared tools
|
||||
|
||||
# Run with ASAN_OPTIONS="protect_shadow_gap=0" to avoid CUDA OOM errors
|
||||
debug: CFLAGS += -pedantic -fsanitize=undefined -fno-omit-frame-pointer -fno-common -fsanitize=address
|
||||
@@ -232,7 +232,6 @@ install: all
|
||||
# Install header files
|
||||
$(INSTALL) -m 644 $(LIB_INCS) $(DESTDIR)$(includedir)
|
||||
# Install library files
|
||||
- $(INSTALL) -m 644 $(LIB_STATIC) $(DESTDIR)$(libdir)
|
||||
$(INSTALL) -m 755 $(LIB_SHARED) $(DESTDIR)$(libdir)
|
||||
$(LN) -sf $(LIB_SONAME) $(DESTDIR)$(libdir)/$(LIB_SYMLINK)
|
||||
$(LDCONFIG) -n $(DESTDIR)$(libdir)
|
|
@ -1,11 +0,0 @@
|
|||
Index: /trunk/configure
|
||||
===================================================================
|
||||
--- a/configure (revision 90360)
|
||||
+++ b/configure (revision 90377)
|
||||
@@ -1588,5 +1588,5 @@
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "(Qt5 from pkg-config)" >> $LOG
|
||||
- FLGQT5=`pkg-config Qt5Core Qt5Gui --cflags`
|
||||
+ FLGQT5=`pkg-config Qt5Core --cflags`
|
||||
# gcc 4.8 is able to compile with C++11 (see also VBOX_GCC_std in Config.kmk)
|
||||
[ $(($cc_maj * 100 + $cc_min)) -ge 408 ] && FLGQT5="$FLGQT5 -std=c++11"
|
|
@ -1,28 +0,0 @@
|
|||
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
|
||||
index 1d978aed..56665389 100644
|
||||
--- a/src/Compositor.cpp
|
||||
+++ b/src/Compositor.cpp
|
||||
@@ -2365,17 +2365,16 @@ void CCompositor::performUserChecks() {
|
||||
|
||||
static auto* const PSUPPRESSPORTAL = &g_pConfigManager->getConfigValuePtr("misc:suppress_portal_warnings")->intValue;
|
||||
|
||||
- if (!*PSUPPRESSPORTAL) {
|
||||
- if (std::ranges::any_of(BAD_PORTALS, [&](const std::string& portal) { return std::filesystem::exists("/usr/share/xdg-desktop-portal/portals/" + portal + ".portal"); })) {
|
||||
+ static auto* const PORTALDIRENV = getenv("XDG_DESKTOP_PORTAL_DIR");
|
||||
+
|
||||
+ static auto const PORTALDIR = PORTALDIRENV != NULL ? std::string(PORTALDIRENV) : "";
|
||||
+
|
||||
+ if (!*PSUPPRESSPORTAL && PORTALDIR != "") {
|
||||
+ if (std::ranges::any_of(BAD_PORTALS, [&](const std::string& portal) { return std::filesystem::exists(PORTALDIR + "/" + portal + ".portal"); })) {
|
||||
// bad portal detected
|
||||
g_pHyprNotificationOverlay->addNotification("You have one or more incompatible xdg-desktop-portal impls installed. Please remove incompatible ones to avoid issues.",
|
||||
CColor(0), 15000, ICON_ERROR);
|
||||
}
|
||||
-
|
||||
- if (std::filesystem::exists("/usr/share/xdg-desktop-portal/portals/hyprland.portal") && std::filesystem::exists("/usr/share/xdg-desktop-portal/portals/wlr.portal")) {
|
||||
- g_pHyprNotificationOverlay->addNotification("You have xdg-desktop-portal-hyprland and -wlr installed simultaneously. Please uninstall one to avoid issues.", CColor(0),
|
||||
- 15000, ICON_ERROR);
|
||||
- }
|
||||
}
|
||||
}
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
diff --git a/lib/utils/paHelper.js b/lib/utils/paHelper.js
|
||||
index be28d21..a410a63 100755
|
||||
--- a/lib/utils/paHelper.js
|
||||
+++ b/lib/utils/paHelper.js
|
||||
@@ -57,13 +57,7 @@ async function execHelper(type, index = undefined) {
|
||||
return null;
|
||||
}
|
||||
|
||||
- const python = await findPython();
|
||||
-
|
||||
- if (!python) {
|
||||
- return null;
|
||||
- }
|
||||
-
|
||||
- const args = ['/usr/bin/env', python, paUtilPath, type];
|
||||
+ const args = ['@python3@/bin/python', paUtilPath, type];
|
||||
|
||||
if (!isNaN(index)) {
|
||||
args.push(index);
|
||||
diff --git a/pautils/lib/libpulse.py b/pautils/lib/libpulse.py
|
||||
index a32c272..8225f2f 100755
|
||||
--- a/pautils/lib/libpulse.py
|
||||
+++ b/pautils/lib/libpulse.py
|
||||
@@ -16,7 +16,7 @@
|
||||
from ctypes import *
|
||||
|
||||
try:
|
||||
- lib = CDLL('libpulse.so.0')
|
||||
+ lib = CDLL('@pulseaudio@/lib/libpulse.so.0')
|
||||
except:
|
||||
lib = CDLL('libpulse.so')
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
--- a/configure.ac 2019-01-20 20:28:01.309231507 +0100
|
||||
+++ b/configure.ac 2019-01-20 20:31:54.927978927 +0100
|
||||
@@ -137,7 +137,7 @@
|
||||
|
||||
# Find out where the session service file goes
|
||||
# The sad sed hack is recomended by section 27.10 of the automake manual.
|
||||
-DBUS_SESSION_SERVICE_DIR=`pkg-config --variable session_bus_services_dir dbus-1 | sed -e 's,/usr/share,${datarootdir},g'`
|
||||
+DBUS_SESSION_SERVICE_DIR=`pkg-config --variable session_bus_services_dir dbus-1 --define-variable 'datadir=${datadir}'`
|
||||
AC_SUBST(DBUS_SESSION_SERVICE_DIR)
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
|
@ -1,210 +0,0 @@
|
|||
From e63a0dc2a7b185906a93d60e9d5d6deee4950efc Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?M=C3=A9ven=20Car?= <meven.car@enioka.com>
|
||||
Date: Wed, 20 May 2020 14:02:07 +0200
|
||||
Subject: [PATCH] Add a logging category config file
|
||||
|
||||
Makes powerdevil default logging level Warning
|
||||
---
|
||||
CMakeLists.txt | 2 ++
|
||||
daemon/CMakeLists.txt | 6 ++++++
|
||||
daemon/actions/dpms/CMakeLists.txt | 2 +-
|
||||
daemon/backends/CMakeLists.txt | 6 +++---
|
||||
daemon/powerdevil_debug.cpp | 21 ---------------------
|
||||
daemon/powerdevil_debug.h | 26 --------------------------
|
||||
kcmodule/activities/CMakeLists.txt | 2 +-
|
||||
kcmodule/common/CMakeLists.txt | 2 +-
|
||||
kcmodule/profiles/CMakeLists.txt | 2 +-
|
||||
powerdevil.categories | 1 +
|
||||
10 files changed, 16 insertions(+), 54 deletions(-)
|
||||
delete mode 100644 daemon/powerdevil_debug.cpp
|
||||
delete mode 100644 daemon/powerdevil_debug.h
|
||||
create mode 100644 powerdevil.categories
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 5ded8f5a..52a7318c 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -11,6 +11,7 @@ find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
|
||||
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
||||
|
||||
include(ECMSetupVersion)
|
||||
+include(ECMQtDeclareLoggingCategory)
|
||||
include(FeatureSummary)
|
||||
include(KDEInstallDirs)
|
||||
include(KDECMakeSettings)
|
||||
@@ -76,6 +77,7 @@ add_subdirectory(daemon)
|
||||
add_subdirectory(kcmodule)
|
||||
add_subdirectory(doc)
|
||||
|
||||
+install( FILES powerdevil.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
|
||||
install( FILES powerdevil.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFY5RCDIR} )
|
||||
|
||||
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
|
||||
diff --git a/daemon/CMakeLists.txt b/daemon/CMakeLists.txt
|
||||
index 33ca655b..96cc9b7b 100644
|
||||
--- a/daemon/CMakeLists.txt
|
||||
+++ b/daemon/CMakeLists.txt
|
||||
@@ -48,6 +48,12 @@ set(powerdevilcore_SRCS
|
||||
kwinkscreenhelpereffect.cpp
|
||||
)
|
||||
|
||||
+ecm_qt_declare_logging_category(powerdevilcore_SRCS
|
||||
+ HEADER powerdevil_debug.h
|
||||
+ IDENTIFIER POWERDEVIL
|
||||
+ CATEGORY_NAME org.kde.powerdevil
|
||||
+ DEFAULT_SEVERITY Warning)
|
||||
+
|
||||
kconfig_add_kcfg_files(powerdevilcore_SRCS ../PowerDevilSettings.kcfgc)
|
||||
|
||||
# Action DBus Adaptors
|
||||
diff --git a/daemon/actions/dpms/CMakeLists.txt b/daemon/actions/dpms/CMakeLists.txt
|
||||
index f8ca4e20..3b8bd95b 100644
|
||||
--- a/daemon/actions/dpms/CMakeLists.txt
|
||||
+++ b/daemon/actions/dpms/CMakeLists.txt
|
||||
@@ -3,7 +3,7 @@ include_directories(${PowerDevil_SOURCE_DIR}/daemon
|
||||
${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
set(powerdevildpmsaction_SRCS
|
||||
- ${PowerDevil_SOURCE_DIR}/daemon/powerdevil_debug.cpp
|
||||
+ ${CMAKE_CURRENT_BINARY_DIR}/../../powerdevil_debug.cpp
|
||||
powerdevildpmsaction.cpp
|
||||
abstractdpmshelper.cpp
|
||||
xcbdpmshelper.cpp
|
||||
diff --git a/daemon/backends/CMakeLists.txt b/daemon/backends/CMakeLists.txt
|
||||
index 89400446..05c4263e 100644
|
||||
--- a/daemon/backends/CMakeLists.txt
|
||||
+++ b/daemon/backends/CMakeLists.txt
|
||||
@@ -4,7 +4,7 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/upower
|
||||
${X11_Xrandr_INCLUDE_PATH})
|
||||
|
||||
set(powerdevilupowerbackend_SRCS
|
||||
- ${PowerDevil_SOURCE_DIR}/daemon/powerdevil_debug.cpp
|
||||
+ ${CMAKE_CURRENT_BINARY_DIR}/../powerdevil_debug.cpp
|
||||
upower/upowersuspendjob.cpp
|
||||
upower/login1suspendjob.cpp
|
||||
upower/powerdevilupowerbackend.cpp
|
||||
@@ -33,14 +33,14 @@ ${CMAKE_CURRENT_SOURCE_DIR}/upower/dbus/org.freedesktop.UPower.KbdBacklight.xml
|
||||
upower_kbdbacklight_interface)
|
||||
|
||||
## backlight helper executable
|
||||
-add_executable(backlighthelper upower/backlighthelper.cpp ${PowerDevil_SOURCE_DIR}/daemon/powerdevil_debug.cpp ${backlighthelper_mocs})
|
||||
+add_executable(backlighthelper upower/backlighthelper.cpp ${CMAKE_CURRENT_BINARY_DIR}/../powerdevil_debug.cpp ${backlighthelper_mocs})
|
||||
target_link_libraries(backlighthelper Qt5::Core KF5::AuthCore KF5::I18n)
|
||||
install(TARGETS backlighthelper DESTINATION ${KAUTH_HELPER_INSTALL_DIR})
|
||||
kauth_install_helper_files(backlighthelper org.kde.powerdevil.backlighthelper root)
|
||||
kauth_install_actions(org.kde.powerdevil.backlighthelper ${CMAKE_CURRENT_SOURCE_DIR}/upower/backlight_helper_actions.actions)
|
||||
|
||||
## discrete gpu helper executable
|
||||
-add_executable(discretegpuhelper upower/discretegpuhelper.cpp ${PowerDevil_SOURCE_DIR}/daemon/powerdevil_debug.cpp ${discretegpuhelper_mocs})
|
||||
+add_executable(discretegpuhelper upower/discretegpuhelper.cpp ${CMAKE_CURRENT_BINARY_DIR}/../powerdevil_debug.cpp ${discretegpuhelper_mocs})
|
||||
target_link_libraries(discretegpuhelper Qt5::Core KF5::AuthCore)
|
||||
install(TARGETS discretegpuhelper DESTINATION ${KAUTH_HELPER_INSTALL_DIR})
|
||||
kauth_install_helper_files(discretegpuhelper org.kde.powerdevil.discretegpuhelper root)
|
||||
diff --git a/daemon/powerdevil_debug.cpp b/daemon/powerdevil_debug.cpp
|
||||
deleted file mode 100644
|
||||
index 86172c1b..00000000
|
||||
--- a/daemon/powerdevil_debug.cpp
|
||||
+++ /dev/null
|
||||
@@ -1,21 +0,0 @@
|
||||
-/* This file is part of the KDE project
|
||||
- Copyright (C) 2014 Hrvoje Senjan <hrvoje.senjan@gmail.com>
|
||||
-
|
||||
- This library is free software; you can redistribute it and/or
|
||||
- modify it under the terms of the GNU Library General Public
|
||||
- License as published by the Free Software Foundation; either
|
||||
- version 2 of the License, or (at your option) any later version.
|
||||
-
|
||||
- This library is distributed in the hope that it will be useful,
|
||||
- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
- Library General Public License for more details.
|
||||
-
|
||||
- You should have received a copy of the GNU Library General Public License
|
||||
- along with this library; see the file COPYING.LIB. If not, write to
|
||||
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
- Boston, MA 02110-1301, USA.
|
||||
-*/
|
||||
-
|
||||
-#include "powerdevil_debug.h"
|
||||
-Q_LOGGING_CATEGORY(POWERDEVIL, "powerdevil")
|
||||
diff --git a/daemon/powerdevil_debug.h b/daemon/powerdevil_debug.h
|
||||
deleted file mode 100644
|
||||
index fcd9c10f..00000000
|
||||
--- a/daemon/powerdevil_debug.h
|
||||
+++ /dev/null
|
||||
@@ -1,26 +0,0 @@
|
||||
-/* This file is part of the KDE project
|
||||
- Copyright (C) 2014 Hrvoje Senjan <hrvoje.senjan@gmail.com>
|
||||
-
|
||||
- This library is free software; you can redistribute it and/or
|
||||
- modify it under the terms of the GNU Library General Public
|
||||
- License as published by the Free Software Foundation; either
|
||||
- version 2 of the License, or (at your option) any later version.
|
||||
-
|
||||
- This library is distributed in the hope that it will be useful,
|
||||
- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
- Library General Public License for more details.
|
||||
-
|
||||
- You should have received a copy of the GNU Library General Public License
|
||||
- along with this library; see the file COPYING.LIB. If not, write to
|
||||
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
- Boston, MA 02110-1301, USA.
|
||||
-*/
|
||||
-
|
||||
-#ifndef PROCESSCORE_DEBUG_H
|
||||
-#define PROCESSCORE_DEBUG_H
|
||||
-
|
||||
-#include <QLoggingCategory>
|
||||
-Q_DECLARE_LOGGING_CATEGORY(POWERDEVIL)
|
||||
-
|
||||
-#endif
|
||||
diff --git a/kcmodule/activities/CMakeLists.txt b/kcmodule/activities/CMakeLists.txt
|
||||
index 41a6da48..6e248e91 100644
|
||||
--- a/kcmodule/activities/CMakeLists.txt
|
||||
+++ b/kcmodule/activities/CMakeLists.txt
|
||||
@@ -1,7 +1,7 @@
|
||||
add_definitions(-DTRANSLATION_DOMAIN=\"powerdevilactivitiesconfig\")
|
||||
|
||||
set( kcm_powerdevil_activities_SRCS
|
||||
- ${PowerDevil_SOURCE_DIR}/daemon/powerdevil_debug.cpp
|
||||
+ ${CMAKE_CURRENT_BINARY_DIR}/../../daemon/powerdevil_debug.cpp
|
||||
activitypage.cpp
|
||||
activitywidget.cpp
|
||||
../common/ErrorOverlay.cpp
|
||||
diff --git a/kcmodule/common/CMakeLists.txt b/kcmodule/common/CMakeLists.txt
|
||||
index ca483fa7..400b7746 100644
|
||||
--- a/kcmodule/common/CMakeLists.txt
|
||||
+++ b/kcmodule/common/CMakeLists.txt
|
||||
@@ -1,7 +1,7 @@
|
||||
add_definitions(-DTRANSLATION_DOMAIN=\"libpowerdevilcommonconfig\")
|
||||
|
||||
set( powerdevil_config_common_private_SRCS
|
||||
- ${PowerDevil_SOURCE_DIR}/daemon/powerdevil_debug.cpp
|
||||
+ ${CMAKE_CURRENT_BINARY_DIR}/../../daemon/powerdevil_debug.cpp
|
||||
actionconfigwidget.cpp
|
||||
actioneditwidget.cpp
|
||||
ErrorOverlay.cpp
|
||||
diff --git a/kcmodule/profiles/CMakeLists.txt b/kcmodule/profiles/CMakeLists.txt
|
||||
index ac5c96e0..32279089 100644
|
||||
--- a/kcmodule/profiles/CMakeLists.txt
|
||||
+++ b/kcmodule/profiles/CMakeLists.txt
|
||||
@@ -1,7 +1,7 @@
|
||||
add_definitions(-DTRANSLATION_DOMAIN=\"powerdevilprofilesconfig\")
|
||||
|
||||
set( kcm_powerdevil_profiles_SRCS
|
||||
- ${PowerDevil_SOURCE_DIR}/daemon/powerdevil_debug.cpp
|
||||
+ ${CMAKE_CURRENT_BINARY_DIR}/../../daemon/powerdevil_debug.cpp
|
||||
EditPage.cpp
|
||||
${PowerDevil_SOURCE_DIR}/daemon/powerdevilprofilegenerator.cpp
|
||||
)
|
||||
diff --git a/powerdevil.categories b/powerdevil.categories
|
||||
new file mode 100644
|
||||
index 00000000..3147de54
|
||||
--- /dev/null
|
||||
+++ b/powerdevil.categories
|
||||
@@ -0,0 +1 @@
|
||||
+org.kde.powerdevil Powerdevil DEFAULT_SEVERITY [WARNING] IDENTIFIER [POWERDEVIL]
|
||||
--
|
||||
2.25.4
|
||||
|
|
@ -1,43 +0,0 @@
|
|||
commit 4c38abe0967bad78dd6baa61c86923e4d4b346d3
|
||||
Author: Ben Gamari <ben@smart-cactus.org>
|
||||
Date: Sun Nov 5 13:14:19 2017 -0500
|
||||
|
||||
Fix it
|
||||
|
||||
diff --git a/config/gcc-plugin.m4 b/config/gcc-plugin.m4
|
||||
index dd06a58..f4435b8 100644
|
||||
--- a/config/gcc-plugin.m4
|
||||
+++ b/config/gcc-plugin.m4
|
||||
@@ -13,6 +13,32 @@ dnl the same distribution terms as the rest of that program.
|
||||
# Sets the shell variables enable_plugin and pluginlibs.
|
||||
AC_DEFUN([GCC_ENABLE_PLUGINS],
|
||||
[# Check for plugin support
|
||||
+
|
||||
+ # Figure out what objdump we will be using.
|
||||
+ AS_VAR_SET_IF(gcc_cv_objdump,, [
|
||||
+ if test -f $gcc_cv_binutils_srcdir/configure.ac \
|
||||
+ && test -f ../binutils/Makefile \
|
||||
+ && test x$build = x$host; then
|
||||
+ # Single tree build which includes binutils.
|
||||
+ gcc_cv_objdump=../binutils/objdump$build_exeext
|
||||
+ elif test -x objdump$build_exeext; then
|
||||
+ gcc_cv_objdump=./objdump$build_exeext
|
||||
+ elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $[2] ); then
|
||||
+ gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
|
||||
+ else
|
||||
+ AC_PATH_PROG(gcc_cv_objdump, $OBJDUMP_FOR_TARGET)
|
||||
+ fi])
|
||||
+
|
||||
+ AC_MSG_CHECKING(what objdump to use)
|
||||
+ if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
|
||||
+ # Single tree build which includes binutils.
|
||||
+ AC_MSG_RESULT(newly built objdump)
|
||||
+ elif test x$gcc_cv_objdump = x; then
|
||||
+ AC_MSG_RESULT(not found)
|
||||
+ else
|
||||
+ AC_MSG_RESULT($gcc_cv_objdump)
|
||||
+ fi
|
||||
+
|
||||
AC_ARG_ENABLE(plugin,
|
||||
[AS_HELP_STRING([--enable-plugin], [enable plugin support])],
|
||||
enable_plugin=$enableval,
|
|
@ -1,261 +0,0 @@
|
|||
From 6001db79c477b03eacc7e7049560921fb54b7845 Mon Sep 17 00:00:00 2001
|
||||
From: Richard Sandiford <richard.sandiford@arm.com>
|
||||
Date: Mon, 7 Sep 2020 20:15:36 +0100
|
||||
Subject: [PATCH] lra: Avoid cycling on certain subreg reloads [PR96796]
|
||||
|
||||
This PR is about LRA cycling for a reload of the form:
|
||||
|
||||
----------------------------------------------------------------------------
|
||||
Changing pseudo 196 in operand 1 of insn 103 on equiv [r105:DI*0x8+r140:DI]
|
||||
Creating newreg=287, assigning class ALL_REGS to slow/invalid mem r287
|
||||
Creating newreg=288, assigning class ALL_REGS to slow/invalid mem r288
|
||||
103: r203:SI=r288:SI<<0x1+r196:DI#0
|
||||
REG_DEAD r196:DI
|
||||
Inserting slow/invalid mem reload before:
|
||||
316: r287:DI=[r105:DI*0x8+r140:DI]
|
||||
317: r288:SI=r287:DI#0
|
||||
----------------------------------------------------------------------------
|
||||
|
||||
The problem is with r287. We rightly give it a broad starting class of
|
||||
POINTER_AND_FP_REGS (reduced from ALL_REGS by preferred_reload_class).
|
||||
However, we never make forward progress towards narrowing it down to
|
||||
a specific choice of class (POINTER_REGS or FP_REGS).
|
||||
|
||||
I think in practice we rely on two things to narrow a reload pseudo's
|
||||
class down to a specific choice:
|
||||
|
||||
(1) a restricted class is specified when the pseudo is created
|
||||
|
||||
This happens for input address reloads, where the class is taken
|
||||
from the target's chosen base register class. It also happens
|
||||
for simple REG reloads, where the class is taken from the chosen
|
||||
alternative's constraints.
|
||||
|
||||
(2) uses of the reload pseudo as a direct input operand
|
||||
|
||||
In this case get_reload_reg tries to reuse the existing register
|
||||
and narrow its class, instead of creating a new reload pseudo.
|
||||
|
||||
However, neither occurs here. As described above, r287 rightly
|
||||
starts out with a wide choice of class, ultimately derived from
|
||||
ALL_REGS, so we don't get (1). And as the comments in the PR
|
||||
explain, r287 is never used as an input reload, only the subreg is,
|
||||
so we don't get (2):
|
||||
|
||||
----------------------------------------------------------------------------
|
||||
Choosing alt 13 in insn 317: (0) r (1) w {*movsi_aarch64}
|
||||
Creating newreg=291, assigning class FP_REGS to r291
|
||||
317: r288:SI=r291:SI
|
||||
Inserting insn reload before:
|
||||
320: r291:SI=r287:DI#0
|
||||
----------------------------------------------------------------------------
|
||||
|
||||
IMO, in this case we should rely on the reload of r316 to narrow
|
||||
down the class of r278. Currently we do:
|
||||
|
||||
----------------------------------------------------------------------------
|
||||
Choosing alt 7 in insn 316: (0) r (1) m {*movdi_aarch64}
|
||||
Creating newreg=289 from oldreg=287, assigning class GENERAL_REGS to r289
|
||||
316: r289:DI=[r105:DI*0x8+r140:DI]
|
||||
Inserting insn reload after:
|
||||
318: r287:DI=r289:DI
|
||||
---------------------------------------------------
|
||||
|
||||
i.e. we create a new pseudo register r289 and give *that* pseudo
|
||||
GENERAL_REGS instead. This is because get_reload_reg only narrows
|
||||
down the existing class for OP_IN and OP_INOUT, not OP_OUT.
|
||||
|
||||
But if we have a reload pseudo in a reload instruction and have chosen
|
||||
a specific class for the reload pseudo, I think we should simply install
|
||||
it for OP_OUT reloads too, if the class is a subset of the existing class.
|
||||
We will need to pick such a register whatever happens (for r289 in the
|
||||
example above). And as explained in the PR, doing this actually avoids
|
||||
an unnecessary move via the FP registers too.
|
||||
|
||||
The patch is quite aggressive in that it does this for all reload
|
||||
pseudos in all reload instructions. I wondered about reusing the
|
||||
condition for a reload move in in_class_p:
|
||||
|
||||
INSN_UID (curr_insn) >= new_insn_uid_start
|
||||
&& curr_insn_set != NULL
|
||||
&& ((OBJECT_P (SET_SRC (curr_insn_set))
|
||||
&& ! CONSTANT_P (SET_SRC (curr_insn_set)))
|
||||
|| (GET_CODE (SET_SRC (curr_insn_set)) == SUBREG
|
||||
&& OBJECT_P (SUBREG_REG (SET_SRC (curr_insn_set)))
|
||||
&& ! CONSTANT_P (SUBREG_REG (SET_SRC (curr_insn_set)))))))
|
||||
|
||||
but I can't really justify that on first principles. I think we
|
||||
should apply the rule consistently until we have a specific reason
|
||||
for doing otherwise.
|
||||
|
||||
gcc/
|
||||
PR rtl-optimization/96796
|
||||
* lra-constraints.c (in_class_p): Add a default-false
|
||||
allow_all_reload_class_changes_p parameter. Do not treat
|
||||
reload moves specially when the parameter is true.
|
||||
(get_reload_reg): Try to narrow the class of an existing OP_OUT
|
||||
reload if we're reloading a reload pseudo in a reload instruction.
|
||||
|
||||
gcc/testsuite/
|
||||
PR rtl-optimization/96796
|
||||
* gcc.c-torture/compile/pr96796.c: New test.
|
||||
---
|
||||
gcc/lra-constraints.c | 54 ++++++++++++++----
|
||||
gcc/testsuite/gcc.c-torture/compile/pr96796.c | 55 +++++++++++++++++++
|
||||
2 files changed, 99 insertions(+), 10 deletions(-)
|
||||
create mode 100644 gcc/testsuite/gcc.c-torture/compile/pr96796.c
|
||||
|
||||
diff --git a/gcc/lra-constraints.c b/gcc/lra-constraints.c
|
||||
index 580da9c3ed6..161b721efb1 100644
|
||||
--- a/gcc/lra-constraints.c
|
||||
+++ b/gcc/lra-constraints.c
|
||||
@@ -236,12 +236,17 @@ get_reg_class (int regno)
|
||||
CL. Use elimination first if REG is a hard register. If REG is a
|
||||
reload pseudo created by this constraints pass, assume that it will
|
||||
be allocated a hard register from its allocno class, but allow that
|
||||
- class to be narrowed to CL if it is currently a superset of CL.
|
||||
+ class to be narrowed to CL if it is currently a superset of CL and
|
||||
+ if either:
|
||||
+
|
||||
+ - ALLOW_ALL_RELOAD_CLASS_CHANGES_P is true or
|
||||
+ - the instruction we're processing is not a reload move.
|
||||
|
||||
If NEW_CLASS is nonnull, set *NEW_CLASS to the new allocno class of
|
||||
REGNO (reg), or NO_REGS if no change in its class was needed. */
|
||||
static bool
|
||||
-in_class_p (rtx reg, enum reg_class cl, enum reg_class *new_class)
|
||||
+in_class_p (rtx reg, enum reg_class cl, enum reg_class *new_class,
|
||||
+ bool allow_all_reload_class_changes_p = false)
|
||||
{
|
||||
enum reg_class rclass, common_class;
|
||||
machine_mode reg_mode;
|
||||
@@ -266,7 +271,8 @@ in_class_p (rtx reg, enum reg_class cl, enum reg_class *new_class)
|
||||
typically moves that have many alternatives, and restricting
|
||||
reload pseudos for one alternative may lead to situations
|
||||
where other reload pseudos are no longer allocatable. */
|
||||
- || (INSN_UID (curr_insn) >= new_insn_uid_start
|
||||
+ || (!allow_all_reload_class_changes_p
|
||||
+ && INSN_UID (curr_insn) >= new_insn_uid_start
|
||||
&& curr_insn_set != NULL
|
||||
&& ((OBJECT_P (SET_SRC (curr_insn_set))
|
||||
&& ! CONSTANT_P (SET_SRC (curr_insn_set)))
|
||||
@@ -598,13 +604,12 @@ canonicalize_reload_addr (rtx addr)
|
||||
return addr;
|
||||
}
|
||||
|
||||
-/* Create a new pseudo using MODE, RCLASS, ORIGINAL or reuse already
|
||||
- created input reload pseudo (only if TYPE is not OP_OUT). Don't
|
||||
- reuse pseudo if IN_SUBREG_P is true and the reused pseudo should be
|
||||
- wrapped up in SUBREG. The result pseudo is returned through
|
||||
- RESULT_REG. Return TRUE if we created a new pseudo, FALSE if we
|
||||
- reused the already created input reload pseudo. Use TITLE to
|
||||
- describe new registers for debug purposes. */
|
||||
+/* Create a new pseudo using MODE, RCLASS, ORIGINAL or reuse an existing
|
||||
+ reload pseudo. Don't reuse an existing reload pseudo if IN_SUBREG_P
|
||||
+ is true and the reused pseudo should be wrapped up in a SUBREG.
|
||||
+ The result pseudo is returned through RESULT_REG. Return TRUE if we
|
||||
+ created a new pseudo, FALSE if we reused an existing reload pseudo.
|
||||
+ Use TITLE to describe new registers for debug purposes. */
|
||||
static bool
|
||||
get_reload_reg (enum op_type type, machine_mode mode, rtx original,
|
||||
enum reg_class rclass, bool in_subreg_p,
|
||||
@@ -616,6 +621,35 @@ get_reload_reg (enum op_type type, machine_mode mode, rtx original,
|
||||
|
||||
if (type == OP_OUT)
|
||||
{
|
||||
+ /* Output reload registers tend to start out with a conservative
|
||||
+ choice of register class. Usually this is ALL_REGS, although
|
||||
+ a target might narrow it (for performance reasons) through
|
||||
+ targetm.preferred_reload_class. It's therefore quite common
|
||||
+ for a reload instruction to require a more restrictive class
|
||||
+ than the class that was originally assigned to the reload register.
|
||||
+
|
||||
+ In these situations, it's more efficient to refine the choice
|
||||
+ of register class rather than create a second reload register.
|
||||
+ This also helps to avoid cycling for registers that are only
|
||||
+ used by reload instructions. */
|
||||
+ if (REG_P (original)
|
||||
+ && (int) REGNO (original) >= new_regno_start
|
||||
+ && INSN_UID (curr_insn) >= new_insn_uid_start
|
||||
+ && in_class_p (original, rclass, &new_class, true))
|
||||
+ {
|
||||
+ unsigned int regno = REGNO (original);
|
||||
+ if (lra_dump_file != NULL)
|
||||
+ {
|
||||
+ fprintf (lra_dump_file, " Reuse r%d for output ", regno);
|
||||
+ dump_value_slim (lra_dump_file, original, 1);
|
||||
+ }
|
||||
+ if (new_class != lra_get_allocno_class (regno))
|
||||
+ lra_change_class (regno, new_class, ", change to", false);
|
||||
+ if (lra_dump_file != NULL)
|
||||
+ fprintf (lra_dump_file, "\n");
|
||||
+ *result_reg = original;
|
||||
+ return false;
|
||||
+ }
|
||||
*result_reg
|
||||
= lra_create_new_reg_with_unique_value (mode, original, rclass, title);
|
||||
return true;
|
||||
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr96796.c b/gcc/testsuite/gcc.c-torture/compile/pr96796.c
|
||||
new file mode 100644
|
||||
index 00000000000..8808e62fe77
|
||||
--- /dev/null
|
||||
+++ b/gcc/testsuite/gcc.c-torture/compile/pr96796.c
|
||||
@@ -0,0 +1,55 @@
|
||||
+/* { dg-additional-options "-fcommon" } */
|
||||
+
|
||||
+struct S0 {
|
||||
+ signed f0 : 8;
|
||||
+ unsigned f1;
|
||||
+ unsigned f4;
|
||||
+};
|
||||
+struct S1 {
|
||||
+ long f3;
|
||||
+ char f4;
|
||||
+} g_3_4;
|
||||
+
|
||||
+int g_5, func_1_l_32, func_50___trans_tmp_31;
|
||||
+static struct S0 g_144, g_834, g_1255, g_1261;
|
||||
+
|
||||
+int g_273[120] = {};
|
||||
+int *g_555;
|
||||
+char **g_979;
|
||||
+static int g_1092_0;
|
||||
+static int g_1193;
|
||||
+int safe_mul_func_int16_t_s_s(int si1, int si2) { return si1 * si2; }
|
||||
+static struct S0 *func_50();
|
||||
+int func_1() { func_50(g_3_4, g_5, func_1_l_32, 8, 3); }
|
||||
+void safe_div_func_int64_t_s_s(int *);
|
||||
+void safe_mod_func_uint32_t_u_u(struct S0);
|
||||
+struct S0 *func_50(int p_51, struct S0 p_52, struct S1 p_53, int p_54,
|
||||
+ int p_55) {
|
||||
+ int __trans_tmp_30;
|
||||
+ char __trans_tmp_22;
|
||||
+ short __trans_tmp_19;
|
||||
+ long l_985_1;
|
||||
+ long l_1191[8];
|
||||
+ safe_div_func_int64_t_s_s(g_273);
|
||||
+ __builtin_printf((char*)g_1261.f4);
|
||||
+ safe_mod_func_uint32_t_u_u(g_834);
|
||||
+ g_144.f0 += 1;
|
||||
+ for (;;) {
|
||||
+ struct S1 l_1350 = {&l_1350};
|
||||
+ for (; p_53.f3; p_53.f3 -= 1)
|
||||
+ for (; g_1193 <= 2; g_1193 += 1) {
|
||||
+ __trans_tmp_19 = safe_mul_func_int16_t_s_s(l_1191[l_985_1 + p_53.f3],
|
||||
+ p_55 % (**g_979 = 10));
|
||||
+ __trans_tmp_22 = g_1255.f1 * p_53.f4;
|
||||
+ __trans_tmp_30 = __trans_tmp_19 + __trans_tmp_22;
|
||||
+ if (__trans_tmp_30)
|
||||
+ g_1261.f0 = p_51;
|
||||
+ else {
|
||||
+ g_1255.f0 = p_53.f3;
|
||||
+ int *l_1422 = g_834.f0 = g_144.f4 != (*l_1422)++ > 0 < 0 ^ 51;
|
||||
+ g_555 = ~0;
|
||||
+ g_1092_0 |= func_50___trans_tmp_31;
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+}
|
||||
--
|
||||
2.18.4
|
||||
|
|
@ -1,70 +0,0 @@
|
|||
From 3d0135bf3be416bbe2531dc763d19b749eb2b856 Mon Sep 17 00:00:00 2001
|
||||
From: Jakub Jelinek <jakub@redhat.com>
|
||||
Date: Sat, 17 Apr 2021 11:27:14 +0200
|
||||
Subject: [PATCH] sanitizer: Fix asan against glibc 2.34 [PR100114]
|
||||
|
||||
As mentioned in the PR, SIGSTKSZ is no longer a compile time constant in
|
||||
glibc 2.34 and later, so
|
||||
static const uptr kAltStackSize = SIGSTKSZ * 4;
|
||||
needs dynamic initialization, but is used by a function called indirectly
|
||||
from .preinit_array and therefore before the variable is constructed.
|
||||
This results in using 0 size instead and all asan instrumented programs
|
||||
die with:
|
||||
==91==ERROR: AddressSanitizer failed to allocate 0x0 (0) bytes of SetAlternateSignalStack (error code: 22)
|
||||
|
||||
Here is a cherry-pick from upstream to fix this.
|
||||
|
||||
2021-04-17 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR sanitizer/100114
|
||||
* sanitizer_common/sanitizer_posix_libcdep.cc: Cherry-pick
|
||||
llvm-project revisions 82150606fb11d28813ae6da1101f5bda638165fe
|
||||
and b93629dd335ffee2fc4b9b619bf86c3f9e6b0023.
|
||||
|
||||
(cherry picked from commit 950bac27d63c1c2ac3a6ed867692d6a13f21feb3)
|
||||
---
|
||||
.../sanitizer_common/sanitizer_posix_libcdep.cc | 13 ++++++++-----
|
||||
1 file changed, 8 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/libsanitizer/sanitizer_common/sanitizer_posix_libcdep.cc b/libsanitizer/sanitizer_common/sanitizer_posix_libcdep.cc
|
||||
index d2fd76a6d36..1917e29ced2 100644
|
||||
--- a/libsanitizer/sanitizer_common/sanitizer_posix_libcdep.cc
|
||||
+++ b/libsanitizer/sanitizer_common/sanitizer_posix_libcdep.cc
|
||||
@@ -169,7 +169,11 @@ bool SupportsColoredOutput(fd_t fd) {
|
||||
|
||||
#if !SANITIZER_GO
|
||||
// TODO(glider): different tools may require different altstack size.
|
||||
-static const uptr kAltStackSize = SIGSTKSZ * 4; // SIGSTKSZ is not enough.
|
||||
+static uptr GetAltStackSize() {
|
||||
+ // SIGSTKSZ is not enough.
|
||||
+ static const uptr kAltStackSize = SIGSTKSZ * 4;
|
||||
+ return kAltStackSize;
|
||||
+}
|
||||
|
||||
void SetAlternateSignalStack() {
|
||||
stack_t altstack, oldstack;
|
||||
@@ -180,10 +184,9 @@ void SetAlternateSignalStack() {
|
||||
// TODO(glider): the mapped stack should have the MAP_STACK flag in the
|
||||
// future. It is not required by man 2 sigaltstack now (they're using
|
||||
// malloc()).
|
||||
- void* base = MmapOrDie(kAltStackSize, __func__);
|
||||
- altstack.ss_sp = (char*) base;
|
||||
+ altstack.ss_size = GetAltStackSize();
|
||||
+ altstack.ss_sp = (char *)MmapOrDie(altstack.ss_size, __func__);
|
||||
altstack.ss_flags = 0;
|
||||
- altstack.ss_size = kAltStackSize;
|
||||
CHECK_EQ(0, sigaltstack(&altstack, nullptr));
|
||||
}
|
||||
|
||||
@@ -191,7 +194,7 @@ void UnsetAlternateSignalStack() {
|
||||
stack_t altstack, oldstack;
|
||||
altstack.ss_sp = nullptr;
|
||||
altstack.ss_flags = SS_DISABLE;
|
||||
- altstack.ss_size = kAltStackSize; // Some sane value required on Darwin.
|
||||
+ altstack.ss_size = GetAltStackSize(); // Some sane value required on Darwin.
|
||||
CHECK_EQ(0, sigaltstack(&altstack, &oldstack));
|
||||
UnmapOrDie(oldstack.ss_sp, oldstack.ss_size);
|
||||
}
|
||||
--
|
||||
2.27.0
|
||||
|
|
@ -1,83 +0,0 @@
|
|||
https://gcc.gnu.org/git/?p=gcc.git;a=patch;h=2bf34b9f4e446bf9be7f04458058dd5319fb396e
|
||||
https://gcc.gnu.org/PR100379
|
||||
--- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors_ioctl.inc
|
||||
+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors_ioctl.inc
|
||||
@@ -366,15 +366,6 @@ static void ioctl_table_fill() {
|
||||
|
||||
#if SANITIZER_LINUX && !SANITIZER_ANDROID
|
||||
// _(SIOCDEVPLIP, WRITE, struct_ifreq_sz); // the same as EQL_ENSLAVE
|
||||
- _(CYGETDEFTHRESH, WRITE, sizeof(int));
|
||||
- _(CYGETDEFTIMEOUT, WRITE, sizeof(int));
|
||||
- _(CYGETMON, WRITE, struct_cyclades_monitor_sz);
|
||||
- _(CYGETTHRESH, WRITE, sizeof(int));
|
||||
- _(CYGETTIMEOUT, WRITE, sizeof(int));
|
||||
- _(CYSETDEFTHRESH, NONE, 0);
|
||||
- _(CYSETDEFTIMEOUT, NONE, 0);
|
||||
- _(CYSETTHRESH, NONE, 0);
|
||||
- _(CYSETTIMEOUT, NONE, 0);
|
||||
_(EQL_EMANCIPATE, WRITE, struct_ifreq_sz);
|
||||
_(EQL_ENSLAVE, WRITE, struct_ifreq_sz);
|
||||
_(EQL_GETMASTRCFG, WRITE, struct_ifreq_sz);
|
||||
--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
|
||||
+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
|
||||
@@ -130,7 +130,6 @@ typedef struct user_fpregs elf_fpregset_t;
|
||||
# include <sys/procfs.h>
|
||||
#endif
|
||||
#include <sys/user.h>
|
||||
-#include <linux/cyclades.h>
|
||||
#include <linux/if_eql.h>
|
||||
#include <linux/if_plip.h>
|
||||
#include <linux/lp.h>
|
||||
@@ -443,7 +442,6 @@ unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr);
|
||||
|
||||
#if SANITIZER_LINUX && !SANITIZER_ANDROID
|
||||
unsigned struct_ax25_parms_struct_sz = sizeof(struct ax25_parms_struct);
|
||||
- unsigned struct_cyclades_monitor_sz = sizeof(struct cyclades_monitor);
|
||||
#if EV_VERSION > (0x010000)
|
||||
unsigned struct_input_keymap_entry_sz = sizeof(struct input_keymap_entry);
|
||||
#else
|
||||
@@ -809,15 +807,6 @@ unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr);
|
||||
#endif // SANITIZER_LINUX
|
||||
|
||||
#if SANITIZER_LINUX && !SANITIZER_ANDROID
|
||||
- unsigned IOCTL_CYGETDEFTHRESH = CYGETDEFTHRESH;
|
||||
- unsigned IOCTL_CYGETDEFTIMEOUT = CYGETDEFTIMEOUT;
|
||||
- unsigned IOCTL_CYGETMON = CYGETMON;
|
||||
- unsigned IOCTL_CYGETTHRESH = CYGETTHRESH;
|
||||
- unsigned IOCTL_CYGETTIMEOUT = CYGETTIMEOUT;
|
||||
- unsigned IOCTL_CYSETDEFTHRESH = CYSETDEFTHRESH;
|
||||
- unsigned IOCTL_CYSETDEFTIMEOUT = CYSETDEFTIMEOUT;
|
||||
- unsigned IOCTL_CYSETTHRESH = CYSETTHRESH;
|
||||
- unsigned IOCTL_CYSETTIMEOUT = CYSETTIMEOUT;
|
||||
unsigned IOCTL_EQL_EMANCIPATE = EQL_EMANCIPATE;
|
||||
unsigned IOCTL_EQL_ENSLAVE = EQL_ENSLAVE;
|
||||
unsigned IOCTL_EQL_GETMASTRCFG = EQL_GETMASTRCFG;
|
||||
--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
|
||||
+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
|
||||
@@ -974,7 +974,6 @@ extern unsigned struct_vt_mode_sz;
|
||||
|
||||
#if SANITIZER_LINUX && !SANITIZER_ANDROID
|
||||
extern unsigned struct_ax25_parms_struct_sz;
|
||||
-extern unsigned struct_cyclades_monitor_sz;
|
||||
extern unsigned struct_input_keymap_entry_sz;
|
||||
extern unsigned struct_ipx_config_data_sz;
|
||||
extern unsigned struct_kbdiacrs_sz;
|
||||
@@ -1319,15 +1318,6 @@ extern unsigned IOCTL_VT_WAITACTIVE;
|
||||
#endif // SANITIZER_LINUX
|
||||
|
||||
#if SANITIZER_LINUX && !SANITIZER_ANDROID
|
||||
-extern unsigned IOCTL_CYGETDEFTHRESH;
|
||||
-extern unsigned IOCTL_CYGETDEFTIMEOUT;
|
||||
-extern unsigned IOCTL_CYGETMON;
|
||||
-extern unsigned IOCTL_CYGETTHRESH;
|
||||
-extern unsigned IOCTL_CYGETTIMEOUT;
|
||||
-extern unsigned IOCTL_CYSETDEFTHRESH;
|
||||
-extern unsigned IOCTL_CYSETDEFTIMEOUT;
|
||||
-extern unsigned IOCTL_CYSETTHRESH;
|
||||
-extern unsigned IOCTL_CYSETTIMEOUT;
|
||||
extern unsigned IOCTL_EQL_EMANCIPATE;
|
||||
extern unsigned IOCTL_EQL_ENSLAVE;
|
||||
extern unsigned IOCTL_EQL_GETMASTRCFG;
|
||||
--
|
||||
2.33.0
|
||||
|
|
@ -1,87 +0,0 @@
|
|||
From 72edc2c02f8b4768ad660f46a1c7e2400c0a8e06 Mon Sep 17 00:00:00 2001
|
||||
From: jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
|
||||
Date: Mon, 17 Jul 2017 19:41:08 +0000
|
||||
Subject: [PATCH] Backported from mainline 2017-07-14 Jakub
|
||||
Jelinek <jakub@redhat.com>
|
||||
|
||||
PR sanitizer/81066
|
||||
* sanitizer_common/sanitizer_linux.h: Cherry-pick upstream r307969.
|
||||
* sanitizer_common/sanitizer_linux.cc: Likewise.
|
||||
* sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc: Likewise.
|
||||
* tsan/tsan_platform_linux.cc: Likewise.
|
||||
|
||||
|
||||
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@250287 138bc75d-0d04-0410-961f-82ee72b054a4
|
||||
---
|
||||
libsanitizer/ChangeLog (REMOVED) | 11 +++++++++++
|
||||
libsanitizer/sanitizer_common/sanitizer_linux.cc | 3 +--
|
||||
libsanitizer/sanitizer_common/sanitizer_linux.h | 4 +---
|
||||
.../sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc | 2 +-
|
||||
libsanitizer/tsan/tsan_platform_linux.cc | 2 +-
|
||||
5 files changed, 15 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/libsanitizer/sanitizer_common/sanitizer_linux.cc b/libsanitizer/sanitizer_common/sanitizer_linux.cc
|
||||
index 806fcd5..5b6f186 100644
|
||||
--- a/libsanitizer/sanitizer_common/sanitizer_linux.cc
|
||||
+++ b/libsanitizer/sanitizer_common/sanitizer_linux.cc
|
||||
@@ -605,8 +605,7 @@ uptr internal_prctl(int option, uptr arg2, uptr arg3, uptr arg4, uptr arg5) {
|
||||
}
|
||||
#endif
|
||||
|
||||
-uptr internal_sigaltstack(const struct sigaltstack *ss,
|
||||
- struct sigaltstack *oss) {
|
||||
+uptr internal_sigaltstack(const void *ss, void *oss) {
|
||||
return internal_syscall(SYSCALL(sigaltstack), (uptr)ss, (uptr)oss);
|
||||
}
|
||||
|
||||
diff --git a/libsanitizer/sanitizer_common/sanitizer_linux.h b/libsanitizer/sanitizer_common/sanitizer_linux.h
|
||||
index 895bfc1..a42df57 100644
|
||||
--- a/libsanitizer/sanitizer_common/sanitizer_linux.h
|
||||
+++ b/libsanitizer/sanitizer_common/sanitizer_linux.h
|
||||
@@ -19,7 +19,6 @@
|
||||
#include "sanitizer_platform_limits_posix.h"
|
||||
|
||||
struct link_map; // Opaque type returned by dlopen().
|
||||
-struct sigaltstack;
|
||||
|
||||
namespace __sanitizer {
|
||||
// Dirent structure for getdents(). Note that this structure is different from
|
||||
@@ -28,8 +27,7 @@ struct linux_dirent;
|
||||
|
||||
// Syscall wrappers.
|
||||
uptr internal_getdents(fd_t fd, struct linux_dirent *dirp, unsigned int count);
|
||||
-uptr internal_sigaltstack(const struct sigaltstack* ss,
|
||||
- struct sigaltstack* oss);
|
||||
+uptr internal_sigaltstack(const void* ss, void* oss);
|
||||
uptr internal_sigprocmask(int how, __sanitizer_sigset_t *set,
|
||||
__sanitizer_sigset_t *oldset);
|
||||
|
||||
diff --git a/libsanitizer/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc b/libsanitizer/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
|
||||
index 891386dc..234e8c6 100644
|
||||
--- a/libsanitizer/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
|
||||
+++ b/libsanitizer/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
|
||||
@@ -273,7 +273,7 @@ static int TracerThread(void* argument) {
|
||||
|
||||
// Alternate stack for signal handling.
|
||||
InternalScopedBuffer<char> handler_stack_memory(kHandlerStackSize);
|
||||
- struct sigaltstack handler_stack;
|
||||
+ stack_t handler_stack;
|
||||
internal_memset(&handler_stack, 0, sizeof(handler_stack));
|
||||
handler_stack.ss_sp = handler_stack_memory.data();
|
||||
handler_stack.ss_size = kHandlerStackSize;
|
||||
diff --git a/libsanitizer/tsan/tsan_platform_linux.cc b/libsanitizer/tsan/tsan_platform_linux.cc
|
||||
index 2ed5718..6f972ab 100644
|
||||
--- a/libsanitizer/tsan/tsan_platform_linux.cc
|
||||
+++ b/libsanitizer/tsan/tsan_platform_linux.cc
|
||||
@@ -287,7 +287,7 @@ void InitializePlatform() {
|
||||
int ExtractResolvFDs(void *state, int *fds, int nfd) {
|
||||
#if SANITIZER_LINUX && !SANITIZER_ANDROID
|
||||
int cnt = 0;
|
||||
- __res_state *statp = (__res_state*)state;
|
||||
+ struct __res_state *statp = (struct __res_state*)state;
|
||||
for (int i = 0; i < MAXNS && cnt < nfd; i++) {
|
||||
if (statp->_u._ext.nsaddrs[i] && statp->_u._ext.nssocks[i] != -1)
|
||||
fds[cnt++] = statp->_u._ext.nssocks[i];
|
||||
--
|
||||
2.9.3
|
||||
|
|
@ -1,107 +0,0 @@
|
|||
Trivally backported the upstream commit
|
||||
b685411208e0aaa79190d54faf945763514706b8
|
||||
(different directory, some files not present, etc.)
|
||||
We only really use x86* from those, probably, so I didn't bother much.
|
||||
diff --git a/gcc/config/alpha/linux-unwind.h b/gcc/config/alpha/linux-unwind.h
|
||||
index bdbba4a..e84812e 100644
|
||||
--- a/gcc/config/alpha/linux-unwind.h
|
||||
+++ b/gcc/config/alpha/linux-unwind.h
|
||||
@@ -51,7 +51,7 @@ alpha_fallback_frame_state (struct _Unwind_Context *context,
|
||||
{
|
||||
struct rt_sigframe {
|
||||
siginfo_t info;
|
||||
- struct ucontext uc;
|
||||
+ ucontext_t uc;
|
||||
} *rt_ = context->cfa;
|
||||
sc = &rt_->uc.uc_mcontext;
|
||||
}
|
||||
diff --git a/gcc/config/bfin/linux-unwind.h b/gcc/config/bfin/linux-unwind.h
|
||||
index 77b7c23..8bf5e82 100644
|
||||
--- a/gcc/config/bfin/linux-unwind.h
|
||||
+++ b/gcc/config/bfin/linux-unwind.h
|
||||
@@ -52,7 +52,7 @@ bfin_fallback_frame_state (struct _Unwind_Context *context,
|
||||
void *puc;
|
||||
char retcode[8];
|
||||
siginfo_t info;
|
||||
- struct ucontext uc;
|
||||
+ ucontext_t uc;
|
||||
} *rt_ = context->cfa;
|
||||
|
||||
/* The void * cast is necessary to avoid an aliasing warning.
|
||||
diff --git a/gcc/config/i386/linux-unwind.h b/gcc/config/i386/linux-unwind.h
|
||||
index 540a0a2..29efbe3 100644
|
||||
--- a/gcc/config/i386/linux-unwind.h
|
||||
+++ b/gcc/config/i386/linux-unwind.h
|
||||
@@ -58,7 +58,7 @@ x86_64_fallback_frame_state (struct _Unwind_Context *context,
|
||||
if (*(unsigned char *)(pc+0) == 0x48
|
||||
&& *(unsigned long long *)(pc+1) == RT_SIGRETURN_SYSCALL)
|
||||
{
|
||||
- struct ucontext *uc_ = context->cfa;
|
||||
+ ucontext_t *uc_ = context->cfa;
|
||||
/* The void * cast is necessary to avoid an aliasing warning.
|
||||
The aliasing warning is correct, but should not be a problem
|
||||
because it does not alias anything. */
|
||||
@@ -138,7 +138,7 @@ x86_fallback_frame_state (struct _Unwind_Context *context,
|
||||
siginfo_t *pinfo;
|
||||
void *puc;
|
||||
siginfo_t info;
|
||||
- struct ucontext uc;
|
||||
+ ucontext_t uc;
|
||||
} *rt_ = context->cfa;
|
||||
/* The void * cast is necessary to avoid an aliasing warning.
|
||||
The aliasing warning is correct, but should not be a problem
|
||||
diff --git a/gcc/config/m68k/linux-unwind.h b/gcc/config/m68k/linux-unwind.h
|
||||
index 75b7cf7..f964e24 100644
|
||||
--- a/gcc/config/m68k/linux-unwind.h
|
||||
+++ b/gcc/config/m68k/linux-unwind.h
|
||||
@@ -33,7 +33,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
||||
/* <sys/ucontext.h> is unfortunately broken right now. */
|
||||
struct uw_ucontext {
|
||||
unsigned long uc_flags;
|
||||
- struct ucontext *uc_link;
|
||||
+ ucontext_t *uc_link;
|
||||
stack_t uc_stack;
|
||||
mcontext_t uc_mcontext;
|
||||
unsigned long uc_filler[80];
|
||||
diff --git a/gcc/config/pa/linux-unwind.h b/gcc/config/pa/linux-unwind.h
|
||||
index 9a2657f..e47493d 100644
|
||||
--- a/gcc/config/pa/linux-unwind.h
|
||||
+++ b/gcc/config/pa/linux-unwind.h
|
||||
@@ -80,7 +80,7 @@ pa32_fallback_frame_state (struct _Unwind_Context *context,
|
||||
struct sigcontext *sc;
|
||||
struct rt_sigframe {
|
||||
siginfo_t info;
|
||||
- struct ucontext uc;
|
||||
+ ucontext_t uc;
|
||||
} *frame;
|
||||
|
||||
/* rt_sigreturn trampoline:
|
||||
diff --git a/gcc/config/sh/linux-unwind.h b/gcc/config/sh/linux-unwind.h
|
||||
index e389cac..0bf43ba 100644
|
||||
--- a/gcc/config/sh/linux-unwind.h
|
||||
+++ b/gcc/config/sh/linux-unwind.h
|
||||
@@ -180,7 +180,7 @@ sh_fallback_frame_state (struct _Unwind_Context *context,
|
||||
{
|
||||
struct rt_sigframe {
|
||||
siginfo_t info;
|
||||
- struct ucontext uc;
|
||||
+ ucontext_t uc;
|
||||
} *rt_ = context->cfa;
|
||||
/* The void * cast is necessary to avoid an aliasing warning.
|
||||
The aliasing warning is correct, but should not be a problem
|
||||
diff --git a/gcc/config/xtensa/linux-unwind.h b/gcc/config/xtensa/linux-unwind.h
|
||||
index 9872492..586a9d4 100644
|
||||
--- a/gcc/config/xtensa/linux-unwind.h
|
||||
+++ b/gcc/config/xtensa/linux-unwind.h
|
||||
@@ -67,7 +67,7 @@ xtensa_fallback_frame_state (struct _Unwind_Context *context,
|
||||
|
||||
struct rt_sigframe {
|
||||
siginfo_t info;
|
||||
- struct ucontext uc;
|
||||
+ ucontext_t uc;
|
||||
} *rt_;
|
||||
|
||||
/* movi a2, __NR_rt_sigreturn; syscall */
|
||||
--
|
||||
2.9.3
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
--- a/libjava/include/x86_64-signal.h
|
||||
+++ a/libjava/include/x86_64-signal.h
|
||||
@@ -28,7 +28,7 @@
|
||||
#define HANDLE_DIVIDE_OVERFLOW \
|
||||
do \
|
||||
{ \
|
||||
- struct ucontext *_uc = (struct ucontext *)_p; \
|
||||
+ ucontext_t *_uc = (ucontext_t *)_p; \
|
||||
gregset_t &_gregs = _uc->uc_mcontext.gregs; \
|
||||
unsigned char *_rip = (unsigned char *)_gregs[REG_RIP]; \
|
||||
\
|
||||
--- a/libjava/include/i386-signal.h
|
||||
+++ a/libjava/include/i386-signal.h
|
||||
@@ -29,7 +29,7 @@
|
||||
#define HANDLE_DIVIDE_OVERFLOW \
|
||||
do \
|
||||
{ \
|
||||
- struct ucontext *_uc = (struct ucontext *)_p; \
|
||||
+ ucontext_t *_uc = (ucontext_t *)_p; \
|
||||
gregset_t &_gregs = _uc->uc_mcontext.gregs; \
|
||||
unsigned char *_eip = (unsigned char *)_gregs[REG_EIP]; \
|
||||
\
|
||||
--- a/libjava/include/s390-signal.h
|
||||
+++ a/libjava/include/s390-signal.h
|
||||
@@ -51,7 +51,7 @@
|
||||
struct \
|
||||
{ \
|
||||
unsigned long int uc_flags; \
|
||||
- struct ucontext *uc_link; \
|
||||
+ ucontext_t *uc_link; \
|
||||
stack_t uc_stack; \
|
||||
mcontext_t uc_mcontext; \
|
||||
unsigned long sigmask[2]; \
|
|
@ -1,88 +0,0 @@
|
|||
--- fsharpbinding-a09c818/monodevelop/MonoDevelop.FSharpBinding/FSharpBinding.addin.xml.orig.old 2015-06-03 19:53:00.116849746 +0100
|
||||
+++ fsharpbinding-a09c818/monodevelop/MonoDevelop.FSharpBinding/FSharpBinding.addin.xml.orig 2015-06-03 19:56:30.112579384 +0100
|
||||
@@ -130,6 +130,11 @@
|
||||
<!-- New projects will be created with this targets file. -->
|
||||
<Extension path="/MonoDevelop/ProjectModel/MSBuildItemTypes">
|
||||
<!-- If FSharp 3.1 is available, use it. Note XS looks for the first DotNetProject node under 'Extension' -->
|
||||
+ <Condition id="MSBuildTargetIsAvailable" target="$(FSharpTargetsPath)" >
|
||||
+ <DotNetProject language="F#" extension="fsproj" guid="{f2a71f9b-5d33-465a-a702-920d77279786}" import="$(FSharpTargetsPath)" resourceHandler="MonoDevelop.FSharp.FSharpResourceIdBuilder"/>
|
||||
+ </Condition>
|
||||
+
|
||||
+ <!-- If FSharp 3.1 is available, use it. Note XS looks for the first DotNetProject node under 'Extension' -->
|
||||
<Condition id="MSBuildTargetIsAvailable" target="$(MSBuildExtensionsPath32)\..\Microsoft SDKs\F#\3.1\Framework\v4.0\Microsoft.FSharp.Targets" >
|
||||
<DotNetProject language="F#" extension="fsproj" guid="{f2a71f9b-5d33-465a-a702-920d77279786}" import="$(MSBuildExtensionsPath32)\..\Microsoft SDKs\F#\3.1\Framework\v4.0\Microsoft.FSharp.Targets" resourceHandler="MonoDevelop.FSharp.FSharpResourceIdBuilder"/>
|
||||
</Condition>
|
||||
@@ -182,14 +187,7 @@
|
||||
<ProjectTemplate id="FSharpConsoleProject" file="Templates/FSharpConsoleProject.xpt.xml"/>
|
||||
<ProjectTemplate id="FSharpLibraryProject" file="Templates/FSharpLibraryProject.xpt.xml"/>
|
||||
<!-- Only include the tutorial project if an F# 3.0 or 3.1 target is available as this includes F# 3.0 specific features -->
|
||||
- <ComplexCondition>
|
||||
- <Or>
|
||||
- <Condition id="MSBuildTargetIsAvailable" target="$(MSBuildExtensionsPath32)\..\Microsoft SDKs\F#\3.0\Framework\v4.0\Microsoft.FSharp.Targets" />
|
||||
- <Condition id="MSBuildTargetIsAvailable" target="$(MSBuildExtensionsPath32)\..\Microsoft SDKs\F#\3.1\Framework\v4.0\Microsoft.FSharp.Targets" />
|
||||
- </Or>
|
||||
<ProjectTemplate id="FSharpTutorialProject" file="Templates/FSharpTutorialProject.xpt.xml"/>
|
||||
- </ComplexCondition>
|
||||
-
|
||||
<ProjectTemplate id="FSharpGtkProject" file="Templates/FSharpGtkProject.xpt.xml"/>
|
||||
<ProjectTemplate id="FSharpNUnitLibraryProject" file="Templates/FSharpNUnitLibraryProject.xpt.xml"/>
|
||||
</Extension>
|
||||
@@ -267,13 +265,7 @@
|
||||
<!-- F# interactive -->
|
||||
|
||||
<Extension path="/MonoDevelop/Ide/Pads">
|
||||
- <ComplexCondition>
|
||||
- <Or>
|
||||
- <Condition id="MSBuildTargetIsAvailable" target="$(MSBuildExtensionsPath32)\..\Microsoft SDKs\F#\3.0\Framework\v4.0\Microsoft.FSharp.Targets" />
|
||||
- <Condition id="MSBuildTargetIsAvailable" target="$(MSBuildExtensionsPath32)\..\Microsoft SDKs\F#\3.1\Framework\v4.0\Microsoft.FSharp.Targets" />
|
||||
- </Or>
|
||||
<Pad id="MonoDevelop.FSharp.FSharpInteractivePad" defaultPlacement="Bottom" _label="F# Interactive" icon="md-project" class="MonoDevelop.FSharp.FSharpInteractivePad" />
|
||||
- </ComplexCondition>
|
||||
</Extension>
|
||||
|
||||
<Extension path = "/MonoDevelop/Ide/Pads/ProjectPad">
|
||||
@@ -281,11 +273,6 @@
|
||||
</Extension>
|
||||
|
||||
<Extension path="/MonoDevelop/Ide/Commands">
|
||||
- <ComplexCondition>
|
||||
- <Or>
|
||||
- <Condition id="MSBuildTargetIsAvailable" target="$(MSBuildExtensionsPath32)\..\Microsoft SDKs\F#\3.0\Framework\v4.0\Microsoft.FSharp.Targets" />
|
||||
- <Condition id="MSBuildTargetIsAvailable" target="$(MSBuildExtensionsPath32)\..\Microsoft SDKs\F#\3.1\Framework\v4.0\Microsoft.FSharp.Targets" />
|
||||
- </Or>
|
||||
<Category _name = "F# Integration" id="F# Integration">
|
||||
<Command id="MonoDevelop.FSharp.FSharpCommands.ShowFSharpInteractive"
|
||||
_label = "F# Interactive"
|
||||
@@ -330,32 +317,19 @@
|
||||
macShortcut="Meta|Control|C"
|
||||
shortcut="Ctrl|Alt|C" />
|
||||
</Category>
|
||||
- </ComplexCondition>
|
||||
</Extension>
|
||||
|
||||
<Extension path = "/MonoDevelop/SourceEditor2/ContextMenu/Editor">
|
||||
- <ComplexCondition>
|
||||
- <Or>
|
||||
- <Condition id="MSBuildTargetIsAvailable" target="$(MSBuildExtensionsPath32)\..\Microsoft SDKs\F#\3.0\Framework\v4.0\Microsoft.FSharp.Targets" />
|
||||
- <Condition id="MSBuildTargetIsAvailable" target="$(MSBuildExtensionsPath32)\..\Microsoft SDKs\F#\3.1\Framework\v4.0\Microsoft.FSharp.Targets" />
|
||||
- </Or>
|
||||
<SeparatorItem id = "FSharpInteractiveStart" />
|
||||
<CommandItem id = "MonoDevelop.FSharp.FSharpCommands.SendSelection" />
|
||||
<CommandItem id = "MonoDevelop.FSharp.FSharpCommands.SendLine" />
|
||||
<CommandItem id = "MonoDevelop.FSharp.FSharpCommands.SendReferences" />
|
||||
- </ComplexCondition>
|
||||
</Extension>
|
||||
|
||||
<Extension path = "/MonoDevelop/Ide/MainMenu/Edit">
|
||||
- <ComplexCondition>
|
||||
- <Or>
|
||||
- <Condition id="MSBuildTargetIsAvailable" target="$(MSBuildExtensionsPath32)\..\Microsoft SDKs\F#\3.0\Framework\v4.0\Microsoft.FSharp.Targets" />
|
||||
- <Condition id="MSBuildTargetIsAvailable" target="$(MSBuildExtensionsPath32)\..\Microsoft SDKs\F#\3.1\Framework\v4.0\Microsoft.FSharp.Targets" />
|
||||
- </Or>
|
||||
<CommandItem id = "MonoDevelop.FSharp.FSharpCommands.SendSelection" />
|
||||
<CommandItem id = "MonoDevelop.FSharp.FSharpCommands.SendLine" />
|
||||
<CommandItem id = "MonoDevelop.FSharp.FSharpCommands.SendReferences" />
|
||||
- </ComplexCondition>
|
||||
</Extension>
|
||||
|
||||
<!--- F# Android -->
|
|
@ -1,43 +0,0 @@
|
|||
--- fsharpbinding-a09c818/monodevelop/MonoDevelop.FSharpBinding/MonoDevelop.FSharp.fsproj.orig.old 2015-06-03 18:48:55.345385084 +0100
|
||||
+++ fsharpbinding-a09c818/monodevelop/MonoDevelop.FSharpBinding/MonoDevelop.FSharp.fsproj.orig 2015-06-03 19:00:11.453399028 +0100
|
||||
@@ -185,19 +185,19 @@
|
||||
<Private>False</Private>
|
||||
<HintPath>INSERT_FSPROJ_MDROOT\AddIns\NUnit\MonoDevelop.NUnit.dll</HintPath>
|
||||
</Reference>
|
||||
- <ProjectReference Include="..\..\FSharp.CompilerBinding\FSharp.CompilerBinding.fsproj">
|
||||
- <Project>{88F6940F-D300-474C-B2A7-E2ECD5B04B57}</Project>
|
||||
- <Name>FSharp.CompilerBinding</Name>
|
||||
- </ProjectReference>
|
||||
+ <Reference Include="FSharp.CompilerBinding">
|
||||
+ <Private>True</Private>
|
||||
+ </Reference>
|
||||
<ProjectReference Include="Gui\MonoDevelop.FSharp.Gui.csproj">
|
||||
<Project>{FD0D1033-9145-48E5-8ED8-E2365252878C}</Project>
|
||||
<Name>MonoDevelop.FSharp.Gui</Name>
|
||||
</ProjectReference>
|
||||
- <Reference Include="FSharp.Core, Version=$(TargetFSharpCoreVersion), Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
+ <Reference Include="FSharp.Core">
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="FSharp.Compiler.Service">
|
||||
<HintPath>packages\FSharp.Compiler.Service.0.0.85\lib\net45\FSharp.Compiler.Service.dll</HintPath>
|
||||
+ <Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Mono.Cecil">
|
||||
<HintPath>packages\Mono.Cecil.0.9.5.4\lib\net40\Mono.Cecil.dll</HintPath>
|
||||
@@ -213,12 +213,15 @@
|
||||
</Reference>
|
||||
<Reference Include="FantomasLib">
|
||||
<HintPath>packages\Fantomas.1.6.0\lib\FantomasLib.dll</HintPath>
|
||||
+ <Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="FSharp.Compiler.CodeDom">
|
||||
<HintPath>packages\FSharp.Compiler.CodeDom.0.9.1\lib\net40\FSharp.Compiler.CodeDom.dll</HintPath>
|
||||
+ <Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="ExtCore">
|
||||
<HintPath>packages\ExtCore.0.8.45\lib\net40\ExtCore.dll</HintPath>
|
||||
+ <Private>True</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
|
|
@ -1,21 +0,0 @@
|
|||
diff --unified --recursive --text love-HEAD.orig/src/modules/graphics/opengl/Framebuffer.cpp love-HEAD.new/src/modules/graphics/opengl/Framebuffer.cpp
|
||||
--- love-HEAD.orig/src/modules/graphics/opengl/Framebuffer.cpp 2019-03-14 12:46:55.032982224 -0400
|
||||
+++ love-HEAD.new/src/modules/graphics/opengl/Framebuffer.cpp 2019-03-14 12:47:22.356175299 -0400
|
||||
@@ -1,3 +1,5 @@
|
||||
+#define GL_GLEXT_PROTOTYPES
|
||||
+
|
||||
#include "Framebuffer.h"
|
||||
#include <common/Matrix.h>
|
||||
|
||||
diff --unified --recursive --text love-HEAD.orig/src/modules/graphics/opengl/SpriteBatch.cpp love-HEAD.new/src/modules/graphics/opengl/SpriteBatch.cpp
|
||||
--- love-HEAD.orig/src/modules/graphics/opengl/SpriteBatch.cpp 2019-03-14 12:46:55.032982224 -0400
|
||||
+++ love-HEAD.new/src/modules/graphics/opengl/SpriteBatch.cpp 2019-03-14 12:47:33.346119890 -0400
|
||||
@@ -18,6 +18,8 @@
|
||||
* 3. This notice may not be removed or altered from any source distribution.
|
||||
**/
|
||||
|
||||
+#define GL_GLEXT_PROTOTYPES
|
||||
+
|
||||
#include "SpriteBatch.h"
|
||||
|
||||
// STD
|
|
@ -1,27 +0,0 @@
|
|||
# HG changeset patch
|
||||
# User John Donoghue <john.donoghue@ieee.org>
|
||||
# Date 1652358904 14400
|
||||
# Thu May 12 08:35:04 2022 -0400
|
||||
# Branch stable
|
||||
# Node ID 8c940cfcce257369677c09154da2aab2c56eaa79
|
||||
# Parent 63710f3bd9811c2d206ac9e7b4f47cf06c47e153
|
||||
* scripts/pkg/private/build.m: check configure and Makefile exist before trying to unlink them (Bug #62436)
|
||||
|
||||
diff -r 63710f3bd981 -r 8c940cfcce25 scripts/pkg/private/build.m
|
||||
--- a/scripts/pkg/private/build.m Wed May 11 09:44:55 2022 -0700
|
||||
+++ b/scripts/pkg/private/build.m Thu May 12 08:35:04 2022 -0400
|
||||
@@ -77,8 +77,12 @@
|
||||
else
|
||||
arch_abi = getarch ();
|
||||
configure_make (desc, build_root, verbose);
|
||||
- unlink (fullfile (build_root, "src", "configure"));
|
||||
- unlink (fullfile (build_root, "src", "Makefile"));
|
||||
+ if exist (fullfile (build_root, "src", "configure"), "file")
|
||||
+ unlink (fullfile (build_root, "src", "configure"));
|
||||
+ endif
|
||||
+ if exist (fullfile (build_root, "src", "Makefile"), "file")
|
||||
+ unlink (fullfile (build_root, "src", "Makefile"));
|
||||
+ endif
|
||||
endif
|
||||
tar_name = [desc.name "-" desc.version "-" arch_abi ".tar"];
|
||||
tar_path = fullfile (builddir, tar_name);
|
|
@ -1,15 +0,0 @@
|
|||
diff --git a/CMake/AbseilHelpers.cmake b/CMake/AbseilHelpers.cmake
|
||||
index 1a80b5b..1fa57a7 100644
|
||||
--- a/CMake/AbseilHelpers.cmake
|
||||
+++ b/CMake/AbseilHelpers.cmake
|
||||
@@ -171,8 +171,8 @@ function(absl_cc_library)
|
||||
FILE(GENERATE OUTPUT "${CMAKE_BINARY_DIR}/lib/pkgconfig/absl_${_NAME}.pc" CONTENT "\
|
||||
prefix=${CMAKE_INSTALL_PREFIX}\n\
|
||||
exec_prefix=\${prefix}\n\
|
||||
-libdir=\${prefix}/${CMAKE_INSTALL_LIBDIR}\n\
|
||||
-includedir=\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}\n\
|
||||
+libdir=${CMAKE_INSTALL_FULL_LIBDIR}\n\
|
||||
+includedir=${CMAKE_INSTALL_FULL_INCLUDEDIR}\n\
|
||||
\n\
|
||||
Name: absl_${_NAME}\n\
|
||||
Description: Abseil ${_NAME} library\n\
|
|
@ -1,17 +0,0 @@
|
|||
--- apr-1.5.1/file_io/unix/filestat.c 2014-11-01 06:42:50.000000000 -0400
|
||||
+++ apr-1.5.1/file_io/unix/filestat.c.new 2014-11-01 07:07:32.000000000 -0400
|
||||
@@ -297,9 +297,11 @@
|
||||
finfo->pool = pool;
|
||||
finfo->fname = fname;
|
||||
fill_out_finfo(finfo, &info, wanted);
|
||||
- if (wanted & APR_FINFO_LINK)
|
||||
- wanted &= ~APR_FINFO_LINK;
|
||||
- return (wanted & ~finfo->valid) ? APR_INCOMPLETE : APR_SUCCESS;
|
||||
+ if (wanted & APR_FINFO_LINK) {
|
||||
+ return ((wanted & ~APR_FINFO_LINK) & ~finfo->valid) ? APR_INCOMPLETE : APR_SUCCESS;
|
||||
+ } else {
|
||||
+ return (wanted & ~finfo->valid) ? APR_INCOMPLETE : APR_SUCCESS;
|
||||
+ }
|
||||
}
|
||||
else {
|
||||
#if !defined(ENOENT) || !defined(ENOTDIR)
|
|
@ -1,13 +0,0 @@
|
|||
diff -ru a/RtMidi.cpp b/RtMidi.cpp
|
||||
--- a/RtMidi.cpp 2021-12-23 16:46:33.000000000 -0500
|
||||
+++ b/RtMidi.cpp 2021-12-23 16:48:19.000000000 -0500
|
||||
@@ -39,6 +39,9 @@
|
||||
|
||||
#include "RtMidi.h"
|
||||
#include <sstream>
|
||||
+#if defined(__APPLE__)
|
||||
+#include <TargetConditionals.h>
|
||||
+#endif
|
||||
|
||||
#if defined(__MACOSX_CORE__)
|
||||
#if TARGET_OS_IPHONE
|
|
@ -1,89 +0,0 @@
|
|||
https://bugs.freedesktop.org/show_bug.cgi?id=30910#c6
|
||||
|
||||
Comment 6 Jeremy Huddleston Sequoia 2014-07-15 04:12:40 UTC
|
||||
|
||||
Yes, it is still an issue. We just disable the buggy '"x$cairo_cc_stderr" != "x"' logic, but that's not really a portable solution for you:
|
||||
|
||||
diff -Naurp cairo-1.12.2.orig/configure cairo-1.12.2/configure
|
||||
--- cairo-1.12.2.orig/configure 2012-04-29 11:49:59.000000000 -0700
|
||||
+++ cairo-1.12.2/configure 2012-05-03 11:23:49.000000000 -0700
|
||||
@@ -18044,7 +18044,7 @@ fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
|
||||
- if test "x$cairo_cc_stderr" != "x"; then
|
||||
+ if false; then
|
||||
cairo_cc_flag=no
|
||||
fi
|
||||
|
||||
@@ -18091,7 +18091,7 @@ fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
|
||||
- if test "x$cairo_cc_stderr" != "x"; then
|
||||
+ if false; then
|
||||
cairo_cc_flag=no
|
||||
fi
|
||||
|
||||
@@ -18161,7 +18161,7 @@ fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
|
||||
- if test "x$cairo_cc_stderr" != "x"; then
|
||||
+ if false; then
|
||||
cairo_cc_flag=no
|
||||
fi
|
||||
|
||||
@@ -18217,7 +18217,7 @@ fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
|
||||
- if test "x$cairo_cc_stderr" != "x"; then
|
||||
+ if false; then
|
||||
cairo_cc_flag=no
|
||||
fi
|
||||
|
||||
@@ -19663,7 +19663,7 @@ fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
|
||||
- if test "x$cairo_cc_stderr" != "x"; then
|
||||
+ if false; then
|
||||
cairo_cc_flag=no
|
||||
fi
|
||||
|
||||
@@ -19710,7 +19710,7 @@ fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
|
||||
- if test "x$cairo_cc_stderr" != "x"; then
|
||||
+ if false; then
|
||||
cairo_cc_flag=no
|
||||
fi
|
||||
|
||||
@@ -32692,7 +32692,7 @@ fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
|
||||
- if test "x$cairo_cc_stderr" != "x"; then
|
||||
+ if false; then
|
||||
cairo_cc_flag=no
|
||||
fi
|
||||
|
||||
@@ -32811,7 +32811,7 @@ fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
|
||||
- if test "x$cairo_cc_stderr" != "x"; then
|
||||
+ if false ; then
|
||||
cairo_cc_flag=no
|
||||
fi
|
||||
|
||||
@@ -32892,7 +32892,7 @@ fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
|
||||
- if test "x$cairo_cc_stderr" != "x"; then
|
||||
+ if false; then
|
||||
cairo_cc_flag=no
|
||||
fi
|
|
@ -1,54 +0,0 @@
|
|||
diff -ru glibc-2.18-orig/sunrpc/rpc_main.c glibc-2.18/sunrpc/rpc_main.c
|
||||
--- glibc-2.18-orig/sunrpc/rpc_main.c 2013-08-11 00:52:55.000000000 +0200
|
||||
+++ glibc-2.18/sunrpc/rpc_main.c 2013-11-15 12:04:48.041006977 +0100
|
||||
@@ -78,7 +78,7 @@
|
||||
|
||||
static const char *svcclosetime = "120";
|
||||
static int cppDefined; /* explicit path for C preprocessor */
|
||||
-static const char *CPP = "/lib/cpp";
|
||||
+static const char *CPP = "cpp";
|
||||
static const char CPPFLAGS[] = "-C";
|
||||
static char *pathbuf;
|
||||
static int cpp_pid;
|
||||
@@ -107,7 +107,6 @@
|
||||
static void open_output (const char *infile, const char *outfile);
|
||||
static void add_warning (void);
|
||||
static void clear_args (void);
|
||||
-static void find_cpp (void);
|
||||
static void open_input (const char *infile, const char *define);
|
||||
static int check_nettype (const char *name, const char *list_to_check[]);
|
||||
static void c_output (const char *infile, const char *define,
|
||||
@@ -322,25 +321,6 @@
|
||||
argcount = FIXEDARGS;
|
||||
}
|
||||
|
||||
-/* make sure that a CPP exists */
|
||||
-static void
|
||||
-find_cpp (void)
|
||||
-{
|
||||
- struct stat64 buf;
|
||||
-
|
||||
- if (stat64 (CPP, &buf) == 0)
|
||||
- return;
|
||||
-
|
||||
- if (cppDefined) /* user specified cpp but it does not exist */
|
||||
- {
|
||||
- fprintf (stderr, _ ("cannot find C preprocessor: %s\n"), CPP);
|
||||
- crash ();
|
||||
- }
|
||||
-
|
||||
- /* fall back to system CPP */
|
||||
- CPP = "cpp";
|
||||
-}
|
||||
-
|
||||
/*
|
||||
* Open input file with given define for C-preprocessor
|
||||
*/
|
||||
@@ -359,7 +339,6 @@
|
||||
switch (cpp_pid)
|
||||
{
|
||||
case 0:
|
||||
- find_cpp ();
|
||||
putarg (0, CPP);
|
||||
putarg (1, CPPFLAGS);
|
||||
addarg (define);
|
|
@ -1,27 +0,0 @@
|
|||
diff --git a/configure.ac b/configure.ac
|
||||
index 5007bbd..f46de1a 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -253,7 +253,7 @@ AS_IF([test "x${JDK_HOME}" != "x"], [
|
||||
])
|
||||
|
||||
AS_IF([test "x$use_bdjava_jar" = "xyes"], [
|
||||
-
|
||||
+ CPPFLAGS="${CPPFLAGS} -DJARDIR='\"\$(datadir)/java\"'"
|
||||
dnl check for ant
|
||||
AC_CHECK_PROG(HAVE_ANT, [ant], yes, no)
|
||||
AS_IF([test "x$HAVE_ANT" = "xno"], [
|
||||
diff --git a/src/libbluray/bdj/bdj.c b/src/libbluray/bdj/bdj.c
|
||||
index 1cb1bfe..f3711c2 100644
|
||||
--- a/src/libbluray/bdj/bdj.c
|
||||
+++ b/src/libbluray/bdj/bdj.c
|
||||
@@ -533,6 +533,9 @@ static char *_find_libbluray_jar0()
|
||||
# ifdef __FreeBSD__
|
||||
"/usr/local/share/java/" BDJ_JARFILE,
|
||||
# else
|
||||
+# ifdef JARDIR
|
||||
+ JARDIR "/" BDJ_JARFILE,
|
||||
+# endif
|
||||
"/usr/share/java/" BDJ_JARFILE,
|
||||
"/usr/share/libbluray/lib/" BDJ_JARFILE,
|
||||
# endif
|
|
@ -1,92 +0,0 @@
|
|||
diff --git a/tests/explicit_bzero.c b/tests/explicit_bzero.c
|
||||
index 34c60baa8a..9c0e917829 100644
|
||||
--- a/tests/explicit_bzero.c
|
||||
+++ b/tests/explicit_bzero.c
|
||||
@@ -1,4 +1,4 @@
|
||||
-/* $OpenBSD: explicit_bzero.c,v 1.6 2014/07/11 01:10:35 matthew Exp $ */
|
||||
+/* $OpenBSD: explicit_bzero.c,v 1.7 2021/03/27 11:17:58 bcook Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2014 Google Inc.
|
||||
*
|
||||
@@ -18,6 +18,7 @@
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <signal.h>
|
||||
+#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -36,19 +37,33 @@ enum {
|
||||
SECRETBYTES = SECRETCOUNT * sizeof(secret)
|
||||
};
|
||||
|
||||
-static char altstack[SIGSTKSZ + SECRETBYTES];
|
||||
+/*
|
||||
+ * As of glibc 2.34, when _GNU_SOURCE is defined, SIGSTKSZ is no longer
|
||||
+ * constant on Linux. SIGSTKSZ is redefined to sysconf (_SC_SIGSTKSZ).
|
||||
+ */
|
||||
+static char *altstack;
|
||||
+#define ALTSTACK_SIZE (SIGSTKSZ + SECRETBYTES)
|
||||
|
||||
static void
|
||||
setup_stack(void)
|
||||
{
|
||||
+ altstack = calloc(1, ALTSTACK_SIZE);
|
||||
+ ASSERT_NE(NULL, altstack);
|
||||
+
|
||||
const stack_t sigstk = {
|
||||
.ss_sp = altstack,
|
||||
- .ss_size = sizeof(altstack),
|
||||
+ .ss_size = ALTSTACK_SIZE
|
||||
};
|
||||
|
||||
ASSERT_EQ(0, sigaltstack(&sigstk, NULL));
|
||||
}
|
||||
|
||||
+static void
|
||||
+cleanup_stack(void)
|
||||
+{
|
||||
+ free(altstack);
|
||||
+}
|
||||
+
|
||||
static void
|
||||
assert_on_stack(void)
|
||||
{
|
||||
@@ -129,7 +144,7 @@ test_without_bzero()
|
||||
char buf[SECRETBYTES];
|
||||
assert_on_stack();
|
||||
populate_secret(buf, sizeof(buf));
|
||||
- char *res = memmem(altstack, sizeof(altstack), buf, sizeof(buf));
|
||||
+ char *res = memmem(altstack, ALTSTACK_SIZE, buf, sizeof(buf));
|
||||
ASSERT_NE(NULL, res);
|
||||
return (res);
|
||||
}
|
||||
@@ -140,7 +155,7 @@ test_with_bzero()
|
||||
char buf[SECRETBYTES];
|
||||
assert_on_stack();
|
||||
populate_secret(buf, sizeof(buf));
|
||||
- char *res = memmem(altstack, sizeof(altstack), buf, sizeof(buf));
|
||||
+ char *res = memmem(altstack, ALTSTACK_SIZE, buf, sizeof(buf));
|
||||
ASSERT_NE(NULL, res);
|
||||
explicit_bzero(buf, sizeof(buf));
|
||||
return (res);
|
||||
@@ -183,15 +198,17 @@ main()
|
||||
* on the stack. This sanity checks that call_on_stack() and
|
||||
* populate_secret() work as intended.
|
||||
*/
|
||||
- memset(altstack, 0, sizeof(altstack));
|
||||
+ memset(altstack, 0, ALTSTACK_SIZE);
|
||||
call_on_stack(do_test_without_bzero);
|
||||
|
||||
/*
|
||||
* Now test with a call to explicit_bzero() and check that we
|
||||
* *don't* find any instances of the secret data.
|
||||
*/
|
||||
- memset(altstack, 0, sizeof(altstack));
|
||||
+ memset(altstack, 0, ALTSTACK_SIZE);
|
||||
call_on_stack(do_test_with_bzero);
|
||||
|
||||
+ cleanup_stack();
|
||||
+
|
||||
return (0);
|
||||
}
|
|
@ -1,24 +0,0 @@
|
|||
diff --git a/meson.build b/meson.build
|
||||
index 28799d8..047e523 100644
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -72,11 +72,15 @@
|
||||
pc_conf = configuration_data()
|
||||
pc_conf.set('prefix', get_option('prefix'))
|
||||
pc_conf.set('exec_prefix', '${prefix}')
|
||||
-pc_conf.set('libdir', '${exec_prefix}/' + get_option('libdir'))
|
||||
-pc_conf.set('includedir', '${prefix}/' + get_option('includedir'))
|
||||
-pc_conf.set('STARTUP_NOTIFICATION_PACKAGE', STARTUP_NOTIFICATION_PACKAGE)
|
||||
+pc_conf.set('libdir', '${exec_prefix}' / get_option('libdir'))
|
||||
+pc_conf.set('includedir', '${prefix}' / get_option('includedir'))
|
||||
+if conf.has('HAVE_' + STARTUP_NOTIFICATION_PACKAGE.to_upper().underscorify())
|
||||
+ pc_conf.set('STARTUP_NOTIFICATION_PACKAGE', STARTUP_NOTIFICATION_PACKAGE)
|
||||
+endif
|
||||
pc_conf.set('X11_PACKAGE', X11_PACKAGE)
|
||||
-pc_conf.set('XRES_PACKAGE', XRES_PACKAGE)
|
||||
+if conf.has('HAVE_' + XRES_PACKAGE.to_upper().underscorify())
|
||||
+ pc_conf.set('XRES_PACKAGE', XRES_PACKAGE)
|
||||
+endif
|
||||
pc_conf.set('VERSION', meson.project_version())
|
||||
|
||||
foreach pc: [PACKAGE_NAME, PACKAGE_NAME + '-uninstalled']
|
|
@ -1,13 +0,0 @@
|
|||
Index: loudmouth-1.4.3/loudmouth/lm-error.c
|
||||
===================================================================
|
||||
--- loudmouth-1.4.3.orig/loudmouth/lm-error.c
|
||||
+++ loudmouth-1.4.3/loudmouth/lm-error.c
|
||||
@@ -19,7 +19,7 @@
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
-#include <glib/gerror.h>
|
||||
+#include <glib.h>
|
||||
#include "lm-error.h"
|
||||
|
||||
/**
|
|
@ -1,13 +0,0 @@
|
|||
diff --git a/src/mp4.cpp b/src/mp4.cpp
|
||||
index c2a7238..9bb3e38 100644
|
||||
--- a/src/mp4.cpp
|
||||
+++ b/src/mp4.cpp
|
||||
@@ -870,7 +870,7 @@ MP4FileHandle MP4ReadProvider( const char* fileName, const MP4FileProvider* file
|
||||
}
|
||||
|
||||
catch (...) {
|
||||
- return MP4_INVALID_TRACK_ID;
|
||||
+ return NULL;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
diff -Naur old/lib/crypto/client.cpp c5pf6ygk9v9rdwwr3dyd24wghflp0vmx-source/lib/crypto/client.cpp
|
||||
--- old/lib/crypto/client.cpp 2021-10-22 19:31:52.159836190 +0300
|
||||
+++ c5pf6ygk9v9rdwwr3dyd24wghflp0vmx-source/lib/crypto/client.cpp 2021-10-22 19:30:42.882010441 +0300
|
||||
@@ -37,15 +37,15 @@
|
||||
|
||||
};
|
||||
|
||||
-OlmErrorCode
|
||||
+mtx::crypto::OlmErrorCode
|
||||
olm_exception::ec_from_string(std::string_view error)
|
||||
{
|
||||
for (size_t i = 0; i < olmErrorStrings.size(); i++) {
|
||||
if (olmErrorStrings[i] == error)
|
||||
- return static_cast<OlmErrorCode>(i);
|
||||
+ return static_cast<mtx::crypto::OlmErrorCode>(i);
|
||||
}
|
||||
|
||||
- return OlmErrorCode::UNKNOWN_ERROR;
|
||||
+ return mtx::crypto::OlmErrorCode::UNKNOWN_ERROR;
|
||||
}
|
||||
|
||||
void
|
|
@ -1,45 +0,0 @@
|
|||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 28103856e..a36909c0e 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -449,13 +449,6 @@ install(FILES
|
||||
DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel
|
||||
)
|
||||
|
||||
-if(EIGEN_BUILD_PKGCONFIG)
|
||||
- configure_file(eigen3.pc.in eigen3.pc @ONLY)
|
||||
- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/eigen3.pc
|
||||
- DESTINATION ${PKGCONFIG_INSTALL_DIR}
|
||||
- )
|
||||
-endif()
|
||||
-
|
||||
install(DIRECTORY Eigen DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel)
|
||||
|
||||
add_subdirectory(doc EXCLUDE_FROM_ALL)
|
||||
@@ -570,8 +563,15 @@ set ( EIGEN_VERSION_MAJOR ${EIGEN_WORLD_VERSION} )
|
||||
set ( EIGEN_VERSION_MINOR ${EIGEN_MAJOR_VERSION} )
|
||||
set ( EIGEN_VERSION_PATCH ${EIGEN_MINOR_VERSION} )
|
||||
set ( EIGEN_DEFINITIONS "")
|
||||
-set ( EIGEN_INCLUDE_DIR "${CMAKE_INSTALL_PREFIX}/${INCLUDE_INSTALL_DIR}" )
|
||||
set ( EIGEN_ROOT_DIR ${CMAKE_INSTALL_PREFIX} )
|
||||
+GNUInstallDirs_get_absolute_install_dir(EIGEN_INCLUDE_DIR INCLUDE_INSTALL_DIR)
|
||||
+
|
||||
+if(EIGEN_BUILD_PKGCONFIG)
|
||||
+ configure_file(eigen3.pc.in eigen3.pc @ONLY)
|
||||
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/eigen3.pc
|
||||
+ DESTINATION ${PKGCONFIG_INSTALL_DIR}
|
||||
+ )
|
||||
+endif()
|
||||
|
||||
# Interface libraries require at least CMake 3.0
|
||||
if (NOT CMAKE_VERSION VERSION_LESS 3.0)
|
||||
diff --git a/eigen3.pc.in b/eigen3.pc.in
|
||||
index 3368a3aa1..d6778bf06 100644
|
||||
--- a/eigen3.pc.in
|
||||
+++ b/eigen3.pc.in
|
||||
@@ -6,4 +6,4 @@ Description: A C++ template library for linear algebra: vectors, matrices, and r
|
||||
Requires:
|
||||
Version: @EIGEN_VERSION_NUMBER@
|
||||
Libs:
|
||||
-Cflags: -I${prefix}/@INCLUDE_INSTALL_DIR@
|
||||
+Cflags: -I@EIGEN_INCLUDE_DIR@
|
|
@ -1,18 +0,0 @@
|
|||
diff --git a/meson.build b/meson.build
|
||||
index 1c6b32d..aa7dd25 100644
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -58,10 +58,10 @@ endif
|
||||
|
||||
# argp-standalone dependency (if required)
|
||||
if build_machine.system() == 'windows' or build_machine.system() == 'darwin' or build_machine.system() == 'freebsd' or not cc.links('#include <argp.h>\nstatic error_t parse_opt (int key, char *arg, struct argp_state *state) { argp_usage(state); return 0; }; void main() {}')
|
||||
- if fs.is_dir(join_paths([get_option('prefix'), 'include']))
|
||||
- inc += include_directories(join_paths([get_option('prefix'), 'include']))
|
||||
+ argplib = cc.find_library('argp', has_headers : ['argp.h'], required: false)
|
||||
+ if not argplib.found()
|
||||
+ argplib = dependency('argp-standalone')
|
||||
endif
|
||||
- argplib = cc.find_library('argp', dirs : join_paths([get_option('prefix'), 'lib']))
|
||||
else
|
||||
argplib = dependency('', required : false)
|
||||
endif
|
|
@ -1,19 +0,0 @@
|
|||
Dont use the qt+libs system for managing Qt dependencies, because Nix provides
|
||||
them already.
|
||||
Don't build the deploy.lisp helper file, because Nix also can handle deployment.
|
||||
--- a/qtools.asd
|
||||
+++ b/qtools.asd
|
||||
@@ -33,10 +33,9 @@
|
||||
(:file "generate")
|
||||
(:file "dynamic")
|
||||
(:file "precompile")
|
||||
- (:file "deploy")
|
||||
(:file "fast-call")
|
||||
(:file "documentation"))
|
||||
- :depends-on (:qt+libs
|
||||
+ :depends-on (:qt
|
||||
:deploy
|
||||
:cl-ppcre
|
||||
:closer-mop
|
||||
|
||||
Diff finished. Sun Oct 2 14:38:06 2022
|
|
@ -1,36 +0,0 @@
|
|||
--- a/qt-libs.asd
|
||||
+++ b/qt-libs.asd
|
||||
@@ -17,5 +17,4 @@
|
||||
:components ((:file "qt-libs"))
|
||||
:depends-on (:qt-lib-generator
|
||||
:cl-ppcre
|
||||
- :cffi)
|
||||
- :perform (asdf:load-op :after (op c) (uiop:symbol-call :qt-libs :ensure-standalone-libs)))
|
||||
+ :cffi))
|
||||
--- a/qt-libs.lisp
|
||||
+++ b/qt-libs.lisp
|
||||
@@ -94,16 +94,14 @@
|
||||
standalone-dir)
|
||||
|
||||
(defun %ensure-lib-loaded (file)
|
||||
- (let ((file (etypecase file
|
||||
- (pathname file)
|
||||
- (string (installed-library-file file))))
|
||||
- (name (intern (string-upcase (pathname-name file))))
|
||||
- #+sbcl(sb-ext:*muffled-warnings* 'style-warning))
|
||||
- (cffi::register-foreign-library
|
||||
- name `((T ,file))
|
||||
- :search-path (to-directory file))
|
||||
- (unless (cffi:foreign-library-loaded-p name)
|
||||
- (cffi:load-foreign-library name))))
|
||||
+ (let ((name (make-pathname :name (format nil "lib~a" file)
|
||||
+ :type #+unix "so"
|
||||
+ #+darwin "dylib")))
|
||||
+ (or (find-if (lambda (lib)
|
||||
+ (equal (cffi:foreign-library-pathname lib)
|
||||
+ (namestring name)))
|
||||
+ (cffi:list-foreign-libraries))
|
||||
+ (cffi:load-foreign-library name))))
|
||||
|
||||
(defun ensure-lib-loaded (file)
|
||||
(cond ((pathnamep file)
|
|
@ -1,15 +0,0 @@
|
|||
--- old/Makefile 2005-03-13 09:00:29.000000000 -0500
|
||||
+++ new/Makefile 2010-08-26 14:20:34.515785557 -0400
|
||||
@@ -67,10 +67,10 @@
|
||||
testall: test testopt
|
||||
.PHONY: test
|
||||
test: unittest
|
||||
- ./unittest
|
||||
+ LD_LIBRARY_PATH=. ./unittest
|
||||
.PHONY: testopt
|
||||
testopt: unittest.opt
|
||||
- ./unittest.opt
|
||||
+ LD_LIBRARY_PATH=. ./unittest.opt
|
||||
unittest: all unittest.ml
|
||||
$(OCAMLFIND) ocamlc -o unittest -package oUnit -ccopt -L. -linkpkg \
|
||||
$(ARCHIVE) unittest.ml
|
|
@ -1,18 +0,0 @@
|
|||
diff --git a/dvc/daemon.py b/dvc/daemon.py
|
||||
index 9854a0e1..fefdd613 100644
|
||||
--- a/dvc/daemon.py
|
||||
+++ b/dvc/daemon.py
|
||||
@@ -103,11 +103,8 @@ def daemon(args):
|
||||
logger.debug("skipping launching a new daemon.")
|
||||
return
|
||||
|
||||
- cmd = ["daemon", "-q"] + args
|
||||
-
|
||||
- env = fix_env()
|
||||
- file_path = os.path.abspath(inspect.stack()[0][1])
|
||||
- env["PYTHONPATH"] = os.path.dirname(os.path.dirname(file_path))
|
||||
+ cmd = [ "@dvc@" , "daemon", "-q"] + args
|
||||
+ env = os.environ.copy()
|
||||
env[DVC_DAEMON] = "1"
|
||||
|
||||
_spawn(cmd, env)
|
|
@ -1,274 +0,0 @@
|
|||
From 16df11227b8cee724624541d274e481802ea67e3 Mon Sep 17 00:00:00 2001
|
||||
From: frmdstryr <frmdstryr@protonmail.com>
|
||||
Date: Tue, 3 Nov 2020 21:41:52 -0500
|
||||
Subject: [PATCH] Replace Unicode with Str
|
||||
|
||||
---
|
||||
enamlx/widgets/abstract_item.py | 4 ++--
|
||||
enamlx/widgets/console.py | 4 ++--
|
||||
enamlx/widgets/graphics_view.py | 8 ++++----
|
||||
enamlx/widgets/plot_area.py | 14 +++++++-------
|
||||
examples/occ_viewer/advanced.enaml | 12 ++++++------
|
||||
examples/occ_viewer/occ/part.py | 6 +++---
|
||||
examples/plot_area/plot_area.enaml | 2 +-
|
||||
examples/table_view/table_view.enaml | 6 +++---
|
||||
examples/tree_view/tree_view.enaml | 6 +++---
|
||||
setup.py | 2 +-
|
||||
10 files changed, 32 insertions(+), 32 deletions(-)
|
||||
|
||||
diff --git a/enamlx/widgets/abstract_item.py b/enamlx/widgets/abstract_item.py
|
||||
index 29a3d87..67a5c6e 100644
|
||||
--- a/enamlx/widgets/abstract_item.py
|
||||
+++ b/enamlx/widgets/abstract_item.py
|
||||
@@ -6,7 +6,7 @@
|
||||
Created on Aug 24, 2015
|
||||
"""
|
||||
from atom.api import (
|
||||
- Int, Enum, Bool, Unicode, Typed,
|
||||
+ Int, Enum, Bool, Str, Typed,
|
||||
Coerced, Event, Property, ForwardInstance, observe
|
||||
)
|
||||
from enaml.icon import Icon
|
||||
@@ -96,7 +96,7 @@ class AbstractWidgetItem(AbstractWidgetItemGroup):
|
||||
column = d_(Int(), writable=False)
|
||||
|
||||
#: Text to display within the cell
|
||||
- text = d_(Unicode())
|
||||
+ text = d_(Str())
|
||||
|
||||
#: Text alignment within the cell
|
||||
text_alignment = d_(Enum(*[(h, v)
|
||||
diff --git a/enamlx/widgets/console.py b/enamlx/widgets/console.py
|
||||
index bc61e90..2f1e981 100644
|
||||
--- a/enamlx/widgets/console.py
|
||||
+++ b/enamlx/widgets/console.py
|
||||
@@ -7,7 +7,7 @@
|
||||
"""
|
||||
|
||||
from atom.api import (
|
||||
- Instance, Coerced, Int, Enum, Unicode, Dict, Bool,
|
||||
+ Instance, Coerced, Int, Enum, Str, Dict, Bool,
|
||||
Typed, ForwardTyped, observe
|
||||
)
|
||||
from enaml.core.api import d_
|
||||
@@ -47,7 +47,7 @@ class Console(Container):
|
||||
proxy = Typed(ProxyConsole)
|
||||
|
||||
#: Font family, leave blank for default
|
||||
- font_family = d_(Unicode())
|
||||
+ font_family = d_(Str())
|
||||
|
||||
#: Font size, leave 0 for default
|
||||
font_size = d_(Int(0))
|
||||
diff --git a/enamlx/widgets/graphics_view.py b/enamlx/widgets/graphics_view.py
|
||||
index f7e3e47..e672c63 100644
|
||||
--- a/enamlx/widgets/graphics_view.py
|
||||
+++ b/enamlx/widgets/graphics_view.py
|
||||
@@ -7,7 +7,7 @@
|
||||
import sys
|
||||
from atom.api import (
|
||||
Atom, Float, Int, Typed, Bool, Coerced, ForwardTyped, Enum, List, IntEnum,
|
||||
- Instance, Unicode, Value, Event, Property, observe, set_default
|
||||
+ Instance, Str, Value, Event, Property, observe, set_default
|
||||
)
|
||||
from enaml.colors import ColorMember
|
||||
from enaml.core.declarative import d_, d_func
|
||||
@@ -419,10 +419,10 @@ class GraphicsItem(ToolkitObject, ConstrainableMixin):
|
||||
visible = d_(Bool(True))
|
||||
|
||||
#: Tool tip
|
||||
- tool_tip = d_(Unicode())
|
||||
+ tool_tip = d_(Str())
|
||||
|
||||
#: Status tip
|
||||
- status_tip = d_(Unicode())
|
||||
+ status_tip = d_(Str())
|
||||
|
||||
# --------------------------------------------------------------------------
|
||||
# Item interaction
|
||||
@@ -919,7 +919,7 @@ class GraphicsTextItem(AbstractGraphicsShapeItem):
|
||||
proxy = Typed(ProxyGraphicsTextItem)
|
||||
|
||||
#: Text
|
||||
- text = d_(Unicode())
|
||||
+ text = d_(Str())
|
||||
|
||||
#: Font
|
||||
font = d_(FontMember())
|
||||
diff --git a/enamlx/widgets/plot_area.py b/enamlx/widgets/plot_area.py
|
||||
index 5136693..383957b 100644
|
||||
--- a/enamlx/widgets/plot_area.py
|
||||
+++ b/enamlx/widgets/plot_area.py
|
||||
@@ -8,7 +8,7 @@
|
||||
import sys
|
||||
from atom.atom import set_default
|
||||
from atom.api import (Callable, Int, Tuple, Instance, Enum, Float,
|
||||
- ContainerList, Bool, FloatRange, Unicode, Dict, Typed,
|
||||
+ ContainerList, Bool, FloatRange, Str, Dict, Typed,
|
||||
ForwardTyped, observe)
|
||||
from enaml.core.declarative import d_
|
||||
from enaml.widgets.api import Container
|
||||
@@ -41,10 +41,10 @@ class PlotArea(Container):
|
||||
|
||||
class PlotItem(Control):
|
||||
#: Title of data series
|
||||
- title = d_(Unicode())
|
||||
+ title = d_(Str())
|
||||
|
||||
#: Name
|
||||
- name = d_(Unicode())
|
||||
+ name = d_(Str())
|
||||
|
||||
#: Row in plot area
|
||||
row = d_(Int(0))
|
||||
@@ -89,10 +89,10 @@ class PlotItem(Control):
|
||||
#: Show legend
|
||||
show_legend = d_(Bool(False))
|
||||
|
||||
- label_left = d_(Unicode())
|
||||
- label_right = d_(Unicode())
|
||||
- label_top = d_(Unicode())
|
||||
- label_bottom = d_(Unicode())
|
||||
+ label_left = d_(Str())
|
||||
+ label_right = d_(Str())
|
||||
+ label_top = d_(Str())
|
||||
+ label_bottom = d_(Str())
|
||||
|
||||
# H, V
|
||||
grid = d_(Tuple(bool, default=(False, False)))
|
||||
diff --git a/examples/occ_viewer/advanced.enaml b/examples/occ_viewer/advanced.enaml
|
||||
index 872d44d..f1c48d5 100644
|
||||
--- a/examples/occ_viewer/advanced.enaml
|
||||
+++ b/examples/occ_viewer/advanced.enaml
|
||||
@@ -15,7 +15,7 @@ is then used to unroll a list of these controls into the body of a form.
|
||||
|
||||
<< autodoc-me >>
|
||||
"""
|
||||
-from atom.api import Atom, Bool, Enum, Event, Float, Int, Str, Unicode
|
||||
+from atom.api import Atom, Bool, Enum, Event, Float, Int, Str, Str
|
||||
|
||||
from enaml.core.api import DynamicTemplate
|
||||
from enaml.stdlib.fields import FloatField
|
||||
@@ -73,8 +73,8 @@ template FormControl(Attr, MemberType: Str):
|
||||
text :: setattr(model, Attr, str(text))
|
||||
|
||||
|
||||
-template FormControl(Attr, MemberType: Unicode):
|
||||
- """ A form control template specialization for Unicode members.
|
||||
+template FormControl(Attr, MemberType: Str):
|
||||
+ """ A form control template specialization for Str members.
|
||||
|
||||
This control uses a Field to represent the value.
|
||||
|
||||
@@ -174,7 +174,7 @@ def form_spec(obtype, model):
|
||||
|
||||
typemap = {int:Int,
|
||||
float:Float,
|
||||
- unicode:Unicode,
|
||||
+ unicode:Str,
|
||||
str:Str}
|
||||
for name, member in obtype.members().iteritems():
|
||||
if (not name.startswith('_')
|
||||
@@ -263,14 +263,14 @@ class FooModel(Atom):
|
||||
ham = Int(42)
|
||||
first = Str('first')
|
||||
last = Str('last')
|
||||
- owner = Unicode('owner')
|
||||
+ owner = Str('owner')
|
||||
time = Float(42.56)
|
||||
click = Bool()
|
||||
clack = Bool()
|
||||
|
||||
|
||||
class BarModel(Atom):
|
||||
- name = Unicode('name')
|
||||
+ name = Str('name')
|
||||
trigger = Event()
|
||||
choices = Enum('first', 'second', 'third')
|
||||
def _observe_trigger(self, change):
|
||||
diff --git a/examples/occ_viewer/occ/part.py b/examples/occ_viewer/occ/part.py
|
||||
index 1fe2b85..144354f 100644
|
||||
--- a/examples/occ_viewer/occ/part.py
|
||||
+++ b/examples/occ_viewer/occ/part.py
|
||||
@@ -5,7 +5,7 @@
|
||||
'''
|
||||
|
||||
from atom.api import (
|
||||
- Typed, ForwardTyped, Unicode
|
||||
+ Typed, ForwardTyped, Str
|
||||
)
|
||||
from enaml.core.declarative import d_
|
||||
|
||||
@@ -26,10 +26,10 @@ class Part(ToolkitObject):
|
||||
proxy = Typed(ProxyPart)
|
||||
|
||||
#: Optional name of the part
|
||||
- name = d_(Unicode())
|
||||
+ name = d_(Str())
|
||||
|
||||
#: Optional description of the part
|
||||
- description = d_(Unicode())
|
||||
+ description = d_(Str())
|
||||
|
||||
@property
|
||||
def shapes(self):
|
||||
diff --git a/examples/plot_area/plot_area.enaml b/examples/plot_area/plot_area.enaml
|
||||
index 2085c8f..b5cd3c4 100644
|
||||
--- a/examples/plot_area/plot_area.enaml
|
||||
+++ b/examples/plot_area/plot_area.enaml
|
||||
@@ -2,7 +2,7 @@
|
||||
Demonstrating the examples from pyqtgraph
|
||||
"""
|
||||
|
||||
-from atom.api import (Atom, Unicode, Range, List, Bool)
|
||||
+from atom.api import (Atom, Str, Range, List, Bool)
|
||||
|
||||
from enaml.widgets.api import (
|
||||
Window, Container, DockArea,DockItem,PushButton, CheckBox, RadioButton
|
||||
diff --git a/examples/table_view/table_view.enaml b/examples/table_view/table_view.enaml
|
||||
index 6d7a35e..6fef544 100644
|
||||
--- a/examples/table_view/table_view.enaml
|
||||
+++ b/examples/table_view/table_view.enaml
|
||||
@@ -2,7 +2,7 @@ import os
|
||||
import time
|
||||
import random
|
||||
from threading import Thread
|
||||
-from atom.api import (Atom, Unicode, Range, ContainerList, Bool)
|
||||
+from atom.api import (Atom, Str, Range, ContainerList, Bool)
|
||||
|
||||
from enamlx.widgets.table_view import (
|
||||
TableView, TableViewRow, TableViewItem
|
||||
@@ -38,9 +38,9 @@ class Person(Atom):
|
||||
""" A simple class representing a person object.
|
||||
|
||||
"""
|
||||
- last_name = Unicode()
|
||||
+ last_name = Str()
|
||||
|
||||
- first_name = Unicode()
|
||||
+ first_name = Str()
|
||||
|
||||
age = Range(low=0)
|
||||
|
||||
diff --git a/examples/tree_view/tree_view.enaml b/examples/tree_view/tree_view.enaml
|
||||
index 37f991f..e88e1fd 100644
|
||||
--- a/examples/tree_view/tree_view.enaml
|
||||
+++ b/examples/tree_view/tree_view.enaml
|
||||
@@ -1,5 +1,5 @@
|
||||
import os
|
||||
-from atom.api import (Atom, Unicode, Range, List, Bool, ForwardInstance)
|
||||
+from atom.api import (Atom, Str, Range, List, Bool, ForwardInstance)
|
||||
|
||||
from enamlx.widgets.api import (
|
||||
TreeView, TreeViewItem, TreeViewColumn,
|
||||
@@ -33,9 +33,9 @@ class Person(Atom):
|
||||
""" A simple class representing a person object.
|
||||
|
||||
"""
|
||||
- last_name = Unicode()
|
||||
+ last_name = Str()
|
||||
|
||||
- first_name = Unicode()
|
||||
+ first_name = Str()
|
||||
|
||||
children = List(ForwardInstance(lambda:Person))
|
|
@ -1,13 +0,0 @@
|
|||
diff --git a/tests.py b/tests.py
|
||||
index e5a2811..16e7a0f 100644
|
||||
--- a/tests.py
|
||||
+++ b/tests.py
|
||||
@@ -394,7 +394,7 @@ class FaultHandlerTests(unittest.TestCase):
|
||||
print(faulthandler.is_enabled())
|
||||
""",
|
||||
env=dict(os.environ, PYTHONFAULTHANDLER='x'))
|
||||
- self.assertEqual(output, ["True"])
|
||||
+ #self.assertEqual(output, ["True"])
|
||||
self.assertEqual(exitcode, 0)
|
||||
|
||||
output, exitcode = self.get_output("""
|
|
@ -1,45 +0,0 @@
|
|||
diff --git a/flask_appbuilder/security/api.py b/flask_appbuilder/security/api.py
|
||||
index 2e2dfd612..df1bd5a25 100644
|
||||
--- a/flask_appbuilder/security/api.py
|
||||
+++ b/flask_appbuilder/security/api.py
|
||||
@@ -3,7 +3,7 @@
|
||||
create_access_token,
|
||||
create_refresh_token,
|
||||
get_jwt_identity,
|
||||
- jwt_refresh_token_required,
|
||||
+ jwt_required,
|
||||
)
|
||||
|
||||
from ..api import BaseApi, safe
|
||||
@@ -118,7 +118,7 @@ def login(self):
|
||||
return self.response(200, **resp)
|
||||
|
||||
@expose("/refresh", methods=["POST"])
|
||||
- @jwt_refresh_token_required
|
||||
+ @jwt_required(refresh=True)
|
||||
@safe
|
||||
def refresh(self):
|
||||
"""
|
||||
diff --git a/flask_appbuilder/security/manager.py b/flask_appbuilder/security/manager.py
|
||||
index fe7697007..3b22ab255 100644
|
||||
--- a/flask_appbuilder/security/manager.py
|
||||
+++ b/flask_appbuilder/security/manager.py
|
||||
@@ -297,7 +297,7 @@ def create_jwt_manager(self, app) -> JWTManager:
|
||||
"""
|
||||
jwt_manager = JWTManager()
|
||||
jwt_manager.init_app(app)
|
||||
- jwt_manager.user_loader_callback_loader(self.load_user_jwt)
|
||||
+ jwt_manager.user_lookup_loader(self.load_user_jwt)
|
||||
return jwt_manager
|
||||
|
||||
def create_builtin_roles(self):
|
||||
@@ -1944,7 +1944,8 @@ def del_permission_role(self, role, perm_view):
|
||||
def load_user(self, pk):
|
||||
return self.get_user_by_id(int(pk))
|
||||
|
||||
- def load_user_jwt(self, pk):
|
||||
+ def load_user_jwt(self, _jwt_header, jwt_data):
|
||||
+ pk = jwt_data["sub"]
|
||||
user = self.load_user(pk)
|
||||
# Set flask g.user to JWT user, we can't do it on before request
|
||||
g.user = user
|
|
@ -1,26 +0,0 @@
|
|||
Test started failing after upgrading networkx 2.5.1 -> 2.6.2:
|
||||
https://github.com/jmschrei/pomegranate/issues/939
|
||||
|
||||
Failures look benigh.
|
||||
--- a/tests/test_bayesian_network.py
|
||||
+++ b/tests/test_bayesian_network.py
|
||||
@@ -1057,7 +1057,8 @@ def test_exact_structure_learning_exclude_edges():
|
||||
assert_not_equal(model.structure[-2], (d-1,))
|
||||
assert_equal(model.structure[-2], (1,))
|
||||
|
||||
-def test_exact_dp_structure_learning_exclude_edges():
|
||||
+# disabled for https://github.com/jmschrei/pomegranate/issues/939
|
||||
+def disabled_exact_dp_structure_learning_exclude_edges():
|
||||
for X in datasets:
|
||||
X = X.copy()
|
||||
X[:,1] = X[:,-1]
|
||||
@@ -1139,7 +1140,8 @@ def test_constrained_parents_structure_learning_exclude_edges():
|
||||
assert_equal(model.structure[7], (2,))
|
||||
assert_equal(model.structure[4], (0,))
|
||||
|
||||
-def test_constrained_slap_structure_learning_exclude_edges():
|
||||
+# disabled for https://github.com/jmschrei/pomegranate/issues/939
|
||||
+def disabled_constrained_slap_structure_learning_exclude_edges():
|
||||
for X in datasets:
|
||||
X = X.copy()
|
||||
X[:,1] = X[:,-1]
|
|
@ -1,30 +0,0 @@
|
|||
From 2fe7a445bafedee2c43050e40697d8b0fd7f7b30 Mon Sep 17 00:00:00 2001
|
||||
From: Maximilian Bosch <maximilian@mbosch.me>
|
||||
Date: Fri, 19 Mar 2021 19:37:34 +0100
|
||||
Subject: [PATCH] Only build unit-tests
|
||||
|
||||
---
|
||||
setup.cfg | 7 -------
|
||||
1 file changed, 7 deletions(-)
|
||||
|
||||
diff --git a/setup.cfg b/setup.cfg
|
||||
index 2c2f49f..a5ec152 100644
|
||||
--- a/setup.cfg
|
||||
+++ b/setup.cfg
|
||||
@@ -83,13 +83,6 @@ force_sort_within_sections = true
|
||||
junit_family = xunit2
|
||||
addopts =
|
||||
--verbose
|
||||
- --doctest-modules
|
||||
- --no-cov-on-fail
|
||||
- --cov-fail-under=100
|
||||
- --cov-report=term-missing
|
||||
- --cov-report=xml:build/coverage/coverage.xml
|
||||
- --cov-report=html:build/coverage
|
||||
- --junitxml=build/testresults/junit.xml
|
||||
|
||||
[coverage:run]
|
||||
omit =
|
||||
--
|
||||
2.29.3
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
From 942d4fd37786941bae91b769ef6499a4b4da6843 Mon Sep 17 00:00:00 2001
|
||||
From: "P. R. d. O" <d.ol.rod@tutanota.com>
|
||||
Date: Sat, 9 Apr 2022 12:40:59 -0600
|
||||
Subject: [PATCH] Updating pytest-aiohttp version
|
||||
|
||||
---
|
||||
setup.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index fe33d9a..694fab4 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -85,7 +85,7 @@ setup(
|
||||
tests_require=[
|
||||
'pytest>=6.1.1', 'requests-mock>=1.8.0',
|
||||
'freezegun>=1.1.0', 'certomancer~=0.8.1',
|
||||
- 'aiohttp~=3.8.0', 'pytest-aiohttp~=0.3.0',
|
||||
+ 'aiohttp~=3.8.0', 'pytest-aiohttp~=1.0.3',
|
||||
'python-pae==0.1.0'
|
||||
],
|
||||
keywords="signature pdf pades digital-signature pkcs11"
|
||||
--
|
||||
2.35.1
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
diff --git a/pyqtbuild/builder.py b/pyqtbuild/builder.py
|
||||
index 3f35a7f..58701dd 100644
|
||||
--- a/pyqtbuild/builder.py
|
||||
+++ b/pyqtbuild/builder.py
|
||||
@@ -51,15 +51,6 @@ class QmakeBuilder(Builder):
|
||||
""" Set default values for user options that haven't been set yet. """
|
||||
|
||||
if tool in Option.BUILD_TOOLS:
|
||||
- # A PEP 517 frontend will set PATH so that sip-distinfo is found on
|
||||
- # it. However for our own frontends we want to use the version
|
||||
- # corresponding to the frontend (and, anyway, the frontend may not
|
||||
- # be on PATH).
|
||||
- if tool != 'pep517':
|
||||
- self._sip_distinfo = os.path.join(
|
||||
- os.path.abspath(os.path.dirname(sys.argv[0])),
|
||||
- self._sip_distinfo)
|
||||
-
|
||||
# Check we have a qmake.
|
||||
if self.qmake is None:
|
||||
self.qmake = self._find_exe('qmake')
|
|
@ -1,31 +0,0 @@
|
|||
diff --git a/sip/QtWebEngineWidgets/qwebenginecertificateerror.sip b/sip/QtWebEngineWidgets/qwebenginecertificateerror.sip
|
||||
index 5fb508f..7a4654a 100644
|
||||
--- a/sip/QtWebEngineWidgets/qwebenginecertificateerror.sip
|
||||
+++ b/sip/QtWebEngineWidgets/qwebenginecertificateerror.sip
|
||||
@@ -48,7 +48,7 @@ public:
|
||||
%If (QtWebEngine_5_8_0 -)
|
||||
CertificateTransparencyRequired,
|
||||
%End
|
||||
-%If (QtWebEngine_5_14_0 -)
|
||||
+%If (QtWebEngine_5_15_0 -)
|
||||
CertificateKnownInterceptionBlocked,
|
||||
%End
|
||||
};
|
||||
diff --git a/sip/QtWebEngineWidgets/qwebenginepage.sip b/sip/QtWebEngineWidgets/qwebenginepage.sip
|
||||
index 0dcbed2..9aa3443 100644
|
||||
--- a/sip/QtWebEngineWidgets/qwebenginepage.sip
|
||||
+++ b/sip/QtWebEngineWidgets/qwebenginepage.sip
|
||||
@@ -663,10 +663,10 @@ signals:
|
||||
%End
|
||||
|
||||
public:
|
||||
-%If (QtWebEngine_5_14_0 -)
|
||||
+%If (QtWebEngine_5_15_0 -)
|
||||
qint64 renderProcessPid() const;
|
||||
%End
|
||||
-%If (QtWebEngine_5_14_0 -)
|
||||
+%If (QtWebEngine_5_15_0 -)
|
||||
void renderProcessPidChanged(qint64 pid);
|
||||
%End
|
||||
};
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
diff --git a/setup.py b/setup.py
|
||||
index 7625074..b3aa2fc 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -249,7 +249,7 @@ class inc_lib_dirs:
|
||||
aDir(L, os.path.join("/usr/lib", "python%s" % sys.version[:3], "config"))
|
||||
elif platform == "darwin":
|
||||
machine = sysconfig_platform.split('-')[-1]
|
||||
- if machine=='arm64' or os.environ.get('ARCHFLAGS','')=='-arch arm64':
|
||||
+ if False and machine=='arm64' or os.environ.get('ARCHFLAGS','')=='-arch arm64':
|
||||
#print('!!!!! detected darwin arm64 build')
|
||||
#probably an M1
|
||||
target = pjoin(
|
|
@ -1,18 +0,0 @@
|
|||
diff --git a/tests/test_authenticode.py b/tests/test_authenticode.py
|
||||
index 7e2c709..2f27e09 100644
|
||||
--- a/tests/test_authenticode.py
|
||||
+++ b/tests/test_authenticode.py
|
||||
@@ -153,10 +153,12 @@ class AuthenticodeParserTestCase(unittest.TestCase):
|
||||
"""this certificate is revoked"""
|
||||
with open(str(root_dir / "test_data" / "jameslth"), "rb") as f:
|
||||
pefile = SignedPEFile(f)
|
||||
- pefile.verify()
|
||||
+ pefile.verify(verification_context_kwargs=
|
||||
+ {'timestamp': datetime.datetime(2021, 1, 1, tzinfo=datetime.timezone.utc)})
|
||||
|
||||
def test_jameslth_revoked(self):
|
||||
"""this certificate is revoked"""
|
||||
+ # TODO: this certificate is now expired, so it will not show up as valid anyway
|
||||
with open(str(root_dir / "test_data" / "jameslth"), "rb") as f:
|
||||
pefile = SignedPEFile(f)
|
||||
with self.assertRaises(VerificationError):
|
|
@ -1,130 +0,0 @@
|
|||
From eb63747509b2c18793b95eb12cc0141277520798 Mon Sep 17 00:00:00 2001
|
||||
From: Simon Cozens <simon@simon-cozens.org>
|
||||
Date: Thu, 11 Feb 2021 09:43:41 +0000
|
||||
Subject: [PATCH 1/2] Rename cu2qu to fontTools.cu2qu
|
||||
|
||||
---
|
||||
Lib/ufo2ft/filters/cubicToQuadratic.py | 4 ++--
|
||||
Lib/ufo2ft/preProcessor.py | 4 ++--
|
||||
setup.py | 1 -
|
||||
tests/outlineCompiler_test.py | 2 +-
|
||||
tests/preProcessor_test.py | 2 +-
|
||||
5 files changed, 6 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/Lib/ufo2ft/filters/cubicToQuadratic.py b/Lib/ufo2ft/filters/cubicToQuadratic.py
|
||||
index 87d81b1..4b77144 100644
|
||||
--- a/Lib/ufo2ft/filters/cubicToQuadratic.py
|
||||
+++ b/Lib/ufo2ft/filters/cubicToQuadratic.py
|
||||
@@ -1,7 +1,7 @@
|
||||
import logging
|
||||
|
||||
-from cu2qu.pens import Cu2QuPointPen
|
||||
-from cu2qu.ufo import CURVE_TYPE_LIB_KEY, DEFAULT_MAX_ERR
|
||||
+from fontTools.pens.cu2quPen import Cu2QuPointPen
|
||||
+from fontTools.cu2qu.ufo import CURVE_TYPE_LIB_KEY, DEFAULT_MAX_ERR
|
||||
|
||||
from ufo2ft.filters import BaseFilter
|
||||
from ufo2ft.fontInfoData import getAttrWithFallback
|
||||
diff --git a/Lib/ufo2ft/preProcessor.py b/Lib/ufo2ft/preProcessor.py
|
||||
index e239152..9463aea 100644
|
||||
--- a/Lib/ufo2ft/preProcessor.py
|
||||
+++ b/Lib/ufo2ft/preProcessor.py
|
||||
@@ -267,7 +267,7 @@ class TTFInterpolatablePreProcessor:
|
||||
skipExportGlyphs=None,
|
||||
filters=None,
|
||||
):
|
||||
- from cu2qu.ufo import DEFAULT_MAX_ERR
|
||||
+ from fontTools.cu2qu.ufo import DEFAULT_MAX_ERR
|
||||
|
||||
self.ufos = ufos
|
||||
self.inplace = inplace
|
||||
@@ -304,7 +304,7 @@ class TTFInterpolatablePreProcessor:
|
||||
self.postFilters = [[f for f in filters if not f.pre] for filters in filterses]
|
||||
|
||||
def process(self):
|
||||
- from cu2qu.ufo import fonts_to_quadratic
|
||||
+ from fontTools.cu2qu.ufo import fonts_to_quadratic
|
||||
|
||||
needs_decomposition = set()
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index d8d9982..a165ab1 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -30,7 +30,6 @@ setup(
|
||||
tests_require=["pytest>=2.8"],
|
||||
install_requires=[
|
||||
"fonttools[ufo]>=4.34.0",
|
||||
- "cu2qu>=1.6.7",
|
||||
"cffsubr>=0.2.8",
|
||||
"booleanOperations>=0.9.0",
|
||||
],
|
||||
diff --git a/tests/outlineCompiler_test.py b/tests/outlineCompiler_test.py
|
||||
index b31319c..ee51920 100644
|
||||
--- a/tests/outlineCompiler_test.py
|
||||
+++ b/tests/outlineCompiler_test.py
|
||||
@@ -2,7 +2,7 @@ import logging
|
||||
import os
|
||||
|
||||
import pytest
|
||||
-from cu2qu.ufo import font_to_quadratic
|
||||
+from fontTools.cu2qu.ufo import font_to_quadratic
|
||||
from fontTools.ttLib import TTFont
|
||||
from fontTools.ttLib.tables._g_l_y_f import USE_MY_METRICS
|
||||
|
||||
diff --git a/tests/preProcessor_test.py b/tests/preProcessor_test.py
|
||||
index 11196f8..bc32d55 100644
|
||||
--- a/tests/preProcessor_test.py
|
||||
+++ b/tests/preProcessor_test.py
|
||||
@@ -2,7 +2,7 @@ import logging
|
||||
import os
|
||||
|
||||
import pytest
|
||||
-from cu2qu.ufo import CURVE_TYPE_LIB_KEY
|
||||
+from fontTools.cu2qu.ufo import CURVE_TYPE_LIB_KEY
|
||||
from fontTools import designspaceLib
|
||||
|
||||
import ufo2ft
|
||||
--
|
||||
2.36.1
|
||||
|
||||
From 58f3ab5e5db8090aba10fefd58ad8df4b507e7c3 Mon Sep 17 00:00:00 2001
|
||||
From: Simon Cozens <simon@simon-cozens.org>
|
||||
Date: Thu, 11 Feb 2021 09:49:28 +0000
|
||||
Subject: [PATCH 2/2] Sort the imports
|
||||
|
||||
---
|
||||
Lib/ufo2ft/filters/cubicToQuadratic.py | 2 +-
|
||||
tests/preProcessor_test.py | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/Lib/ufo2ft/filters/cubicToQuadratic.py b/Lib/ufo2ft/filters/cubicToQuadratic.py
|
||||
index 4b77144..5f28ea4 100644
|
||||
--- a/Lib/ufo2ft/filters/cubicToQuadratic.py
|
||||
+++ b/Lib/ufo2ft/filters/cubicToQuadratic.py
|
||||
@@ -1,7 +1,7 @@
|
||||
import logging
|
||||
|
||||
-from fontTools.pens.cu2quPen import Cu2QuPointPen
|
||||
from fontTools.cu2qu.ufo import CURVE_TYPE_LIB_KEY, DEFAULT_MAX_ERR
|
||||
+from fontTools.pens.cu2quPen import Cu2QuPointPen
|
||||
|
||||
from ufo2ft.filters import BaseFilter
|
||||
from ufo2ft.fontInfoData import getAttrWithFallback
|
||||
diff --git a/tests/preProcessor_test.py b/tests/preProcessor_test.py
|
||||
index bc32d55..41c579c 100644
|
||||
--- a/tests/preProcessor_test.py
|
||||
+++ b/tests/preProcessor_test.py
|
||||
@@ -2,8 +2,8 @@ import logging
|
||||
import os
|
||||
|
||||
import pytest
|
||||
-from fontTools.cu2qu.ufo import CURVE_TYPE_LIB_KEY
|
||||
from fontTools import designspaceLib
|
||||
+from fontTools.cu2qu.ufo import CURVE_TYPE_LIB_KEY
|
||||
|
||||
import ufo2ft
|
||||
from ufo2ft.constants import (
|
||||
--
|
||||
2.36.1
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
diff --git a/Xlib/xauth.py b/Xlib/xauth.py
|
||||
index 2ed7dd5..303bd49 100644
|
||||
--- a/Xlib/xauth.py
|
||||
+++ b/Xlib/xauth.py
|
||||
@@ -120,6 +120,8 @@ class Xauthority(object):
|
||||
matches = {}
|
||||
|
||||
for efam, eaddr, enum, ename, edata in self.entries:
|
||||
+ if enum == b'' and ename not in matches:
|
||||
+ enum = num
|
||||
if efam == family and eaddr == address and num == enum:
|
||||
matches[ename] = edata
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
From 3f5abd591b93ebdbc1ae82e5c29cf26024222f5f Mon Sep 17 00:00:00 2001
|
||||
From: Uri Baghin <uri@canva.com>
|
||||
Date: Thu, 30 Jan 2020 16:47:36 +1100
|
||||
Subject: [PATCH] Disable build file generation for remote apis.
|
||||
|
||||
---
|
||||
WORKSPACE | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/WORKSPACE b/WORKSPACE
|
||||
index f9ebafa..52e4e0b 100644
|
||||
--- a/WORKSPACE
|
||||
+++ b/WORKSPACE
|
||||
@@ -208,6 +208,7 @@ http_archive(
|
||||
|
||||
go_repository(
|
||||
name = "com_github_bazelbuild_remote_apis",
|
||||
+ build_file_generation = "off",
|
||||
importpath = "github.com/bazelbuild/remote-apis",
|
||||
sum = "h1:OPH+hf+ICw8WEp2CV2ncfdyWPC30Cmw8b5NKun0n5IQ=",
|
||||
version = "v0.0.0-20191119143007-b5123b1bb285",
|
||||
--
|
||||
2.25.0
|
||||
|
|
@ -1,68 +0,0 @@
|
|||
Fix iWerror=format build for 32-bit systems.
|
||||
https://sourceware.org/pipermail/gdb-patches/2022-May/189288.html
|
||||
--- a/sim/cris/sim-if.c
|
||||
+++ b/sim/cris/sim-if.c
|
||||
@@ -257,7 +257,8 @@ cris_load_elf_file (SIM_DESC sd, struct bfd *abfd, sim_write_fn do_write)
|
||||
|
||||
if (verbose)
|
||||
sim_io_printf (sd,
|
||||
- "Loading segment at 0x%" BFD_VMA_FMT "x, size 0x%lx\n",
|
||||
+ "Loading segment at 0x%" BFD_VMA_FMT "x, "
|
||||
+ "size 0x%" BFD_VMA_FMT "x\n",
|
||||
lma, phdr[i].p_filesz);
|
||||
|
||||
if (bfd_seek (abfd, phdr[i].p_offset, SEEK_SET) != 0
|
||||
@@ -265,7 +266,7 @@ cris_load_elf_file (SIM_DESC sd, struct bfd *abfd, sim_write_fn do_write)
|
||||
{
|
||||
sim_io_eprintf (sd,
|
||||
"%s: could not read segment at 0x%" BFD_VMA_FMT "x, "
|
||||
- "size 0x%lx\n",
|
||||
+ "size 0x%" BFD_VMA_FMT "x\n",
|
||||
STATE_MY_NAME (sd), lma, phdr[i].p_filesz);
|
||||
free (buf);
|
||||
return FALSE;
|
||||
@@ -275,7 +276,7 @@ cris_load_elf_file (SIM_DESC sd, struct bfd *abfd, sim_write_fn do_write)
|
||||
{
|
||||
sim_io_eprintf (sd,
|
||||
"%s: could not load segment at 0x%" BFD_VMA_FMT "x, "
|
||||
- "size 0x%lx\n",
|
||||
+ "size 0x%" BFD_VMA_FMT "x\n",
|
||||
STATE_MY_NAME (sd), lma, phdr[i].p_filesz);
|
||||
free (buf);
|
||||
return FALSE;
|
||||
@@ -572,7 +573,8 @@ cris_handle_interpreter (SIM_DESC sd, struct bfd *abfd)
|
||||
memory area, so we go via a temporary area. Luckily, the
|
||||
interpreter is supposed to be small, less than 0x40000
|
||||
bytes. */
|
||||
- sim_do_commandf (sd, "memory region 0x%" BFD_VMA_FMT "x,0x%lx",
|
||||
+ sim_do_commandf (sd, "memory region 0x%" BFD_VMA_FMT "x,"
|
||||
+ "0x%" BFD_VMA_FMT "x",
|
||||
interp_load_addr, interpsiz);
|
||||
|
||||
/* Now that memory for the interpreter is defined, load it. */
|
||||
--- a/sim/m32c/syscalls.c
|
||||
+++ b/sim/m32c/syscalls.c
|
||||
@@ -299,8 +299,8 @@ m32c_syscall (int id)
|
||||
|
||||
rv = gettimeofday (&tv, 0);
|
||||
if (trace)
|
||||
- printf ("gettimeofday: %ld sec %ld usec to 0x%x\n", tv.tv_sec,
|
||||
- tv.tv_usec, tvaddr);
|
||||
+ printf ("gettimeofday: %lld sec %lld usec to 0x%x\n",
|
||||
+ (long long)tv.tv_sec, (long long)tv.tv_usec, tvaddr);
|
||||
mem_put_si (tvaddr, tv.tv_sec);
|
||||
mem_put_si (tvaddr + 4, tv.tv_usec);
|
||||
put_reg (r0, rv);
|
||||
--- a/sim/rx/syscalls.c
|
||||
+++ b/sim/rx/syscalls.c
|
||||
@@ -270,8 +270,8 @@ rx_syscall (int id)
|
||||
|
||||
rv = gettimeofday (&tv, 0);
|
||||
if (trace)
|
||||
- printf ("gettimeofday: %ld sec %ld usec to 0x%x\n", tv.tv_sec,
|
||||
- tv.tv_usec, tvaddr);
|
||||
+ printf ("gettimeofday: %lld sec %lld usec to 0x%x\n",
|
||||
+ (long long)tv.tv_sec, (long long)tv.tv_usec, tvaddr);
|
||||
mem_put_si (tvaddr, tv.tv_sec);
|
||||
mem_put_si (tvaddr + 4, tv.tv_usec);
|
||||
put_reg (1, rv);
|
|
@ -1,95 +0,0 @@
|
|||
This patch is based off of npm tag v8.19.4.
|
||||
|
||||
This introduces fixes for 4 issues:
|
||||
|
||||
1. When node-gyp is included as a dependency in a project, any scripts that run it will not use the copy included in Node. This is problematic because we patch node-gyp to work without xcbuild on Darwin, leading to these packages failing to build with a sandbox on Darwin.
|
||||
2. When a Git dependency contains install scripts, it has to be built just like any other package. Thus, we need to patch shebangs appropriately, just like in npmConfigHook.
|
||||
3. We get useless warnings that clog up logs when using a v1 lockfile, so we silence them.
|
||||
4. npm looks at a hidden lockfile to determine if files have binaries to link into `node_modules/.bin`. When using a v1 lockfile offline, this lockfile does not contain enough info, leading to binaries for packages such as Webpack not being available to scripts. We used to work around this by making npm ignore the hidden lockfile by creating a file, but now we just disable the code path entirely.
|
||||
|
||||
To update:
|
||||
1. Run `git diff` from an npm checkout
|
||||
2. Run `fix-npm-patch-paths.sh`
|
||||
3. Include/update this frontmatter, please!
|
||||
|
||||
diff --git a/deps/npm/node_modules/@npmcli/run-script/lib/set-path.js b/deps/npm/node_modules/@npmcli/run-script/lib/set-path.js
|
||||
index c59c270d9..98785192f 100644
|
||||
--- a/deps/npm/node_modules/@npmcli/run-script/lib/set-path.js
|
||||
+++ b/deps/npm/node_modules/@npmcli/run-script/lib/set-path.js
|
||||
@@ -12,7 +12,10 @@ const setPATH = (projectPath, binPaths, env) => {
|
||||
.reduce((set, p) => set.concat(p.filter(concatted => !set.includes(concatted))), [])
|
||||
.join(delimiter)
|
||||
|
||||
- const pathArr = []
|
||||
+ // Ensure when using buildNpmPackage hooks that Node.js'
|
||||
+ // bundled copy of node-gyp is used, instead of any copy
|
||||
+ // pulled in as a dependency.
|
||||
+ const pathArr = process.env['NIX_NODEJS_BUILDNPMPACKAGE'] ? [nodeGypPath, PATH] : [];
|
||||
if (binPaths) {
|
||||
pathArr.push(...binPaths)
|
||||
}
|
||||
@@ -26,7 +29,8 @@ const setPATH = (projectPath, binPaths, env) => {
|
||||
pp = p
|
||||
p = dirname(p)
|
||||
} while (p !== pp)
|
||||
- pathArr.push(nodeGypPath, PATH)
|
||||
+ if (!process.env['NIX_NODEJS_BUILDNPMPACKAGE']) { pathArr.push(nodeGypPath, PATH) }
|
||||
+
|
||||
|
||||
const pathVal = pathArr.join(delimiter)
|
||||
|
||||
diff --git a/deps/npm/node_modules/pacote/lib/git.js b/deps/npm/node_modules/pacote/lib/git.js
|
||||
index c4819b4fd..7efbeef05 100644
|
||||
--- a/deps/npm/node_modules/pacote/lib/git.js
|
||||
+++ b/deps/npm/node_modules/pacote/lib/git.js
|
||||
@@ -186,6 +186,24 @@ class GitFetcher extends Fetcher {
|
||||
}
|
||||
noPrepare.push(this.resolved)
|
||||
|
||||
+ if (process.env['NIX_NODEJS_BUILDNPMPACKAGE']) {
|
||||
+ const spawn = require('@npmcli/promise-spawn')
|
||||
+
|
||||
+ const npmWithNixFlags = (args, cmd) => spawn('bash', ['-c', 'npm ' + args + ` $npm${cmd}Flags "$\{npm${cmd}FlagsArray[@]}" $npmFlags "$\{npmFlagsArray[@]}"`], { cwd: dir, env: { ...process.env, _PACOTE_NO_PREPARE_: noPrepare.join('\n') } }, { message: `\`npm ${args}\` failed` })
|
||||
+ const patchShebangs = () => spawn('bash', ['-c', 'source $stdenv/setup; patchShebangs node_modules'], { cwd: dir })
|
||||
+
|
||||
+ // the DirFetcher will do its own preparation to run the prepare scripts
|
||||
+ // All we have to do is put the deps in place so that it can succeed.
|
||||
+ //
|
||||
+ // We ignore this.npmConfig to maintain an environment that's as close
|
||||
+ // to the rest of the build as possible.
|
||||
+ return spawn('bash', ['-c', '$prefetchNpmDeps --fixup-lockfile package-lock.json'], { cwd: dir })
|
||||
+ .then(() => npmWithNixFlags('ci --ignore-scripts', 'Install'))
|
||||
+ .then(patchShebangs)
|
||||
+ .then(() => npmWithNixFlags('rebuild', 'Rebuild'))
|
||||
+ .then(patchShebangs)
|
||||
+ }
|
||||
+
|
||||
// the DirFetcher will do its own preparation to run the prepare scripts
|
||||
// All we have to do is put the deps in place so that it can succeed.
|
||||
return npm(
|
||||
diff --git a/deps/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js b/deps/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js
|
||||
index e9a8720d7..b29ad0185 100644
|
||||
--- a/deps/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js
|
||||
+++ b/deps/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js
|
||||
@@ -744,7 +744,7 @@ This is a one-time fix-up, please be patient...
|
||||
node.package = { ...mani, _id: `${mani.name}@${mani.version}` }
|
||||
} catch (er) {
|
||||
const warning = `Could not fetch metadata for ${name}@${id}`
|
||||
- log.warn(heading, warning, er)
|
||||
+ if (!process.env['NIX_NODEJS_BUILDNPMPACKAGE']) { log.warn(heading, warning, er) }
|
||||
}
|
||||
this.finishTracker(t)
|
||||
})
|
||||
diff --git a/deps/npm/node_modules/@npmcli/arborist/lib/arborist/load-actual.js b/deps/npm/node_modules/@npmcli/arborist/lib/arborist/load-actual.js
|
||||
index 7ab65f5b0..12f563a50 100644
|
||||
--- a/deps/npm/node_modules/@npmcli/arborist/lib/arborist/load-actual.js
|
||||
+++ b/deps/npm/node_modules/@npmcli/arborist/lib/arborist/load-actual.js
|
||||
@@ -143,7 +143,7 @@ module.exports = cls => class ActualLoader extends cls {
|
||||
this[_actualTree].assertRootOverrides()
|
||||
|
||||
// if forceActual is set, don't even try the hidden lockfile
|
||||
- if (!forceActual) {
|
||||
+ if (!forceActual && !process.env['NIX_NODEJS_BUILDNPMPACKAGE']) {
|
||||
// Note: hidden lockfile will be rejected if it's not the latest thing
|
||||
// in the folder, or if any of the entries in the hidden lockfile are
|
||||
// missing.
|
|
@ -1,15 +0,0 @@
|
|||
diff --git a/libgambatte/SConstruct b/libgambatte/SConstruct
|
||||
index e882514..87e1eaa 100644
|
||||
--- a/libgambatte/SConstruct
|
||||
+++ b/libgambatte/SConstruct
|
||||
@@ -5,7 +5,9 @@ vars = Variables()
|
||||
vars.Add('CC')
|
||||
vars.Add('CXX')
|
||||
|
||||
-env = Environment(CPPPATH = ['src', 'include', '../common'],
|
||||
+import os
|
||||
+env = Environment(ENV = os.environ,
|
||||
+ CPPPATH = ['src', 'include', '../common'],
|
||||
CFLAGS = global_cflags + global_defines,
|
||||
CXXFLAGS = global_cxxflags + global_defines,
|
||||
variables = vars)
|
|
@ -1,288 +0,0 @@
|
|||
From: Thomas Perl <m@thp.io>
|
||||
Description: Fix FTBFS
|
||||
Origin: upstream, https://repo.or.cz/w/tennix.git/commitdiff/6144cb7626dfdc0820a0036af83a531e8e68bae6
|
||||
Bug-Debian: https://bugs.debian.org/664907
|
||||
|
||||
--- tennix-1.1.orig/archivetool.cc
|
||||
+++ tennix-1.1/archivetool.cc
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
+#include <libgen.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "archive.hh"
|
||||
--- tennix-1.1.orig/game.c
|
||||
+++ tennix-1.1/game.c
|
||||
@@ -388,6 +388,9 @@ void step(GameState* s) {
|
||||
s->ball.move_x = 4.0 + 3.0*PLAYER(s, p).power/PLAYER_POWER_MAX;
|
||||
s->ball.move_z = 1.1*PLAYER(s, p).power/PLAYER_POWER_MAX;
|
||||
break;
|
||||
+ default:
|
||||
+ assert(false);
|
||||
+ break;
|
||||
}
|
||||
s->ball.move_y = get_move_y( s, p);
|
||||
s->sound_events ^= SOUND_EVENT_RACKET;
|
||||
--- tennix-1.1.orig/network.h
|
||||
+++ tennix-1.1/network.h
|
||||
@@ -103,19 +103,19 @@ void
|
||||
net_serialize_ball(const Ball* src, NetworkBall* dest);
|
||||
|
||||
void
|
||||
-net_unserialize_ball(const NetworkBall* src, Ball* dest);
|
||||
+net_unserialize_ball(NetworkBall* src, Ball* dest);
|
||||
|
||||
void
|
||||
net_serialize_player(const Player* src, NetworkPlayer* dest);
|
||||
|
||||
void
|
||||
-net_unserialize_player(const NetworkPlayer* src, Player* dest);
|
||||
+net_unserialize_player(NetworkPlayer* src, Player* dest);
|
||||
|
||||
void
|
||||
net_serialize_gamestate(const GameState* src, NetworkGameState* dest);
|
||||
|
||||
void
|
||||
-net_unserialize_gamestate(const NetworkGameState* src, GameState* dest);
|
||||
+net_unserialize_gamestate(NetworkGameState* src, GameState* dest);
|
||||
|
||||
#endif
|
||||
|
||||
--- tennix-1.1.orig/locations.h
|
||||
+++ tennix-1.1/locations.h
|
||||
@@ -155,7 +155,7 @@ static Location locations[] = {
|
||||
#endif
|
||||
|
||||
/* End marker */
|
||||
- { NULL, NULL, NULL, 0, 0, NULL, 0, 0, 0, 0, false }
|
||||
+ { NULL, NULL, NULL, 0, 0, NULL, 0, 0, 0, 0, false, false, 0, 0 }
|
||||
};
|
||||
|
||||
unsigned int location_count()
|
||||
--- tennix-1.1.orig/tennix.cc
|
||||
+++ tennix-1.1/tennix.cc
|
||||
@@ -461,7 +461,7 @@ int main( int argc, char** argv) {
|
||||
start_fade();
|
||||
gameloop(current_game, connection);
|
||||
SDL_Delay(150);
|
||||
- while(SDL_PollEvent(&e));
|
||||
+ while (SDL_PollEvent(&e)) {};
|
||||
#ifdef ENABLE_FPS_LIMIT
|
||||
frames = 0;
|
||||
ft = SDL_GetTicks();
|
||||
--- tennix-1.1.orig/SDL_rotozoom.c
|
||||
+++ tennix-1.1/SDL_rotozoom.c
|
||||
@@ -365,6 +365,9 @@ int zoomSurfaceRGBA(SDL_Surface * src, S
|
||||
|
||||
int zoomSurfaceY(SDL_Surface * src, SDL_Surface * dst, int flipx, int flipy)
|
||||
{
|
||||
+ (void)flipx;
|
||||
+ (void)flipy;
|
||||
+
|
||||
Uint32 x, y, sx, sy, *sax, *say, *csax, *csay, csx, csy;
|
||||
Uint8 *sp, *dp, *csp;
|
||||
int dgap;
|
||||
@@ -393,7 +396,7 @@ int zoomSurfaceY(SDL_Surface * src, SDL_
|
||||
*/
|
||||
csx = 0;
|
||||
csax = sax;
|
||||
- for (x = 0; x < dst->w; x++) {
|
||||
+ for (x = 0; x < (Uint32)dst->w; x++) {
|
||||
csx += sx;
|
||||
*csax = (csx >> 16);
|
||||
csx &= 0xffff;
|
||||
@@ -401,7 +404,7 @@ int zoomSurfaceY(SDL_Surface * src, SDL_
|
||||
}
|
||||
csy = 0;
|
||||
csay = say;
|
||||
- for (y = 0; y < dst->h; y++) {
|
||||
+ for (y = 0; y < (Uint32)dst->h; y++) {
|
||||
csy += sy;
|
||||
*csay = (csy >> 16);
|
||||
csy &= 0xffff;
|
||||
@@ -410,13 +413,13 @@ int zoomSurfaceY(SDL_Surface * src, SDL_
|
||||
|
||||
csx = 0;
|
||||
csax = sax;
|
||||
- for (x = 0; x < dst->w; x++) {
|
||||
+ for (x = 0; x < (Uint32)dst->w; x++) {
|
||||
csx += (*csax);
|
||||
csax++;
|
||||
}
|
||||
csy = 0;
|
||||
csay = say;
|
||||
- for (y = 0; y < dst->h; y++) {
|
||||
+ for (y = 0; y < (Uint32)dst->h; y++) {
|
||||
csy += (*csay);
|
||||
csay++;
|
||||
}
|
||||
@@ -432,10 +435,10 @@ int zoomSurfaceY(SDL_Surface * src, SDL_
|
||||
* Draw
|
||||
*/
|
||||
csay = say;
|
||||
- for (y = 0; y < dst->h; y++) {
|
||||
+ for (y = 0; y < (Uint32)dst->h; y++) {
|
||||
csax = sax;
|
||||
sp = csp;
|
||||
- for (x = 0; x < dst->w; x++) {
|
||||
+ for (x = 0; x < (Uint32)dst->w; x++) {
|
||||
/*
|
||||
* Draw
|
||||
*/
|
||||
@@ -801,6 +804,8 @@ SDL_Surface* rotateSurface90Degrees(SDL_
|
||||
void rotozoomSurfaceSizeTrig(int width, int height, double angle, double zoomx, double zoomy, int *dstwidth, int *dstheight,
|
||||
double *canglezoom, double *sanglezoom)
|
||||
{
|
||||
+ (void)zoomy;
|
||||
+
|
||||
double x, y, cx, cy, sx, sy;
|
||||
double radangle;
|
||||
int dstwidthhalf, dstheighthalf;
|
||||
--- tennix-1.1.orig/network.c
|
||||
+++ tennix-1.1/network.c
|
||||
@@ -183,7 +183,7 @@ net_serialize_ball(const Ball* src, Netw
|
||||
}
|
||||
|
||||
void
|
||||
-net_unserialize_ball(const NetworkBall* src, Ball* dest)
|
||||
+net_unserialize_ball(NetworkBall* src, Ball* dest)
|
||||
{
|
||||
assert(src != NULL && dest != NULL);
|
||||
dest->x = unpack_float(SDLNet_Read32(&(src->x)), -WIDTH, WIDTH*2);
|
||||
@@ -213,7 +213,7 @@ net_serialize_player(const Player* src,
|
||||
}
|
||||
|
||||
void
|
||||
-net_unserialize_player(const NetworkPlayer* src, Player* dest)
|
||||
+net_unserialize_player(NetworkPlayer* src, Player* dest)
|
||||
{
|
||||
assert(src != NULL && dest != NULL);
|
||||
dest->x = unpack_float(SDLNet_Read32(&(src->x)), 0, WIDTH*1.2);
|
||||
@@ -221,7 +221,7 @@ net_unserialize_player(const NetworkPlay
|
||||
dest->power = unpack_float(SDLNet_Read32(&(src->power)), 0, 110);
|
||||
dest->use_power = src->use_power;
|
||||
dest->score = src->score;
|
||||
- dest->desire = src->desire;
|
||||
+ dest->desire = (PlayerDesire)src->desire;
|
||||
dest->game = src->game;
|
||||
memcpy(dest->sets, src->sets, sizeof(unsigned char)*(SETS_TO_WIN*2));
|
||||
dest->accelerate = unpack_float(SDLNet_Read32(&(src->accelerate)), 0, 200);
|
||||
@@ -250,7 +250,7 @@ net_serialize_gamestate(const GameState*
|
||||
}
|
||||
|
||||
void
|
||||
-net_unserialize_gamestate(const NetworkGameState* src, GameState* dest)
|
||||
+net_unserialize_gamestate(NetworkGameState* src, GameState* dest)
|
||||
{
|
||||
int p;
|
||||
|
||||
--- tennix-1.1.orig/makefile
|
||||
+++ tennix-1.1/makefile
|
||||
@@ -27,24 +27,23 @@ ifeq ($(MKCALLGRAPH),1)
|
||||
LD = nccld
|
||||
endif
|
||||
|
||||
-RELEASE = 1.1
|
||||
-
|
||||
-UNAME = $(shell uname)
|
||||
+RELEASE = 1.1.1
|
||||
|
||||
PREFIX ?= /usr/local
|
||||
BINDIR ?= $(PREFIX)/bin
|
||||
DATAROOTDIR ?= $(PREFIX)/share
|
||||
DATADIR ?= $(DATAROOTDIR)/games
|
||||
|
||||
-LIBS =
|
||||
-CFLAGS += -W -Wall -ansi -pedantic -Wcast-qual -Wwrite-strings -DVERSION=\"$(RELEASE)\" -O2 -DPREFIX=\"$(PREFIX)\" -g
|
||||
+CFLAGS += -W -Wall -DVERSION=\"$(RELEASE)\" -O2 -DPREFIX=\"$(PREFIX)\"
|
||||
CXXFLAGS += $(CFLAGS)
|
||||
|
||||
USE_PYTHON ?= 1
|
||||
|
||||
ifeq ($(USE_PYTHON),1)
|
||||
- CFLAGS += `python-config --includes` -DTENNIX_PYTHON
|
||||
- LIBS += `python-config --libs`
|
||||
+ PYTHON_INCLUDES := $(shell python-config --includes)
|
||||
+ PYTHON_LIBS := $(shell python-config --libs)
|
||||
+ CFLAGS += $(PYTHON_INCLUDES) -DTENNIX_PYTHON
|
||||
+ LIBS += $(PYTHON_LIBS)
|
||||
endif
|
||||
|
||||
ifeq ($(NONFREE_LOCATIONS),1)
|
||||
@@ -67,17 +66,14 @@ ifeq ($(MAEMO),1)
|
||||
CFLAGS += -DMAEMO
|
||||
endif
|
||||
|
||||
-ifeq ($(UNAME),Darwin)
|
||||
- SDLLIBS=$$(sdl-config --prefix)/lib
|
||||
- LIBS += $$(sdl-config --static-libs) $(SDLLIBS)/libSDL_mixer.a $(SDLLIBS)/libSDL_image.a $(SDLLIBS)/libSDL_ttf.a $(SDLLIBS)/libSDL_net.a $$(freetype-config --prefix)/lib/libfreetype.a
|
||||
- CFLAGS += $$(sdl-config --cflags) -lz
|
||||
-else
|
||||
- LIBS += $$(sdl-config --libs) -lSDL_mixer -lSDL_image -lSDL_ttf -lSDL_net
|
||||
- CFLAGS += $$(sdl-config --cflags)
|
||||
-endif
|
||||
+SDL_LIBS := $(shell sdl-config --libs)
|
||||
+SDL_CFLAGS := $(shell sdl-config --cflags)
|
||||
+
|
||||
+LIBS += $(SDL_LIBS) -lSDL_mixer -lSDL_image -lSDL_ttf -lSDL_net
|
||||
+CFLAGS += $(SDL_CFLAGS)
|
||||
|
||||
-SRC = tennix.cc game.c graphics.cc input.c util.c sound.cc animation.c network.c
|
||||
OBJ = tennix.o game.o graphics.o input.o util.o sound.o animation.o archive.o SDL_rotozoom.o network.o
|
||||
+
|
||||
ifeq ($(MSYSTEM),MINGW32)
|
||||
OBJ += tennixres.o
|
||||
endif
|
||||
--- tennix-1.1.orig/game.h
|
||||
+++ tennix-1.1/game.h
|
||||
@@ -98,6 +98,13 @@ typedef struct {
|
||||
bool inhibit_gravity;
|
||||
} Ball;
|
||||
|
||||
+enum PlayerDesire {
|
||||
+ DESIRE_NORMAL,
|
||||
+ DESIRE_TOPSPIN,
|
||||
+ DESIRE_SMASH,
|
||||
+ DESIRE_MAX
|
||||
+};
|
||||
+
|
||||
typedef struct {
|
||||
InputDevice* input;
|
||||
char input_device_index;
|
||||
@@ -106,9 +113,9 @@ typedef struct {
|
||||
float power;
|
||||
bool use_power;
|
||||
unsigned char score;
|
||||
- unsigned char desire;
|
||||
+ PlayerDesire desire;
|
||||
bool type; /* is this player ai-controlled or human? */
|
||||
- char game; /* score for the current game */
|
||||
+ int game; /* score for the current game */
|
||||
unsigned char sets[SETS_TO_WIN*2]; /* score for each set */
|
||||
float accelerate; /* a value [0..1] how fast the user accelerates */
|
||||
} Player;
|
||||
@@ -118,13 +125,6 @@ enum {
|
||||
PLAYER_TYPE_AI
|
||||
};
|
||||
|
||||
-enum {
|
||||
- DESIRE_NORMAL,
|
||||
- DESIRE_TOPSPIN,
|
||||
- DESIRE_SMASH,
|
||||
- DESIRE_MAX
|
||||
-};
|
||||
-
|
||||
/* wait 2 seconds before we score the game */
|
||||
#define SCORING_DELAY 1000
|
||||
|
||||
@@ -161,7 +161,7 @@ enum {
|
||||
|
||||
typedef struct {
|
||||
const Location* location;
|
||||
- char current_location; /* index of loc. in global location table */
|
||||
+ int current_location; /* index of loc. in global location table */
|
||||
Ball ball;
|
||||
Player players[MAXPLAYERS];
|
||||
unsigned char serving_player;
|
|
@ -1,29 +0,0 @@
|
|||
From 1204c841999808ba27267a0039777dcbccdcd6e3 Mon Sep 17 00:00:00 2001
|
||||
From: toonn <toonn@toonn.io>
|
||||
Date: Sun, 27 Jun 2021 12:30:08 +0200
|
||||
Subject: [PATCH] TargetConditionals
|
||||
|
||||
---
|
||||
test/ippserver.c | 6 +++++-
|
||||
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/test/ippserver.c b/test/ippserver.c
|
||||
index 38b304f..68ccab1 100644
|
||||
--- a/test/ippserver.c
|
||||
+++ b/test/ippserver.c
|
||||
@@ -25,7 +25,11 @@
|
||||
* Include necessary headers...
|
||||
*/
|
||||
|
||||
-#include <config.h> /* CUPS configuration header */
|
||||
+#ifdef __APPLE__
|
||||
+# include <xcode/config.h> /* CUPS configuration header macOS */
|
||||
+#else
|
||||
+# include <config.h> /* CUPS configuration header */
|
||||
+#endif /* __APPLE__ */
|
||||
#include <cups/cups.h> /* Public API */
|
||||
#include <cups/string-private.h> /* CUPS string functions */
|
||||
#include <cups/thread-private.h> /* For multithreading functions */
|
||||
--
|
||||
2.17.2 (Apple Git-113)
|
||||
|
|
@ -1,295 +0,0 @@
|
|||
--- a/options.c
|
||||
+++ b/options.c
|
||||
@@ -34,6 +34,8 @@
|
||||
|
||||
/* System libraries. */
|
||||
|
||||
+#include <unistd.h>
|
||||
+#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/socket.h>
|
||||
--- a/safe_finger.c
|
||||
+++ b/safe_finger.c
|
||||
@@ -20,6 +20,11 @@
|
||||
|
||||
/* System libraries */
|
||||
|
||||
+#include <unistd.h>
|
||||
+#include <fcntl.h>
|
||||
+#include <stdlib.h>
|
||||
+#include <sys/wait.h>
|
||||
+#include <grp.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <signal.h>
|
||||
@@ -27,7 +31,7 @@
|
||||
#include <ctype.h>
|
||||
#include <pwd.h>
|
||||
|
||||
-extern void exit();
|
||||
+int pipe_stdin(char **argv);
|
||||
|
||||
/* Local stuff */
|
||||
|
||||
--- a/scaffold.c
|
||||
+++ b/scaffold.c
|
||||
@@ -10,6 +10,7 @@
|
||||
|
||||
/* System libraries. */
|
||||
|
||||
+#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/socket.h>
|
||||
@@ -27,7 +27,4 @@
|
||||
#endif
|
||||
|
||||
-#ifndef INET6
|
||||
-extern char *malloc();
|
||||
-#endif
|
||||
|
||||
/* Application-specific. */
|
||||
--- a/shell_cmd.c
|
||||
+++ b/shell_cmd.c
|
||||
@@ -14,6 +14,10 @@
|
||||
|
||||
/* System libraries. */
|
||||
|
||||
+#include <unistd.h>
|
||||
+#include <stdlib.h>
|
||||
+#include <fcntl.h>
|
||||
+#include <sys/wait.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
#include <signal.h>
|
||||
@@ -25,8 +25,6 @@
|
||||
#include <syslog.h>
|
||||
#include <string.h>
|
||||
|
||||
-extern void exit();
|
||||
-
|
||||
/* Local stuff. */
|
||||
|
||||
#include "tcpd.h"
|
||||
--- a/tcpdchk.c
|
||||
+++ b/tcpdchk.c
|
||||
@@ -20,6 +20,8 @@
|
||||
|
||||
/* System libraries. */
|
||||
|
||||
+#include <unistd.h>
|
||||
+#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#ifdef INET6
|
||||
@@ -35,10 +36,7 @@
|
||||
#include <netdb.h>
|
||||
#include <string.h>
|
||||
|
||||
-extern int errno;
|
||||
-extern void exit();
|
||||
-extern int optind;
|
||||
-extern char *optarg;
|
||||
+int cidr_mask_addr(char *str);
|
||||
|
||||
#ifndef INADDR_NONE
|
||||
#define INADDR_NONE (-1) /* XXX should be 0xffffffff */
|
||||
--- a/clean_exit.c
|
||||
+++ b/clean_exit.c
|
||||
@@ -13,8 +13,8 @@
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
-
|
||||
-extern void exit();
|
||||
+#include <unistd.h>
|
||||
+#include <stdlib.h>
|
||||
|
||||
#include "tcpd.h"
|
||||
|
||||
--- a/hosts_access.c
|
||||
+++ b/hosts_access.c
|
||||
@@ -23,6 +23,7 @@
|
||||
|
||||
/* System libraries. */
|
||||
|
||||
+#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
#ifdef INT32_T
|
||||
typedef uint32_t u_int32_t;
|
||||
@@ -43,8 +44,8 @@
|
||||
#include <netdb.h>
|
||||
#endif
|
||||
|
||||
-extern char *fgets();
|
||||
-extern int errno;
|
||||
+static int match_pattern_ylo(const char *s, const char *pattern);
|
||||
+int cidr_mask_addr(char *str);
|
||||
|
||||
#ifndef INADDR_NONE
|
||||
#define INADDR_NONE (-1) /* XXX should be 0xffffffff */
|
||||
--- a/inetcf.c
|
||||
+++ b/inetcf.c
|
||||
@@ -9,15 +9,14 @@
|
||||
static char sccsid[] = "@(#) inetcf.c 1.7 97/02/12 02:13:23";
|
||||
#endif
|
||||
|
||||
+#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
|
||||
-extern int errno;
|
||||
-extern void exit();
|
||||
-
|
||||
+#include "scaffold.h"
|
||||
#include "tcpd.h"
|
||||
#include "inetcf.h"
|
||||
|
||||
--- a/percent_x.c
|
||||
+++ b/percent_x.c
|
||||
@@ -16,12 +16,12 @@
|
||||
|
||||
/* System libraries. */
|
||||
|
||||
+#include <unistd.h>
|
||||
+#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <syslog.h>
|
||||
#include <string.h>
|
||||
|
||||
-extern void exit();
|
||||
-
|
||||
/* Local stuff. */
|
||||
|
||||
#include "tcpd.h"
|
||||
--- a/rfc931.c
|
||||
+++ b/rfc931.c
|
||||
@@ -15,6 +15,7 @@
|
||||
|
||||
/* System libraries. */
|
||||
|
||||
+#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <syslog.h>
|
||||
#include <sys/types.h>
|
||||
--- a/tcpd.c
|
||||
+++ b/tcpd.c
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
/* System libraries. */
|
||||
|
||||
+#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/stat.h>
|
||||
@@ -39,6 +39,8 @@
|
||||
#include "patchlevel.h"
|
||||
#include "tcpd.h"
|
||||
|
||||
+void fix_options(struct request_info *request);
|
||||
+
|
||||
int allow_severity = SEVERITY; /* run-time adjustable */
|
||||
int deny_severity = LOG_WARNING; /* ditto */
|
||||
|
||||
--- a/tcpdmatch.c
|
||||
+++ b/tcpdmatch.c
|
||||
@@ -19,6 +19,8 @@
|
||||
|
||||
/* System libraries. */
|
||||
|
||||
+#include <unistd.h>
|
||||
+#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/socket.h>
|
||||
@@ -30,9 +32,6 @@
|
||||
#include <setjmp.h>
|
||||
#include <string.h>
|
||||
|
||||
-extern void exit();
|
||||
-extern int optind;
|
||||
-extern char *optarg;
|
||||
|
||||
#ifndef INADDR_NONE
|
||||
#define INADDR_NONE (-1) /* XXX should be 0xffffffff */
|
||||
--- a/update.c
|
||||
+++ b/update.c
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
/* System libraries */
|
||||
|
||||
+#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <syslog.h>
|
||||
#include <string.h>
|
||||
--- a/misc.c
|
||||
+++ b/misc.c
|
||||
@@ -14,11 +14,10 @@
|
||||
#include <arpa/inet.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
+#include <stdlib.h>
|
||||
|
||||
#include "tcpd.h"
|
||||
|
||||
-extern char *fgets();
|
||||
-
|
||||
#ifndef INADDR_NONE
|
||||
#define INADDR_NONE (-1) /* XXX should be 0xffffffff */
|
||||
#endif
|
||||
--- a/fix_options.c
|
||||
+++ b/fix_options.c
|
||||
@@ -32,6 +32,7 @@
|
||||
|
||||
/* fix_options - get rid of IP-level socket options */
|
||||
|
||||
+void
|
||||
fix_options(request)
|
||||
struct request_info *request;
|
||||
{
|
||||
@@ -38,11 +38,8 @@
|
||||
#ifdef IP_OPTIONS
|
||||
unsigned char optbuf[BUFFER_SIZE / 3], *cp;
|
||||
char lbuf[BUFFER_SIZE], *lp;
|
||||
-#ifdef __GLIBC__
|
||||
- size_t optsize = sizeof(optbuf), ipproto;
|
||||
-#else
|
||||
- int optsize = sizeof(optbuf), ipproto;
|
||||
-#endif
|
||||
+ socklen_t optsize = sizeof(optbuf);
|
||||
+ int ipproto;
|
||||
struct protoent *ip;
|
||||
int fd = request->fd;
|
||||
unsigned int opt;
|
||||
--- a/socket.c
|
||||
+++ b/socket.c
|
||||
@@ -95,11 +95,7 @@
|
||||
static struct sockaddr_in client;
|
||||
static struct sockaddr_in server;
|
||||
#endif
|
||||
-#ifdef __GLIBC__
|
||||
- size_t len;
|
||||
-#else
|
||||
- int len;
|
||||
-#endif
|
||||
+ socklen_t len;
|
||||
char buf[BUFSIZ];
|
||||
int fd = request->fd;
|
||||
|
||||
@@ -430,11 +426,7 @@
|
||||
#else
|
||||
struct sockaddr_in sin;
|
||||
#endif
|
||||
-#ifdef __GLIBC__
|
||||
- size_t size = sizeof(sin);
|
||||
-#else
|
||||
- int size = sizeof(sin);
|
||||
-#endif
|
||||
+ socklen_t size;
|
||||
|
||||
/*
|
||||
* Eat up the not-yet received datagram. Some systems insist on a
|
|
@ -1,51 +0,0 @@
|
|||
From eca202d2893c9f2f91628ad6244b52cf7880bfcf Mon Sep 17 00:00:00 2001
|
||||
From: Graham Bennett <graham@grahambennett.org>
|
||||
Date: Mon, 21 Nov 2022 15:39:54 +0000
|
||||
Subject: [PATCH] Revert "fix yarn warning from d3-color (#27139)"
|
||||
|
||||
This reverts commit b9e133e40c2848b0d555051a99bf8d2816fd28a7.
|
||||
---
|
||||
airflow/www/package.json | 3 ---
|
||||
airflow/www/yarn.lock | 13 +++++++++----
|
||||
2 files changed, 9 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/airflow/www/package.json b/airflow/www/package.json
|
||||
index f694089ee6..3d37ad4c46 100644
|
||||
--- a/airflow/www/package.json
|
||||
+++ b/airflow/www/package.json
|
||||
@@ -120,8 +120,5 @@
|
||||
"redoc": "^2.0.0-rc.72",
|
||||
"type-fest": "^2.17.0",
|
||||
"url-search-params-polyfill": "^8.1.0"
|
||||
- },
|
||||
- "resolutions": {
|
||||
- "d3-color": "^3.1.0"
|
||||
}
|
||||
}
|
||||
diff --git a/airflow/www/yarn.lock b/airflow/www/yarn.lock
|
||||
index bafd63a368..dad0ebabab 100644
|
||||
--- a/airflow/www/yarn.lock
|
||||
+++ b/airflow/www/yarn.lock
|
||||
@@ -4518,10 +4518,15 @@ d3-collection@1, d3-collection@^1.0.4:
|
||||
resolved "https://registry.yarnpkg.com/d3-collection/-/d3-collection-1.0.7.tgz#349bd2aa9977db071091c13144d5e4f16b5b310e"
|
||||
integrity sha512-ii0/r5f4sjKNTfh84Di+DpztYwqKhEyUlKoPrzUFfeSkWxjW49xU2QzO9qrPrNkpdI0XJkfzvmTu8V2Zylln6A==
|
||||
|
||||
-d3-color@1, "d3-color@1 - 2", d3-color@^3.1.0:
|
||||
- version "3.1.0"
|
||||
- resolved "https://registry.yarnpkg.com/d3-color/-/d3-color-3.1.0.tgz#395b2833dfac71507f12ac2f7af23bf819de24e2"
|
||||
- integrity sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==
|
||||
+d3-color@1:
|
||||
+ version "1.4.1"
|
||||
+ resolved "https://registry.yarnpkg.com/d3-color/-/d3-color-1.4.1.tgz#c52002bf8846ada4424d55d97982fef26eb3bc8a"
|
||||
+ integrity sha512-p2sTHSLCJI2QKunbGb7ocOh7DgTAn8IrLx21QRc/BSnodXM4sv6aLQlnfpvehFMLZEfBc6g9pH9SWQccFYfJ9Q==
|
||||
+
|
||||
+"d3-color@1 - 2":
|
||||
+ version "2.0.0"
|
||||
+ resolved "https://registry.yarnpkg.com/d3-color/-/d3-color-2.0.0.tgz#8d625cab42ed9b8f601a1760a389f7ea9189d62e"
|
||||
+ integrity sha512-SPXi0TSKPD4g9tw0NMZFnR95XVgUZiBH+uUTqQuDu1OsE2zomHU7ho0FISciaPvosimixwHFl3WHLGabv6dDgQ==
|
||||
|
||||
d3-contour@1:
|
||||
version "1.3.2"
|
||||
--
|
||||
2.37.3
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
diff --git a/libexec/httpd/bozohttpd.c b/libexec/httpd/bozohttpd.c
|
||||
index 67083b2c6782..273cb5f5a42b 100644
|
||||
--- a/libexec/httpd/bozohttpd.c
|
||||
+++ b/libexec/httpd/bozohttpd.c
|
||||
@@ -138,6 +138,7 @@
|
||||
#include <grp.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
+#include <stdint.h>
|
||||
#include <strings.h>
|
||||
#include <string.h>
|
||||
#include <syslog.h>
|
|
@ -1,88 +0,0 @@
|
|||
diff --git a/libexec/httpd/auth-bozo.c b/libexec/httpd/auth-bozo.c
|
||||
index a2f2ee4304c1..c9eefe3313dd 100644
|
||||
--- a/libexec/httpd/auth-bozo.c
|
||||
+++ b/libexec/httpd/auth-bozo.c
|
||||
@@ -54,7 +54,7 @@ bozo_auth_check(bozo_httpreq_t *request, const char *file)
|
||||
bozohttpd_t *httpd = request->hr_httpd;
|
||||
struct stat sb;
|
||||
char dir[MAXPATHLEN], authfile[MAXPATHLEN], *basename;
|
||||
- char user[BUFSIZ], *pass;
|
||||
+ char user[BOZO_MINBUFSIZE], *pass;
|
||||
FILE *fp;
|
||||
int len;
|
||||
|
||||
@@ -144,7 +144,7 @@ bozo_auth_check_headers(bozo_httpreq_t *request, char *val, char *str,
|
||||
|
||||
if (strcasecmp(val, "authorization") == 0 &&
|
||||
strncasecmp(str, "Basic ", 6) == 0) {
|
||||
- char authbuf[BUFSIZ];
|
||||
+ char authbuf[BOZO_MINBUFSIZE];
|
||||
char *pass = NULL;
|
||||
ssize_t alen;
|
||||
|
||||
diff --git a/libexec/httpd/bozohttpd.c b/libexec/httpd/bozohttpd.c
|
||||
index 273cb5f5a42b..f619567ba822 100644
|
||||
--- a/libexec/httpd/bozohttpd.c
|
||||
+++ b/libexec/httpd/bozohttpd.c
|
||||
@@ -2275,7 +2275,7 @@ bozo_http_error(bozohttpd_t *httpd, int code, bozo_httpreq_t *request,
|
||||
}
|
||||
#endif /* !NO_USER_SUPPORT */
|
||||
|
||||
- size = snprintf(httpd->errorbuf, BUFSIZ,
|
||||
+ size = snprintf(httpd->errorbuf, BOZO_MINBUFSIZE,
|
||||
"<html><head><title>%s</title></head>\n"
|
||||
"<body><h1>%s</h1>\n"
|
||||
"%s%s: <pre>%s</pre>\n"
|
||||
@@ -2285,10 +2285,10 @@ bozo_http_error(bozohttpd_t *httpd, int code, bozo_httpreq_t *request,
|
||||
user ? user : "", file,
|
||||
reason, hostname, portbuf, hostname, portbuf);
|
||||
free(user);
|
||||
- if (size >= (int)BUFSIZ) {
|
||||
+ if (size >= (int)BOZO_MINBUFSIZE) {
|
||||
bozowarn(httpd,
|
||||
"bozo_http_error buffer too small, truncated");
|
||||
- size = (int)BUFSIZ;
|
||||
+ size = (int)BOZO_MINBUFSIZE;
|
||||
}
|
||||
|
||||
if (file_alloc)
|
||||
@@ -2515,7 +2515,7 @@ bozo_init_httpd(bozohttpd_t *httpd)
|
||||
httpd->mmapsz = BOZO_MMAPSZ;
|
||||
|
||||
/* error buffer for bozo_http_error() */
|
||||
- if ((httpd->errorbuf = malloc(BUFSIZ)) == NULL) {
|
||||
+ if ((httpd->errorbuf = malloc(BOZO_MINBUFSIZE)) == NULL) {
|
||||
fprintf(stderr,
|
||||
"bozohttpd: memory_allocation failure\n");
|
||||
return 0;
|
||||
diff --git a/libexec/httpd/bozohttpd.h b/libexec/httpd/bozohttpd.h
|
||||
index c83bd112d9d7..7b19494cf5ad 100644
|
||||
--- a/libexec/httpd/bozohttpd.h
|
||||
+++ b/libexec/httpd/bozohttpd.h
|
||||
@@ -227,6 +227,8 @@ typedef struct bozoprefs_t {
|
||||
/* only allow this many total headers bytes */
|
||||
#define BOZO_HEADERS_MAX_SIZE (16 * 1024)
|
||||
|
||||
+#define BOZO_MINBUFSIZE (4 * 1024)
|
||||
+
|
||||
/* debug flags */
|
||||
#define DEBUG_NORMAL 1
|
||||
#define DEBUG_FAT 2
|
||||
diff --git a/libexec/httpd/testsuite/t10.out b/libexec/httpd/testsuite/t10.out
|
||||
index cf410110627c..b3ab88f94fb9 100644
|
||||
--- a/libexec/httpd/testsuite/t10.out
|
||||
+++ b/libexec/httpd/testsuite/t10.out
|
||||
@@ -1,8 +1,8 @@
|
||||
HTTP/1.0 404 Not Found
|
||||
Content-Type: text/html
|
||||
-Content-Length: 1024
|
||||
-Server: bozohttpd/20140708
|
||||
+Content-Length: 4096
|
||||
+Server: bozohttpd/20210403
|
||||
|
||||
<html><head><title>404 Not Found</title></head>
|
||||
<body><h1>404 Not Found</h1>
|
||||
-/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
\ No newline at end of file
|
||||
+/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
\ No newline at end of file
|
|
@ -1,44 +0,0 @@
|
|||
From 60abf3ee8864980a95b32e2d6cf60e26b49654c0 Mon Sep 17 00:00:00 2001
|
||||
From: joachim schiele <js@lastlog.de>
|
||||
Date: Wed, 7 Jun 2017 22:15:39 +0200
|
||||
Subject: [PATCH 2/2] Adding --siteconfigpath to not be forced to use global /etc/spamasassin configuration directory but to provide an alternative location.
|
||||
|
||||
---
|
||||
sa-update.raw | 5 +++++
|
||||
lib/Mail/SpamAssassin/PerMsgStatus.pm | 2 +
|
||||
2 file changed, 7 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/sa-update.raw b/sa-update.raw
|
||||
index bb7396d..39f681f 100755
|
||||
--- a/sa-update.raw
|
||||
+++ b/sa-update.raw
|
||||
@@ -196,6 +196,7 @@ GetOptions(
|
||||
'gpgkeyfile=s' => \$opt{'gpgkeyfile'},
|
||||
'channelfile=s' => \$opt{'channelfile'},
|
||||
'updatedir=s' => \$opt{'updatedir'},
|
||||
+ 'siteconfigpath=s' => \$opt{'siteconfigpath'},
|
||||
'gpg!' => \$GPG_ENABLED,
|
||||
|
||||
'4' => sub { $opt{'force_pf'} = 'inet' },
|
||||
@@ -267,6 +268,9 @@ else {
|
||||
$opt{'updatedir'} = $SA->sed_path('__local_state_dir__/__version__');
|
||||
}
|
||||
|
||||
+if (defined $opt{'siteconfigpath'}) {
|
||||
+ $LOCAL_RULES_DIR = untaint_file_path($opt{'siteconfigpath'});
|
||||
+}
|
||||
|
||||
# check only disabled gpg
|
||||
# https://issues.apache.org/SpamAssassin/show_bug.cgi?id=5854
|
||||
@@ -1808,7 +1812,7 @@ Options:
|
||||
--updatedir path Directory to place updates, defaults to the
|
||||
SpamAssassin site rules directory
|
||||
(default: @@LOCAL_STATE_DIR@@/@@VERSION@@)
|
||||
+ --siteconfigpath=path Path for site configs
|
||||
--refreshmirrors Force the MIRRORED.BY file to be updated
|
||||
-D, --debug [area=n,...] Print debugging messages
|
||||
-v, --verbose Be verbose, like print updated channel names;
|
||||
--
|
||||
|
||||
2.12.2
|
||||
|
|
@ -1,51 +0,0 @@
|
|||
From e81b06df67b1d42ef915615fafa0b56ef956673b Mon Sep 17 00:00:00 2001
|
||||
From: Andreas Fuchs <asf@boinkor.net>
|
||||
Date: Thu, 11 Feb 2021 17:30:44 -0500
|
||||
Subject: [PATCH] Return the cached value if it's not time to scan again yet
|
||||
|
||||
This should ensure that if we have a valid value cached (which ought
|
||||
to be every time after the first scan), we return it as metrics.
|
||||
|
||||
This fixes the crashes that would happen if queries happened earlier
|
||||
than the re-scan interval allowed.
|
||||
|
||||
Address review feedback: Shorten the time-to-scan logic
|
||||
|
||||
We can express this in a single if statement, so it takes fewer lines
|
||||
to do the "should we check again" check.
|
||||
---
|
||||
readjson.go | 11 ++---------
|
||||
1 file changed, 2 insertions(+), 9 deletions(-)
|
||||
|
||||
diff --git a/readjson.go b/readjson.go
|
||||
index da35448..c9996fd 100644
|
||||
--- a/readjson.go
|
||||
+++ b/readjson.go
|
||||
@@ -78,14 +78,7 @@ func readData(device string) (gjson.Result, error) {
|
||||
|
||||
if _, err := os.Stat(device); err == nil {
|
||||
cacheValue, cacheOk := jsonCache[device]
|
||||
- timeToScan := false
|
||||
- if cacheOk {
|
||||
- timeToScan = time.Now().After(cacheValue.LastCollect.Add(options.SMARTctl.CollectPeriodDuration))
|
||||
- } else {
|
||||
- timeToScan = true
|
||||
- }
|
||||
-
|
||||
- if timeToScan {
|
||||
+ if !cacheOk || time.Now().After(cacheValue.LastCollect.Add(options.SMARTctl.CollectPeriodDuration)) {
|
||||
json, ok := readSMARTctl(device)
|
||||
if ok {
|
||||
jsonCache[device] = JSONCache{JSON: json, LastCollect: time.Now()}
|
||||
@@ -93,7 +86,7 @@ func readData(device string) (gjson.Result, error) {
|
||||
}
|
||||
return gjson.Parse(DEFAULT_EMPTY_JSON), fmt.Errorf("smartctl returned bad data for device %s", device)
|
||||
}
|
||||
- return gjson.Parse(DEFAULT_EMPTY_JSON), fmt.Errorf("Too early collect called for device %s", device)
|
||||
+ return cacheValue.JSON, nil
|
||||
}
|
||||
return gjson.Parse(DEFAULT_EMPTY_JSON), fmt.Errorf("Device %s unavialable", device)
|
||||
}
|
||||
--
|
||||
2.33.1
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
--- a/build.gradle 2019-05-16 21:09:08.373112953 +0200
|
||||
+++ b/build.gradle 2019-05-16 21:09:37.093114427 +0200
|
||||
@@ -72,7 +72,7 @@
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
- jcenter()
|
||||
+REPLACE
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -81,9 +81,7 @@
|
||||
}
|
||||
|
||||
repositories {
|
||||
- jcenter()
|
||||
- maven { url "https://kamax.io/maven/releases/" }
|
||||
- maven { url "https://kamax.io/maven/snapshots/" }
|
||||
+REPLACE
|
||||
}
|
||||
|
||||
dependencies {
|
|
@ -1,22 +0,0 @@
|
|||
diff --git a/lib/discourse.rb b/lib/discourse.rb
|
||||
index ea2a3cbafd..66454d9157 100644
|
||||
--- a/lib/discourse.rb
|
||||
+++ b/lib/discourse.rb
|
||||
@@ -62,7 +62,7 @@ module Discourse
|
||||
fd.fsync()
|
||||
end
|
||||
|
||||
- File.rename(temp_destination, destination)
|
||||
+ FileUtils.mv(temp_destination, destination)
|
||||
|
||||
nil
|
||||
end
|
||||
@@ -76,7 +76,7 @@ module Discourse
|
||||
FileUtils.mkdir_p(File.join(Rails.root, 'tmp'))
|
||||
temp_destination = File.join(Rails.root, 'tmp', SecureRandom.hex)
|
||||
execute_command('ln', '-s', source, temp_destination)
|
||||
- File.rename(temp_destination, destination)
|
||||
+ FileUtils.mv(temp_destination, destination)
|
||||
|
||||
nil
|
||||
end
|
|
@ -1,50 +0,0 @@
|
|||
diff --git a/netbox/netbox/settings.py b/netbox/netbox/settings.py
|
||||
index d5a7bfaec..68754a8c5 100644
|
||||
--- a/netbox/netbox/settings.py
|
||||
+++ b/netbox/netbox/settings.py
|
||||
@@ -222,6 +222,7 @@ TASKS_REDIS_PASSWORD = TASKS_REDIS.get('PASSWORD', '')
|
||||
TASKS_REDIS_DATABASE = TASKS_REDIS.get('DATABASE', 0)
|
||||
TASKS_REDIS_SSL = TASKS_REDIS.get('SSL', False)
|
||||
TASKS_REDIS_SKIP_TLS_VERIFY = TASKS_REDIS.get('INSECURE_SKIP_TLS_VERIFY', False)
|
||||
+TASKS_REDIS_URL = TASKS_REDIS.get('URL')
|
||||
|
||||
# Caching
|
||||
if 'caching' not in REDIS:
|
||||
@@ -236,11 +237,12 @@ CACHING_REDIS_SENTINELS = REDIS['caching'].get('SENTINELS', [])
|
||||
CACHING_REDIS_SENTINEL_SERVICE = REDIS['caching'].get('SENTINEL_SERVICE', 'default')
|
||||
CACHING_REDIS_PROTO = 'rediss' if REDIS['caching'].get('SSL', False) else 'redis'
|
||||
CACHING_REDIS_SKIP_TLS_VERIFY = REDIS['caching'].get('INSECURE_SKIP_TLS_VERIFY', False)
|
||||
+CACHING_REDIS_URL = REDIS['caching'].get('URL', f'{CACHING_REDIS_PROTO}://{CACHING_REDIS_HOST}:{CACHING_REDIS_PORT}/{CACHING_REDIS_DATABASE}')
|
||||
|
||||
CACHES = {
|
||||
'default': {
|
||||
'BACKEND': 'django_redis.cache.RedisCache',
|
||||
- 'LOCATION': f'{CACHING_REDIS_PROTO}://{CACHING_REDIS_HOST}:{CACHING_REDIS_PORT}/{CACHING_REDIS_DATABASE}',
|
||||
+ 'LOCATION': CACHING_REDIS_URL,
|
||||
'OPTIONS': {
|
||||
'CLIENT_CLASS': 'django_redis.client.DefaultClient',
|
||||
'PASSWORD': CACHING_REDIS_PASSWORD,
|
||||
@@ -383,7 +385,7 @@ USE_X_FORWARDED_HOST = True
|
||||
X_FRAME_OPTIONS = 'SAMEORIGIN'
|
||||
|
||||
# Static files (CSS, JavaScript, Images)
|
||||
-STATIC_ROOT = BASE_DIR + '/static'
|
||||
+STATIC_ROOT = getattr(configuration, 'STATIC_ROOT', os.path.join(BASE_DIR, 'static')).rstrip('/')
|
||||
STATIC_URL = f'/{BASE_PATH}static/'
|
||||
STATICFILES_DIRS = (
|
||||
os.path.join(BASE_DIR, 'project-static', 'dist'),
|
||||
@@ -562,6 +564,14 @@ if TASKS_REDIS_USING_SENTINEL:
|
||||
'socket_connect_timeout': TASKS_REDIS_SENTINEL_TIMEOUT
|
||||
},
|
||||
}
|
||||
+elif TASKS_REDIS_URL:
|
||||
+ RQ_PARAMS = {
|
||||
+ 'URL': TASKS_REDIS_URL,
|
||||
+ 'PASSWORD': TASKS_REDIS_PASSWORD,
|
||||
+ 'SSL': TASKS_REDIS_SSL,
|
||||
+ 'SSL_CERT_REQS': None if TASKS_REDIS_SKIP_TLS_VERIFY else 'required',
|
||||
+ 'DEFAULT_TIMEOUT': RQ_DEFAULT_TIMEOUT,
|
||||
+ }
|
||||
else:
|
||||
RQ_PARAMS = {
|
||||
'HOST': TASKS_REDIS_HOST,
|
|
@ -1,21 +0,0 @@
|
|||
diff --git a/netbox/netbox/graphql/scalars.py b/netbox/netbox/graphql/scalars.py
|
||||
index 7d14189dd..0a18e79d2 100644
|
||||
--- a/netbox/netbox/graphql/scalars.py
|
||||
+++ b/netbox/netbox/graphql/scalars.py
|
||||
@@ -1,6 +1,6 @@
|
||||
from graphene import Scalar
|
||||
from graphql.language import ast
|
||||
-from graphql.type.scalars import MAX_INT, MIN_INT
|
||||
+from graphql.type.scalars import GRAPHQL_MAX_INT, GRAPHQL_MIN_INT
|
||||
|
||||
|
||||
class BigInt(Scalar):
|
||||
@@ -10,7 +10,7 @@ class BigInt(Scalar):
|
||||
@staticmethod
|
||||
def to_float(value):
|
||||
num = int(value)
|
||||
- if num > MAX_INT or num < MIN_INT:
|
||||
+ if num > GRAPHQL_MAX_INT or num < GRAPHQL_MIN_INT:
|
||||
return float(num)
|
||||
return num
|
||||
|
|
@ -1,41 +0,0 @@
|
|||
diff --git a/bsd/kern/makekdebugevents.py b/bsd/kern/makekdebugevents.py
|
||||
index 73b2db4..d354ba0 100755
|
||||
--- a/bsd/kern/makekdebugevents.py
|
||||
+++ b/bsd/kern/makekdebugevents.py
|
||||
@@ -5,7 +5,7 @@
|
||||
# named kd_events[] or these mappings.
|
||||
# Required to generate a header file used by DEVELOPMENT and DEBUG kernels.
|
||||
#
|
||||
-
|
||||
+
|
||||
import sys
|
||||
import re
|
||||
|
||||
@@ -21,18 +21,18 @@ code_table = []
|
||||
# scan file to generate internal table
|
||||
with open(trace_code_file, 'rt') as codes:
|
||||
for line in codes:
|
||||
- m = id_name_pattern.match(line)
|
||||
- if m:
|
||||
+ m = id_name_pattern.match(line)
|
||||
+ if m:
|
||||
code_table += [(int(m.group(1),base=16), m.group(2))]
|
||||
|
||||
# emit typedef:
|
||||
-print "typedef struct {"
|
||||
-print " uint32_t id;"
|
||||
-print " const char *name;"
|
||||
-print "} kd_event_t;"
|
||||
+print("typedef struct {")
|
||||
+print(" uint32_t id;")
|
||||
+print(" const char *name;")
|
||||
+print("} kd_event_t;")
|
||||
# emit structure declaration and sorted initialization:
|
||||
-print "kd_event_t kd_events[] = {"
|
||||
+print("kd_event_t kd_events[] = {")
|
||||
for mapping in sorted(code_table, key=lambda x: x[0]):
|
||||
- print " {0x%x, \"%s\"}," % mapping
|
||||
-print "};"
|
||||
+ print(" {0x%x, \"%s\"}," % mapping)
|
||||
+print("};")
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
diff --git a/src/cpp/synthesize.hpp b/src/cpp/synthesize.hpp
|
||||
index ef61aef..4c7db7a 100644
|
||||
--- a/synthesize.hpp
|
||||
+++ b/synthesize.hpp
|
||||
@@ -119,11 +119,11 @@ void synthesize(SynthesisConfig &synthesisConfig, ModelSession &session,
|
||||
|
||||
// Clean up
|
||||
for (size_t i = 0; i < outputTensors.size(); i++) {
|
||||
- Ort::OrtRelease(outputTensors[i].release());
|
||||
+ Ort::detail::OrtRelease(outputTensors[i].release());
|
||||
}
|
||||
|
||||
for (size_t i = 0; i < inputTensors.size(); i++) {
|
||||
- Ort::OrtRelease(inputTensors[i].release());
|
||||
+ Ort::detail::OrtRelease(inputTensors[i].release());
|
||||
}
|
||||
}
|
||||
} // namespace larynx
|
|
@ -1,14 +0,0 @@
|
|||
diff --git a/adls/CMakeLists.txt b/adls/CMakeLists.txt
|
||||
index 1fb7146..22e663a 100644
|
||||
--- a/adls/CMakeLists.txt
|
||||
+++ b/adls/CMakeLists.txt
|
||||
@@ -50,3 +50,9 @@ if(BUILD_TESTS)
|
||||
string(REGEX REPLACE "([^;]+)" "${CMAKE_CURRENT_SOURCE_DIR}/\\1" AZURE_STORAGE_ADLS_TEST_SOURCES "${AZURE_STORAGE_ADLS_TEST_SOURCES}")
|
||||
set(AZURE_STORAGE_ADLS_TEST_SOURCES ${AZURE_STORAGE_ADLS_TEST_SOURCES} PARENT_SCOPE)
|
||||
endif()
|
||||
+
|
||||
+install(TARGETS azure-storage-adls
|
||||
+ ARCHIVE DESTINATION lib
|
||||
+ LIBRARY DESTINATION lib
|
||||
+ RUNTIME DESTINATION bin)
|
||||
+
|
|
@ -1,30 +0,0 @@
|
|||
diff -ur davfs2-1.4.5-old/src/dav_coda.c davfs2-1.4.5-new/src/dav_coda.c
|
||||
--- davfs2-1.4.5-old/src/dav_coda.c 2009-06-04 20:30:32.000000000 +0200
|
||||
+++ davfs2-1.4.5-new/src/dav_coda.c 2011-02-09 19:51:22.260530572 +0100
|
||||
@@ -52,6 +52,10 @@
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
+#ifdef HAVE_SYS_STAT_H
|
||||
+#include <sys/stat.h>
|
||||
+#endif
|
||||
+
|
||||
|
||||
#include "defaults.h"
|
||||
#include "mount_davfs.h"
|
||||
diff -ur davfs2-1.4.5-old/src/dav_fuse.c davfs2-1.4.5-new/src/dav_fuse.c
|
||||
--- davfs2-1.4.5-old/src/dav_fuse.c 2009-06-30 20:06:44.000000000 +0200
|
||||
+++ davfs2-1.4.5-new/src/dav_fuse.c 2011-02-09 19:52:23.938220524 +0100
|
||||
@@ -41,6 +41,12 @@
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
+#ifdef HAVE_SYS_TYPES_H
|
||||
+#include <sys/types.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_SYS_STAT_H
|
||||
+#include <sys/stat.h>
|
||||
+#endif
|
||||
|
||||
#include "defaults.h"
|
||||
#include "mount_davfs.h"
|
|
@ -1,28 +0,0 @@
|
|||
From 95d86c080a559d9c9f0498fb93d43d3fef377080 Mon Sep 17 00:00:00 2001
|
||||
From: Jack Leightcap <jack@leightcap.com>
|
||||
Date: Sat, 13 May 2023 17:28:54 -0400
|
||||
Subject: [PATCH] Relax Amaranth git dependency
|
||||
|
||||
Signed-off-by: Jack Leightcap <jack@leightcap.com>
|
||||
---
|
||||
software/pyproject.toml | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/software/pyproject.toml b/software/pyproject.toml
|
||||
index 6d1e2f1..6dfcc9e 100644
|
||||
--- a/software/pyproject.toml
|
||||
+++ b/software/pyproject.toml
|
||||
@@ -20,8 +20,8 @@ classifiers = [
|
||||
]
|
||||
|
||||
dependencies = [
|
||||
- "amaranth @ git+https://github.com/amaranth-lang/amaranth.git",
|
||||
- "fx2>=0.11",
|
||||
+ "amaranth",
|
||||
+ "fx2",
|
||||
"libusb1>=1.8.1",
|
||||
"aiohttp~=3.8",
|
||||
"pyvcd",
|
||||
--
|
||||
2.38.4
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
diff -rc hdf5-1.8.5/configure hdf5-1.8.5-new/configure
|
||||
*** hdf5-1.8.5/configure 2010-06-04 20:26:04.000000000 +0200
|
||||
--- hdf5-1.8.5-new/configure 2010-08-02 10:30:26.000000000 +0200
|
||||
***************
|
||||
*** 30587,30598 ****
|
||||
sed 's/#define /#define H5_/' <src/H5config.h |\
|
||||
sed 's/#undef /#undef H5_/' >pubconf
|
||||
if test ! -f src/H5pubconf.h; then
|
||||
! /bin/mv -f pubconf src/H5pubconf.h
|
||||
elif (diff pubconf src/H5pubconf.h >/dev/null); then
|
||||
rm -f pubconf
|
||||
echo "src/H5pubconf.h is unchanged"
|
||||
else
|
||||
! /bin/mv -f pubconf src/H5pubconf.h
|
||||
fi
|
||||
echo "Post process src/libhdf5.settings"
|
||||
sed '/^#/d' < src/libhdf5.settings > libhdf5.settings.TMP
|
||||
--- 30587,30598 ----
|
||||
sed 's/#define /#define H5_/' <src/H5config.h |\
|
||||
sed 's/#undef /#undef H5_/' >pubconf
|
||||
if test ! -f src/H5pubconf.h; then
|
||||
! mv -f pubconf src/H5pubconf.h
|
||||
elif (diff pubconf src/H5pubconf.h >/dev/null); then
|
||||
rm -f pubconf
|
||||
echo "src/H5pubconf.h is unchanged"
|
||||
else
|
||||
! mv -f pubconf src/H5pubconf.h
|
||||
fi
|
||||
echo "Post process src/libhdf5.settings"
|
||||
sed '/^#/d' < src/libhdf5.settings > libhdf5.settings.TMP
|
|
@ -1,53 +0,0 @@
|
|||
On darwin, providing SystemConfiguration to curl currently results in a
|
||||
reference loop, so we have to disable the check for it and the feature
|
||||
which requires it (NAT64).
|
||||
|
||||
Patching actual configure script here as we also don't want to require
|
||||
autoconf in the bootstrap loop just to regenerate a patched configure.ac.
|
||||
|
||||
--- a/configure 2021-10-16 00:51:59.000000000 +0100
|
||||
+++ b/configure 2021-10-16 01:06:46.000000000 +0100
|
||||
@@ -21556,7 +221556,7 @@
|
||||
if test "x$build_for_macos" != xno; then
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
printf "%s\n" "yes" >&6; }
|
||||
- LDFLAGS="$LDFLAGS -framework CoreFoundation -framework CoreServices -framework SystemConfiguration"
|
||||
+ LDFLAGS="$LDFLAGS -framework CoreFoundation"
|
||||
else
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
printf "%s\n" "no" >&6; }
|
||||
@@ -22211,9 +22211,6 @@
|
||||
fi
|
||||
|
||||
|
||||
-if test "$HAVE_GETHOSTBYNAME" != "1"; then
|
||||
- as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
|
||||
-fi
|
||||
|
||||
|
||||
curl_includes_winsock2="\
|
||||
diff --git a/lib/curl_setup.h b/lib/curl_setup.h
|
||||
index b43714da7..7674778b7 100644
|
||||
--- a/lib/curl_setup.h
|
||||
+++ b/lib/curl_setup.h
|
||||
@@ -250,20 +250,6 @@
|
||||
|
||||
#include <curl/system.h>
|
||||
|
||||
-/*
|
||||
- * Use getaddrinfo to resolve the IPv4 address literal. If the current network
|
||||
- * interface doesn't support IPv4, but supports IPv6, NAT64, and DNS64,
|
||||
- * performing this task will result in a synthesized IPv6 address.
|
||||
- */
|
||||
-#if defined(__APPLE__) && !defined(USE_ARES)
|
||||
-#include <TargetConditionals.h>
|
||||
-#define USE_RESOLVE_ON_IPS 1
|
||||
-# if TARGET_OS_MAC && !(defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) && \
|
||||
- defined(ENABLE_IPV6)
|
||||
-# define CURL_MACOS_CALL_COPYPROXIES 1
|
||||
-# endif
|
||||
-#endif
|
||||
-
|
||||
#ifdef USE_LWIPSOCK
|
||||
# include <lwip/init.h>
|
||||
# include <lwip/sockets.h>
|
|
@ -1,12 +0,0 @@
|
|||
diff --git a/src/http_display/httpd.c b/src/http_display/httpd.c
|
||||
index f4709ef..7921d23 100644
|
||||
--- a/src/http_display/httpd.c
|
||||
+++ b/src/http_display/httpd.c
|
||||
@@ -191,7 +191,6 @@ static void * http_server_dispatch(void *arg)
|
||||
LWSMPRO_FILE, /* mount type is a directory in a filesystem */
|
||||
1, /* strlen("/"), ie length of the mountpoint */
|
||||
NULL,
|
||||
- { NULL, NULL } // sentinel
|
||||
};
|
||||
|
||||
memset(&info, 0, sizeof info);
|
|
@ -1,20 +0,0 @@
|
|||
diff --git a/photon.py.old b/photon.py
|
||||
index 92498e4..f7e2c3d 100644
|
||||
--- a/photon.py.old
|
||||
+++ b/photon.py
|
||||
@@ -185,7 +185,7 @@ if args.user_agent:
|
||||
user_agents = args.user_agent.split(',')
|
||||
else:
|
||||
user_agents = []
|
||||
- with open(os.getcwd() + '/core/user-agents.txt', 'r') as uas:
|
||||
+ with open('DESTDIR/core/user-agents.txt', 'r') as uas:
|
||||
for agent in uas:
|
||||
user_agents.append(agent.strip('\n'))
|
||||
|
||||
@@ -534,4 +534,4 @@ if args.export:
|
||||
if not colors: # if colors are disabled
|
||||
print ('%s Results saved in %s directory' % (good, output_dir))
|
||||
else:
|
||||
- print ('%s Results saved in \033[;1m%s\033[0m directory' % (good, output_dir))
|
||||
\ No newline at end of file
|
||||
+ print ('%s Results saved in \033[;1m%s\033[0m directory' % (good, output_dir))
|
|
@ -1,13 +0,0 @@
|
|||
diff --git a/Makefile b/Makefile
|
||||
index d6b9dc1..ce7c493 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -601,7 +601,7 @@ install-localstatedir:
|
||||
endif
|
||||
|
||||
|
||||
-install: all $(if $(BUILD_DOCS),install-doc) install-datadir install-localstatedir
|
||||
+install: all $(if $(BUILD_DOCS),install-doc) install-datadir
|
||||
ifneq ($(TOOLS),)
|
||||
$(call install-prog,$(subst qemu-ga,qemu-ga$(EXESUF),$(TOOLS)),$(DESTDIR)$(bindir))
|
||||
endif
|
|
@ -1,14 +0,0 @@
|
|||
diff --git a/tools/gpgkey2ssh.c b/tools/gpgkey2ssh.c
|
||||
index 903fb5b..d5611dc 100644
|
||||
--- a/tools/gpgkey2ssh.c
|
||||
+++ b/tools/gpgkey2ssh.c
|
||||
@@ -268,7 +268,7 @@ main (int argc, char **argv)
|
||||
keyid = argv[1];
|
||||
|
||||
ret = asprintf (&command,
|
||||
- "gpg --list-keys --with-colons --with-key-data '%s'",
|
||||
+ "@out@/bin/gpg --list-keys --with-colons --with-key-data '%s'",
|
||||
keyid);
|
||||
assert (ret > 0);
|
||||
|
||||
|
Loading…
Reference in a new issue