From 4cf8a0871a794a9bb483fb11047c4ce8d7750a82 Mon Sep 17 00:00:00 2001
From: Michael Vines <mvines@silklabs.com>
Date: Fri, 14 Oct 2016 10:35:32 -0700
Subject: [PATCH] Remove use of non-standard get_device_compatible()

This edify function only exists in some CAF trees, and notably does not exist in
AOSP trees.

Change-Id: Iaff33726b2fef0c8df81a3776d2c1e61db23f43b
---
 tools/releasetools/edify_generator.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/releasetools/edify_generator.py b/tools/releasetools/edify_generator.py
index 89840c6..e52c264 100644
--- a/tools/releasetools/edify_generator.py
+++ b/tools/releasetools/edify_generator.py
@@ -116,7 +116,7 @@ class EdifyGenerator(object):

   def AssertDevice(self, device):
     """Assert that the device identifier is the given string."""
-    cmd = ('get_device_compatible("%s") == "OK" || '
+    cmd = ('getprop("ro.product.device") == "%s" || '
            'abort("This package is for \\"%s\\" devices; '
            'this is a \\"" + getprop("ro.product.device") + "\\".");'
            ) % (device, device)
--
2.10.0


Patch to make openssl DTLS work with a Cisco AP.

--- openssl-1.0.1i/ssl/d1_lib.c.old	2015-01-04 00:23:08.034412171 +0100
+++ openssl-1.0.1i/ssl/d1_lib.c	2015-01-04 00:23:37.662557015 +0100
@@ -308,7 +308,7 @@
 	/* If timer is not set, initialize duration with 1 second */
 	if (s->d1->next_timeout.tv_sec == 0 && s->d1->next_timeout.tv_usec == 0)
 		{
-		s->d1->timeout_duration = 1;
+		s->d1->timeout_duration = 3;
 		}

 	/* Set timeout to current time */


From 95c2d549d8d123aac37a372580122f1b043c6165 Mon Sep 17 00:00:00 2001
From: Ray Kinsella <ray.kinsella@intel.com>
Date: Wed, 10 Aug 2016 11:59:07 +0100
Subject: [PATCH] UIO: Fix a crash in igb_uio driver when the device is
 removed.

This crash happens because the device still has MSI configured,
the fix is to free the IRQ.

Signed-off-by: Todd Foggoa (tfoggoa) <tfoggoa@cisco.com>
Signed-off-by: Ray Kinsella <ray.kinsella@intel.com>
---
 lib/librte_eal/linuxapp/igb_uio/igb_uio.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c
index df41e45..69873e7 100644
--- a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c
+++ b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c
@@ -442,8 +442,15 @@ static void
 igbuio_pci_remove(struct pci_dev *dev)
 {
 	struct rte_uio_pci_dev *udev = pci_get_drvdata(dev);
+	struct uio_info *info = pci_get_drvdata(dev);

 	sysfs_remove_group(&dev->dev.kobj, &dev_attr_grp);
+
+	if (info->irq && (info->irq != UIO_IRQ_CUSTOM)){
+		free_irq(info->irq, info->uio_dev);
+		info->irq = UIO_IRQ_NONE;
+	}
+
 	uio_unregister_device(&udev->info);
 	igbuio_pci_release_iomem(&udev->info);
 	if (udev->mode == RTE_INTR_MODE_MSIX)
--
1.9.1


Fix bug limiting memory to 100MB (macOS)

From 9d091bbb30d561dc1071e2e38d51edddcf1f0409 Mon Sep 17 00:00:00 2001
From: Tim Blechmann <tim@klingt.org>
Date: Wed, 5 Jun 2019 00:49:21 +0800
Subject: [PATCH] daemon: fix `MemTotal` on macos

the mach codepath doesn't obtain `MemTotal`, which will always cause the
a pessimistic 100MB memory limit. as later on, we'll just return 0.

the best way on macos to obtain the total memory is reading `hw.memsize`
---
 daemon/load.cpp | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/daemon/load.cpp b/daemon/load.cpp
index 5972aca9..6b4926aa 100644
--- a/daemon/load.cpp
+++ b/daemon/load.cpp
@@ -54,6 +54,10 @@
 #include <devstat.h>
 #endif

+#ifdef __APPLE__
+#include <sys/sysctl.h>
+#endif
+
 using namespace std;

 // what the kernel puts as ticks in /proc/stat
@@ -260,6 +264,15 @@ static unsigned int calculateMemLoad(unsigned long int &NetMemFree)
     // blunt lie - but when's sche macht
     Buffers = MemInactive;

+#ifdef __APPLE__
+    {
+        size_t len = sizeof(MemTotal);
+        if ((sysctlbyname("hw.memsize", &MemTotal, &len, NULL, 0) == -1) || !len) {
+            MemTotal = 0;
+        }
+    }
+#endif
+
 #elif defined( USE_SYSCTL )
     size_t len = sizeof(MemFree);


diff --git a/src/lib.rs b/src/lib.rs
index c30515d..fca7b6a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,3 +1,4 @@
+#![feature(nll)]
 #![doc(html_root_url = "https://dtolnay.github.io/syn")]

 #![cfg_attr(feature = "cargo-clippy", allow(large_enum_variant))]


Patch a file handle leak in RegionFileCache handling when under memory pressure.

--- ../src-base/common/net/minecraft/src/RegionFileCache.java
+++ ../src-work/common/net/minecraft/src/RegionFileCache.java
@@ -4,8 +4,6 @@
 import java.io.DataOutputStream;
 import java.io.File;
 import java.io.IOException;
-import java.lang.ref.Reference;
-import java.lang.ref.SoftReference;
 import java.util.HashMap;
 import java.util.Iterator;
 import java.util.Map;
@@ -18,17 +16,11 @@
     {
         File var3 = new File(p_76550_0_, "region");
         File var4 = new File(var3, "r." + (p_76550_1_ >> 5) + "." + (p_76550_2_ >> 5) + ".mca");
-        Reference var5 = (Reference)field_76553_a.get(var4);
-        RegionFile var6;
+        RegionFile var6 = (RegionFile) field_76553_a.get(var4);

-        if (var5 != null)
+        if (var6 != null)
         {
-            var6 = (RegionFile)var5.get();
-
-            if (var6 != null)
-            {
-                return var6;
-            }
+            return var6;
         }

         if (!var3.exists())
@@ -42,7 +34,7 @@
         }

         var6 = new RegionFile(var4);
-        field_76553_a.put(var4, new SoftReference(var6));
+        field_76553_a.put(var4, var6);
         return var6;
     }

@@ -52,11 +44,9 @@

         while (var0.hasNext())
         {
-            Reference var1 = (Reference)var0.next();
-
             try
             {
-                RegionFile var2 = (RegionFile)var1.get();
+                RegionFile var2 = (RegionFile)var0.next();

                 if (var2 != null)
                 {


Add patch to allow restarting of renderer process on purpose.

diff --git a/content/browser/frame_host/render_frame_host_manager.cc b/content/browser/frame_host/render_frame_host_manager.cc
index 79a477d..0007bf2 100644
--- a/content/browser/frame_host/render_frame_host_manager.cc
+++ b/content/browser/frame_host/render_frame_host_manager.cc
@@ -1292,6 +1292,16 @@ SiteInstance* RenderFrameHostManager::GetSiteInstanceForNavigation(
     bool dest_is_view_source_mode) {
   SiteInstance* current_instance = render_frame_host_->GetSiteInstance();

+  // Gives user a chance to pass a custom side instance.
+  SiteInstance* client_custom_instance = current_instance;
+  GetContentClient()->browser()->OverrideSiteInstanceForNavigation(
+      delegate_->GetControllerForRenderManager().GetBrowserContext(),
+      current_instance,
+      dest_url,
+      &client_custom_instance);
+  if (client_custom_instance != current_instance)
+    return client_custom_instance;
+
   // We do not currently swap processes for navigations in webview tag guests.
   if (current_instance->GetSiteURL().SchemeIs(kGuestScheme))
     return current_instance;
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index d01fe15..50da25e 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -140,6 +140,13 @@ class CONTENT_EXPORT ContentBrowserClient {
  public:
   virtual ~ContentBrowserClient() {}

+  // Electron: Allows overriding the SiteInstance when navigating.
+  virtual void OverrideSiteInstanceForNavigation(
+      BrowserContext* browser_context,
+      SiteInstance* current_instance,
+      const GURL& dest_url,
+      SiteInstance** new_instance) {}
+
   // Allows the embedder to set any number of custom BrowserMainParts
   // implementations for the browser startup code. See comments in
   // browser_main_parts.h.


--- rrdtool-1.4.5/configure.ac.orig	2016-08-10 13:07:02.273353179 -0400
+++ rrdtool-1.4.5/configure.ac	2016-08-10 13:07:16.257430215 -0400
@@ -217,7 +217,7 @@

 dnl add pic flag in any case this makes sure all our code is relocatable
-eval `./libtool --config | grep pic_flag`
+eval `./libtool --config | grep pic_flag=`
 CFLAGS="$CFLAGS $pic_flag"


--- gettext-tools/Makefile.in.orig	2012-04-07 20:42:03.000000000 -0300
+++ gettext-tools/Makefile.in	2012-04-07 20:42:16.000000000 -0300
@@ -1248,7 +1248,7 @@
 top_srcdir = @top_srcdir@
 AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies
 ACLOCAL_AMFLAGS = -I m4 -I ../gettext-runtime/m4 -I ../m4 -I gnulib-m4 -I libgrep/gnulib-m4 -I libgettextpo/gnulib-m4
-SUBDIRS = doc intl gnulib-lib libgrep src libgettextpo po projects styles misc man m4 tests gnulib-tests examples
+SUBDIRS = doc intl gnulib-lib libgrep src libgettextpo po projects styles misc man m4 tests gnulib-tests

 # Allow users to use "gnulib-tool --update".


Add patch to fix regression of drag-n-drop between different webviews

diff --git a/content/browser/web_contents/web_contents_view_aura.cc b/content/browser/web_contents/web_contents_view_aura.cc
index 7ac4946..74975cb 100644
--- a/content/browser/web_contents/web_contents_view_aura.cc
+++ b/content/browser/web_contents/web_contents_view_aura.cc
@@ -649,6 +649,7 @@ gfx::NativeView WebContentsViewAura::GetRenderWidgetHostViewParent() const {

 bool WebContentsViewAura::IsValidDragTarget(
     RenderWidgetHostImpl* target_rwh) const {
+  return true;
   return target_rwh->GetProcess()->GetID() == drag_start_process_id_ ||
       GetRenderViewHostID(web_contents_->GetRenderViewHost()) !=
       drag_start_view_id_;
diff --git a/content/browser/web_contents/web_drag_dest_mac.mm b/content/browser/web_contents/web_drag_dest_mac.mm
index 458b01a..808d918 100644
--- a/content/browser/web_contents/web_drag_dest_mac.mm
+++ b/content/browser/web_contents/web_drag_dest_mac.mm
@@ -331,6 +331,7 @@ GetRenderWidgetHostAtPoint:(const NSPoint&)viewPoint
 }

 - (bool)isValidDragTarget:(content::RenderWidgetHostImpl*)targetRWH {
+  return YES;
   return targetRWH->GetProcess()->GetID() == dragStartProcessID_ ||
          GetRenderViewHostID(webContents_->GetRenderViewHost()) !=
              dragStartViewID_;


Patch allowing if the found decl is fwd declare it asks the autoloader to try to find full one.

Index: tools/clang/lib/Sema/SemaLookup.cpp
===================================================================
--- tools/clang/lib/Sema/SemaLookup.cpp	(revision 47284)
+++ tools/clang/lib/Sema/SemaLookup.cpp	(working copy)
@@ -1207,8 +1207,14 @@
       }
   } else {
     // Perform C++ unqualified name lookup.
-    if (CppLookupName(R, S))
+    if (CppLookupName(R, S)) {
+      if (R.isSingleResult())
+        if (const TagDecl *TD = dyn_cast<TagDecl>(R.getFoundDecl())) {
+          if (!TD->isThisDeclarationADefinition() && ExternalSource)
+            ExternalSource->LookupUnqualified(R, S);
+        }
       return true;
+    }
   }

   // If we didn't find a use of this identifier, and if the identifier


Add a patch to fix usage of the `blink::PropertyTreeState ToTreeString()`

diff --git a/third_party/WebKit/Source/platform/graphics/compositing/ContentLayerClientImpl.cpp b/third_party/WebKit/Source/platform/graphics/compositing/ContentLayerClientImpl.cpp
index 0d894db55e4f..7565fc85f551 100644
--- a/third_party/WebKit/Source/platform/graphics/compositing/ContentLayerClientImpl.cpp
+++ b/third_party/WebKit/Source/platform/graphics/compositing/ContentLayerClientImpl.cpp
@@ -264,8 +264,10 @@ scoped_refptr<cc::PictureLayer> ContentLayerClientImpl::UpdateCcPictureLayer(
                        chunk->begin_index, chunk->end_index,
                        DisplayItemList::kSkipNonDrawings |
                            DisplayItemList::kShownOnlyDisplayItemTypes));
+#if DCHECK_IS_ON()
     json->SetString("propertyTreeState",
                     chunk->properties.property_tree_state.ToTreeString());
+#endif  // DCHECK_IS_ON()
     paint_chunk_debug_data_->PushObject(std::move(json));
   }
 #endif


From 58ef08f32f5c5746a78e1329ae664afce41d6cc4 Mon Sep 17 00:00:00 2001
From: JD <jean.daniel.michaud@gmail.com>
Date: Sat, 6 May 2017 22:04:42 +0200
Subject: [PATCH] Add callback handler

---
 RCSwitch.cpp | 10 ++++++++++
 RCSwitch.h   |  1 +
 2 files changed, 11 insertions(+)

diff --git a/RCSwitch.cpp b/RCSwitch.cpp
index 0d9a1ae..6f7ce06 100644
--- a/RCSwitch.cpp
+++ b/RCSwitch.cpp
@@ -85,6 +85,8 @@ enum {
    numProto = sizeof(proto) / sizeof(proto[0])
 };

+static void (*g_custom_interrupt_handler)(void) = NULL;
+
 #if not defined( RCSwitchDisableReceiving )
 volatile unsigned long RCSwitch::nReceivedValue = 0;
 volatile unsigned int RCSwitch::nReceivedBitlength = 0;
@@ -536,6 +538,10 @@ void RCSwitch::enableReceive(int interrupt) {
   this->enableReceive();
 }

+void RCSwitch::registerCustomInterruptHandler(void (*function)(void)) {
+  g_custom_interrupt_handler = function;
+}
+
 void RCSwitch::enableReceive() {
   if (this->nReceiverInterrupt != -1) {
     RCSwitch::nReceivedValue = 0;
@@ -693,5 +699,9 @@ void RECEIVE_ATTR RCSwitch::handleInterrupt() {

   RCSwitch::timings[changeCount++] = duration;
   lastTime = time;
+
+  // Call the custom interrupt handler
+  if (g_custom_interrupt_handler && RCSwitch::nReceivedValue != 0)
+    g_custom_interrupt_handler();
 }
 #endif
diff --git a/RCSwitch.h b/RCSwitch.h
index b7755e0..7204dfe 100644
--- a/RCSwitch.h
+++ b/RCSwitch.h
@@ -82,6 +82,7 @@ class RCSwitch {

     #if not defined( RCSwitchDisableReceiving )
     void enableReceive(int interrupt);
+    void registerCustomInterruptHandler(void (*function)(void));
     void enableReceive();
     void disableReceive();
     bool available();
--
2.7.4


Patch to fix -lm issue for libxml2-2.7.0 on Haiku


--- writepng_orig.c	2015-03-19 15:14:35.917050301 -0700
+++ writepng.c	2015-03-19 15:29:58.475651762 -0700
@@ -309,7 +309,7 @@
      }
      /* Set error handling.  REQUIRED if you aren't supplying your own *
       * error hadnling functions in the png_create_write_struct() call. */
-     if (setjmp(png_ptr->jmpbuf)) {
+     if (setjmp(png_jmpbuf(png_ptr))) {
 	  /* If we get here, we had a problem reading the file */
 	  fclose(fp);
 	  png_destroy_write_struct(&png_ptr, (png_infopp) NULL);
@@ -434,7 +434,10 @@
      png_write_end(png_ptr, info_ptr);

      /* if you malloced the palette, free it here */
-     free(info_ptr->palette);
+     //png_colorp palette;
+     //int num_palette;
+     //png_get_PLTE(png_ptr, info_ptr, &palette, num_palette);
+     //free(palette);

      /* if you allocated any text comments, free them here */


Work around compiler errors on newer versions of gcc

--- zkc-3.4.5.orig/c/src/zookeeper.c	2020-08-13 03:04:49.631654715 -0400
+++ zkc-3.4.5/c/src/zookeeper.c	2020-08-13 03:03:24.983922697 -0400
@@ -3411,7 +3411,7 @@

 static const char* format_endpoint_info(const struct sockaddr_storage* ep)
 {
-    static char buf[128];
+    static char buf[128+6];
     char addrstr[128];
     void *inaddr;
 #ifdef WIN32


Add patch to fix warning about the conference channel not being found on agent logout.

diff -Naur asterisk-1.2.32-old/apps/app_meetme.c asterisk-1.2.32/apps/app_meetme.c
--- asterisk-1.2.32-old/apps/app_meetme.c	2009-04-14 12:34:28.163817879 -0400
+++ asterisk-1.2.32/apps/app_meetme.c	2009-04-14 22:30:16.325818293 -0400
@@ -2118,7 +2118,7 @@
 			dispose_conf(cnf);
 			cnf = NULL;
 		} else {
-			ast_log(LOG_NOTICE, "Conference Number not found\n");
+			ast_log(LOG_DEBUG, "Conference Number not found\n");
 		}
 	}


Enable global check-all to include cling if checked out.

Index: test/Makefile
===================================================================
--- test/Makefile	(revision 153954)
+++ test/Makefile	(working copy)
@@ -61,6 +61,8 @@
 ifndef TESTSUITE
 ifeq ($(shell test -f $(PROJ_OBJ_DIR)/../tools/clang/Makefile && echo OK), OK)
 LIT_ALL_TESTSUITES += $(PROJ_OBJ_DIR)/../tools/clang/test
+ifeq ($(shell test -f $(PROJ_OBJ_DIR)/../tools/cling/Makefile && echo OK), OK)
+LIT_ALL_TESTSUITES += $(PROJ_OBJ_DIR)/../tools/cling/test

 # Force creation of Clang's lit.site.cfg.
 clang-lit-site-cfg: FORCE


Patch to make tests use a private memcache

Index: gaeunit.py
===================================================================
--- gaeunit.py	(revision 98)
+++ gaeunit.py	(working copy)
@@ -77,6 +77,7 @@
 from google.appengine.ext import webapp
 from google.appengine.api import apiproxy_stub_map
 from google.appengine.api import datastore_file_stub
+from google.appengine.api.memcache import memcache_stub
 from google.appengine.ext.webapp.util import run_wsgi_app

 _LOCAL_TEST_DIR = 'test'  # location of files
@@ -429,8 +430,11 @@
        apiproxy_stub_map.apiproxy = apiproxy_stub_map.APIProxyStubMap()
        temp_stub = datastore_file_stub.DatastoreFileStub('GAEUnitDataStore', None, None, trusted=True)
        apiproxy_stub_map.apiproxy.RegisterStub('datastore', temp_stub)
+       apiproxy_stub_map.apiproxy.RegisterStub(
+           'memcache',
+           memcache_stub.MemcacheServiceStub())# setup mock
        # Allow the other services to be used as-is for tests.
-       for name in ['user', 'urlfetch', 'mail', 'memcache', 'images']:
+       for name in ['user', 'urlfetch', 'mail', 'images']:
            apiproxy_stub_map.apiproxy.RegisterStub(name, original_apiproxy.GetStub(name))
        runner.run(suite)
     finally:


Patch to enable building libtheora, based on Kaliber's patch.

diff -urN libtheora-1.0/configure.ac libtheora-1.0-haiku/configure.ac
--- libtheora-1.0/configure.ac	2008-10-24 04:07:32.000000000 +0000
+++ libtheora-1.0-haiku/configure.ac	2009-09-14 02:21:57.000000000 +0000
@@ -404,7 +404,7 @@
 if test x$HAVE_SDL = xyes -a x$HAVE_OSS = xyes -a x$HAVE_VORBIS = xyes; then
   BUILDABLE_EXAMPLES="$BUILDABLE_EXAMPLES player_example"
 fi
-if test x$HAVE_PNG = xyes; then
+if test x$HAVE_PNG = xyes -a $target_os != 'haiku'; then
   BUILDABLE_EXAMPLES="$BUILDABLE_EXAMPLES png2theora"
 fi
 AC_SUBST(BUILDABLE_EXAMPLES)


diff -Naur a/opt/openstack-ansible/tests/roles/bootstrap-host/tasks/prepare_networking.yml b/opt/openstack-ansible/tests/roles/bootstrap-host/tasks/prepare_networking.yml
--- a/opt/openstack-ansible/tests/roles/bootstrap-host/tasks/prepare_networking.yml     2017-04-25 14:31:18.319159976 +0000
+++ b/opt/openstack-ansible/tests/roles/bootstrap-host/tasks/prepare_networking.yml     2017-04-25 14:44:20.011641719 +0000
@@ -82,6 +82,10 @@
     - br-storage
     - br-vlan
     - br-vxlan
+  register: start_network_interfaces
+  until: start_network_interfaces | success
+  retries: 5
+  delay: 2
   tags:
     - networking-interfaces-start

@@ -89,4 +93,4 @@
   setup:
     filter: "ansible_br*"
   tags:
-    - networking
\ No newline at end of file
+    - networking


diff --git a/install.sh b/install.sh
index 4dcf332..3a4eaa3 100755
--- a/install.sh
+++ b/install.sh
@@ -245,7 +245,8 @@ VAR_DIRS="$VAR_LOCATION/remotes \
           $VAR_LOCATION/remotes/auth/server_x509 \
           $VAR_LOCATION/remotes/auth/server_cipher \
           $VAR_LOCATION/remotes/auth/quota \
-          $VAR_LOCATION/remotes/auth/dummy"
+          $VAR_LOCATION/remotes/auth/dummy \
+          $VAR_LOCATION/remotes/auth/default"

 SUNSTONE_DIRS="$SUNSTONE_LOCATION/models \
                $SUNSTONE_LOCATION/models/OpenNebulaJSON \
diff --git a/src/authm_mad/remotes/default/authenticate b/src/authm_mad/remotes/default/authenticate
new file mode 100755
index 0000000..1b492ab
--- /dev/null
+++ b/src/authm_mad/remotes/default/authenticate
@@ -0,0 +1,26 @@
+#!/usr/bin/env bash
+
+# -------------------------------------------------------------------------- #
+# Copyright 2002-2012, OpenNebula Project Leads (OpenNebula.org)             #
+#                                                                            #
+# Licensed under the Apache License, Version 2.0 (the "License"); you may    #
+# not use this file except in compliance with the License. You may obtain    #
+# a copy of the License at                                                   #
+#                                                                            #
+# http://www.apache.org/licenses/LICENSE-2.0                                 #
+#                                                                            #
+# Unless required by applicable law or agreed to in writing, software        #
+# distributed under the License is distributed on an "AS IS" BASIS,          #
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
+# See the License for the specific language governing permissions and        #
+# limitations under the License.                                             #
+#--------------------------------------------------------------------------- #
+
+# $1 = username
+# $2 = "-" if user is not registered in opennebula
+# $3 = password
+echo default $1 $3
+
+
+
+
diff --git a/src/authm_mad/remotes/dummy/authenticate b/src/authm_mad/remotes/dummy/authenticate
index 0917ac6..66c50a8 100755
--- a/src/authm_mad/remotes/dummy/authenticate
+++ b/src/authm_mad/remotes/dummy/authenticate
@@ -19,7 +19,7 @@
 # $1 = username
 # $2 = "-" if user is not registered in opennebula
 # $3 = password
-echo core $1 $3
+echo dummy $1 $3


Index: CLIuti.c
===================================================================
RCS file: /opldev/source/CVS-MASTER/virtuoso/libsrc/Wi/CLIuti.c,v
retrieving revision 1.125.2.12
diff -u -r1.125.2.12 CLIuti.c
--- CLIuti.c	25 Nov 2010 17:16:01 -0000	1.125.2.12
+++ CLIuti.c	12 Jan 2012 16:11:15 -0000
@@ -181,7 +181,7 @@
       return SQL_WVARCHAR;

     case DV_ANY:
-      return SQL_VARCHAR;
+      return SQL_LONGVARCHAR;

     case DV_INT64:
       return SQL_INTEGER;
Index: eqlcomp.c
===================================================================
RCS file: /opldev/source/CVS-MASTER/virtuoso/libsrc/Wi/eqlcomp.c,v
retrieving revision 1.114.2.40
diff -u -r1.114.2.40 eqlcomp.c
--- eqlcomp.c	12 Oct 2011 20:10:19 -0000	1.114.2.40
+++ eqlcomp.c	12 Jan 2012 16:11:16 -0000
@@ -2511,7 +2511,7 @@
 	      desc->cd_scale = box_num (6);
 	    }
 	  if (desc->cd_dtp == DV_ANY)
-  	      prec = ROW_MAX_COL_BYTES;
+	    prec = 0x7fffffff;
 	  if (IS_BLOB_DTP (desc->cd_dtp))
 	    prec = 0x7fffffff;
 	  desc->cd_precision = box_num (prec);


Fix auto-refresh not working when performing firmware flash upgrade

--- modules/luci-mod-admin-full/luasrc/view/admin_system/applyreboot.htm.orig	2020-02-14 09:58:40.742463469 -0500
+++ modules/luci-mod-admin-full/luasrc/view/admin_system/applyreboot.htm	2020-02-14 10:13:09.799659252 -0500
@@ -12,13 +12,14 @@
 		<script type="text/javascript">//<![CDATA[
 			var interval = window.setInterval(function() {
 				var img = new Image();
+				let host = document.location.protocol + '//<%=addr or luci.http.getenv("SERVER_NAME") or luci.http.getenv("HTTP_HOST")%>';

 				img.onload = function() {
 					window.clearInterval(interval);
-					location.href = ('https:' == document.location.protocol ? 'https://' : 'http://') + '<%=addr or luci.http.getenv("SERVER_NAME")%>/';
+					location.href = host;
 				};

-				img.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + '<%=addr or luci.http.getenv("SERVER_NAME")%><%=resource%>/icons/loading.gif?' + Math.random();
+				img.src = host + '<%=resource%>/icons/loading.gif?' + Math.random();
 			}, 5000);
 		//]]></script>
 	</head>


From b42222e01abc1a799c4e421fa26d72d49afe4b99 Mon Sep 17 00:00:00 2001
From: Siu Kwan Lam <michael.lam.sk@gmail.com>
Date: Fri, 23 Mar 2018 11:46:45 -0500
Subject: [PATCH] Patch to fix undefined behavior in cfgprinter

---
 include/llvm/Analysis/CFGPrinter.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/llvm/Analysis/CFGPrinter.h b/include/llvm/Analysis/CFGPrinter.h
index 5786769..a4b642b 100644
--- a/include/llvm/Analysis/CFGPrinter.h
+++ b/include/llvm/Analysis/CFGPrinter.h
@@ -172,8 +172,7 @@ struct DOTGraphTraits<const Function*> : public DefaultDOTGraphTraits {

     // Prepend a 'W' to indicate that this is a weight rather than the actual
     // profile count (due to scaling).
-    Twine Attrs = "label=\"W:" + Twine(Weight->getZExtValue()) + "\"";
-    return Attrs.str();
+    return ("label=\"W:" + Twine(Weight->getZExtValue()) + "\"").str();
   }
 };
 } // End llvm namespace
--
2.10.1


diff --git a/deps/v8/src/runtime/runtime-compiler.cc b/deps/v8/src/runtime/runtime-compiler.cc
index b5910e4..6c7bf13 100644
--- a/deps/v8/src/runtime/runtime-compiler.cc
+++ b/deps/v8/src/runtime/runtime-compiler.cc
@@ -395,10 +395,54 @@ bool CodeGenerationFromStringsAllowed(Isolate* isolate,
   }
 }

-static Object* CompileGlobalEval(Isolate* isolate, Handle<String> source,
+static Object* CompileGlobalEval(Isolate* isolate, Handle<String> old_source,
                                  Handle<SharedFunctionInfo> outer_info,
                                  LanguageMode language_mode,
                                  int eval_scope_position, int eval_position) {
+  /* The eval patch is MIT licensed. The text of the license follows.
+
+Copyright (c) 2016 @CapacitorSet
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+  */
+
+  Handle<String> source;
+
+  std::stringstream temp_ostream;
+  (**old_source).PrintUC16(temp_ostream);
+  std::string source_string = temp_ostream.str();
+
+  std::string trigger_string("/* __eval_hook_skip */");
+  if (source_string.find(trigger_string) == std::string::npos) {
+    std::stringstream patched_stream;
+    patched_stream << "/* Patched in deps/v8/src/runtime/runtime-compiler.cc */ /* __eval_hook_skip */ __eval_trap(`" << source_string << "`);";
+
+    std::string patched_string = patched_stream.str();
+    const char* patched_cstr = patched_string.c_str();
+
+    Factory* factory = isolate->factory();
+    source = factory->InternalizeUtf8String(patched_cstr);
+  } else {
+    source = old_source;
+  }
+
   Handle<Context> context = Handle<Context>(isolate->context());
   Handle<Context> native_context = Handle<Context>(context->native_context());


Add patch to fix C2712 in Windows sanbox code

diff --git a/sandbox/win/src/sandbox_nt_util.cc b/sandbox/win/src/sandbox_nt_util.cc
index 12dd7d8..db8f7e8 100644
--- a/sandbox/win/src/sandbox_nt_util.cc
+++ b/sandbox/win/src/sandbox_nt_util.cc
@@ -365,7 +365,9 @@ UNICODE_STRING* GetImageInfoFromModule(HMODULE module, uint32* flags) {
 #pragma warning(push)
 #pragma warning(disable: 4509)
   UNICODE_STRING* out_name = NULL;
+#if 0
   __try {
+#endif
     do {
       *flags = 0;
       base::win::PEImage pe(module);
@@ -388,8 +390,10 @@ UNICODE_STRING* GetImageInfoFromModule(HMODULE module, uint32* flags) {
           *flags |= MODULE_HAS_CODE;
       }
     } while (false);
+#if 0
   } __except(EXCEPTION_EXECUTE_HANDLER) {
   }
+#endif

   return out_name;
 #pragma warning(pop)


diff --git a/src/Yate.pm b/src/Yate.pm
index ef6ae15..39ad5ea 100644
--- a/src/Yate.pm
+++ b/src/Yate.pm
@@ -349,8 +349,9 @@ sub parse_message($$) {

 	# Now handle params (if any).
 	if ($#split_line > $#{$headers{$header}}) {
-	    foreach (split(/:/, $split_line[$#split_line])) {
-		my ($key, $value) = split(/=/, $_, 2);
+		## Replace $_ with $line
+	    foreach my $line (split(/:/, $split_line[$#split_line])) {
+		my ($key, $value) = split(/=/, $line, 2);

 		if ($key) {
 		    $msg_params->{$self->unescape($key)} = $self->unescape($value);
@@ -459,8 +460,9 @@ sub dispatch($) {
     # It's not a message, check for 'keyword' binded handlers.
     if ($self->header('keyword') ne 'message') {
 	if (exists($self->{'_handlers'}->{$self->header('keyword')})) {
-	    foreach (@{$self->{'_handlers'}->{$self->header('keyword')}}) {
-		$_->($self);
+	    ## Replace $_ with $handler
+	    foreach my $handler (@{$self->{'_handlers'}->{$self->header('keyword')}}) {
+		$handler->($self);
 	    }
 	}

@@ -480,8 +482,9 @@ sub dispatch($) {
 	}

 	if (exists($self->{$type}->{$self->header('name')})) {
-	    foreach (@{$self->{$type}->{$self->header('name')}}) {
-		$_->($self);
+		## Replace $_ with $header
+	    foreach my $header (@{$self->{$type}->{$self->header('name')}}) {
+		$header->($self);
 	    }
 	}

@@ -494,8 +497,9 @@ sub dispatch($) {
 	return 0;
     }

-    foreach (@{$self->{'_handlers'}->{$self->header('name')}}) {
-	my $return = $_->($self);
+	## Replace $_ with $handler
+    foreach my $handler (@{$self->{'_handlers'}->{$self->header('name')}}) {
+	my $return = $handler->($self);

 	if (defined($return) && lc($return) ne 'false' && $return ne '0') {
 	    $self->return_message('true', $return);


Use OPENSSL_CFLAGS even if -lcrypto is used directly

--- a/configure
+++ b/configure
@@ -21551,6 +21551,7 @@
 if test "x$with_sha1" = xlibcrypto; then
 	if test "x$HAVE_LIBCRYPTO" = xyes; then
 		SHA1_LIBS=-lcrypto
+		SHA1_CFLAGS="$OPENSSL_CFLAGS"
 	else
 		SHA1_LIBS="$OPENSSL_LIBS"
 		SHA1_CFLAGS="$OPENSSL_CFLAGS"


diff --git a/lib/kernel/vecmathlib/floattypes.h b/lib/kernel/vecmathlib/floattypes.h
index fa4cc44..cb9071b 100644
--- a/lib/kernel/vecmathlib/floattypes.h
+++ b/lib/kernel/vecmathlib/floattypes.h
@@ -40,6 +40,7 @@ using namespace std;
 #endif

 // Capture libc macros, then undefine them
+/*
 #ifndef isfinite
 #error "isfinite is not a macro"
 #endif
@@ -55,6 +56,7 @@ using namespace std;
 #ifndef signbit
 #error "signbit is not a macro"
 #endif
+*/

 namespace {
 template <typename T> inline int libc_isfinite(T x) { return isfinite(x); }


diff --git a/man/Makefile.am b/man/Makefile.am
index ed97bc6..728873f 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -1,2 +1 @@
-man_MANS = iperf.1
-dist_man_MANS = $(man_MANS)
+dist_man_MANS = iperf.1


Set the U-Boot startup to load ubldr for BeagleBone.

diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index d0fbc88..de27c88 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -41,9 +45,14 @@
 #define CONFIG_SYS_AUTOLOAD		"no"
 #define CONFIG_BOOTFILE			"uImage"
 #define CONFIG_EXTRA_ENV_SETTINGS \
 	"verify=yes\0" \
 	"ramdisk_file=ramdisk.gz\0" \

+#define CONFIG_BOOTCOMMAND \
+	"mmc rescan;" \
+	"fatload mmc 0:1 88000000 ubldr;" \
+	"bootelf 88000000"
+
 /* Clock Defines */
 #define V_OSCK				24000000  /* Clock output from T2 */
 #define V_SCLK				(V_OSCK)


diff -urN allegro-4.4.x-svn/CMakeLists.txt allegro-4.4.x-svn-haiku/CMakeLists.txt
--- allegro-4.4.x-svn/CMakeLists.txt	2012-11-18 01:16:37.000000000 -0800
+++ allegro-4.4.x-svn-haiku/CMakeLists.txt	2012-11-18 01:06:24.541065216 -0800
@@ -291,18 +291,18 @@
     endif(COMPILER_GCC)
 endif(APPLE)

-if(BEOS)
+if(HAIKU)
     if(CMAKE_SYSTEM_NAME STREQUAL Haiku)
         set(ALLEGRO_HAIKU 1)
-    else(CMAKE_SYSTEM_NAME STREQUAL Haiku)
+    else(CMAKE_SYSTEM_NAME STREQUAL BeOS)
         set(ALLEGRO_BEOS 1)
     endif(CMAKE_SYSTEM_NAME STREQUAL Haiku)
     set(WFLAGS "-W -Wall -Wno-unused -Wno-multichar")
     set(WFLAGS_C_ONLY "")
     set(WFLAGS_CXX_ONLY "-Wno-ctor-dtor-privacy")
-endif(BEOS)
+endif(HAIKU)

-if(UNIX AND NOT APPLE AND NOT BEOS)
+if(UNIX AND NOT APPLE AND NOT HAIKU)
     set(ALLEGRO_UNIX 1)
 endif()

@@ -628,10 +628,10 @@

 # -- Haiku/BeOS --

-if(BEOS)
+if(HAIKU)
     list(APPEND PLATFORM_SOURCES ${ALLEGRO_SRC_BEOS_FILES})
     list(APPEND PLATFORM_LIBS game midi device)
-endif(BEOS)
+endif(HAIKU)

 # -- Mac OS X --

@@ -727,9 +727,9 @@
 if(ALLEGRO_WITH_XWINDOWS)
     add_headers("" include/xalleg.h)
 endif(ALLEGRO_WITH_XWINDOWS)
-if(BEOS)
+if(HAIKU)
     add_headers("" include/bealleg.h)
-endif(BEOS)
+endif(HAIKU)

 #-----------------------------------------------------------------------------#
 #


Add patch that re-enables interrupt from idle.

diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c
index ad41f19..12fdd39 100644
--- a/drivers/cpuidle/cpuidle.c
+++ b/drivers/cpuidle/cpuidle.c
@@ -76,8 +76,11 @@  static void cpuidle_idle_call(void)
 #endif
 	/* ask the governor for the next state */
 	next_state = cpuidle_curr_governor->select(dev);
-	if (need_resched())
+	if (need_resched()) {
+		local_irq_enable();
 		return;
+	}
+
 	target_state = &dev->states[next_state];

 	/* enter the state and update stats */


Patch for building fennec on the ubuntu linux platform.

diff --git a/build/autoconf/android.m4 b/build/autoconf/android.m4
index e432f97..ee9e1f5 100644
--- a/build/autoconf/android.m4
+++ b/build/autoconf/android.m4
@@ -361,6 +361,8 @@ case "$target" in
         fi
     done

+    android_build_tools="$android_sdk_root/build-tools"
+    all_android_build_tools="$all_android_build_tools:$android_build_tools"
     if test -d "$android_build_tools" -a -f "$android_build_tools/aapt"; then
         AC_MSG_RESULT([$android_build_tools])
     else
@@ -397,7 +399,7 @@ case "$target" in

     dnl Google has a history of moving the Android tools around.  We don't
     dnl care where they are, so let's try to find them anywhere we can.
-    ALL_ANDROID_TOOLS_PATHS="$ANDROID_TOOLS$all_android_build_tools:$ANDROID_PLATFORM_TOOLS"
+    ALL_ANDROID_TOOLS_PATHS="$ANDROID_TOOLS:$all_android_build_tools:$ANDROID_PLATFORM_TOOLS"
     MOZ_PATH_PROG(ZIPALIGN, zipalign, :, [$ALL_ANDROID_TOOLS_PATHS])
     MOZ_PATH_PROG(DX, dx, :, [$ALL_ANDROID_TOOLS_PATHS])
     MOZ_PATH_PROG(AAPT, aapt, :, [$ALL_ANDROID_TOOLS_PATHS])


Correct openssl library builds for Qemu i386-softmmu fully virtualized guest

diff -Naur kamikaze-orig/package/openssl/Makefile kamikaze-mod/package/openssl/Makefile
--- kamikaze-orig/package/openssl/Makefile	2008-07-13 16:02:14.664043000 +0000
+++ kamikaze-mod/package/openssl/Makefile	2008-07-23 11:06:00.285160859 +0000
@@ -71,8 +71,8 @@
 OPENSSL_OPTIONS:= shared no-ec no-err no-fips no-hw no-threads zlib-dynamic \
 					no-sse2 no-perlasm --with-cryptodev
 else
-OPENSSL_OPTIONS:= shared no-ec no-err no-fips no-hw no-threads zlib-dynamic \
-					no-engines no-sse2 no-perlasm
+OPENSSL_OPTIONS:= shared no-ec no-err no-fips no-hw zlib-dynamic \
+					no-engines no-sse2 no-perlasm threads 386
 endif


Patch for adding tootip and title to recline.js

diff --git a/ckanext/reclineview/theme/public/vendor/recline/recline.js b/ckanext/reclineview/theme/public/vendor/recline/recline.js
index 95d5c48..7d348b1 100644
--- a/ckanext/reclineview/theme/public/vendor/recline/recline.js
+++ b/ckanext/reclineview/theme/public/vendor/recline/recline.js
@@ -3479,6 +3479,8 @@ my.SlickGrid = Backbone.View.extend({
         columnsOrder: [],
         columnsSort: {},
         columnsWidth: [],
+        columnsTitle: [],
+        columnsToolTip: [],
         columnsEditor: [],
         options: {},
         fitColumns: false
@@ -3607,6 +3609,14 @@ my.SlickGrid = Backbone.View.extend({
       if (widthInfo){
         column.width = widthInfo.width;
       }
+      var titleInfo = _.find(self.state.get('columnsTitle'),function(c){return c.column === field.id;});
+      if (titleInfo){
+        column.name = titleInfo.title;
+      }
+      var toolTipInfo = _.find(self.state.get('columnsToolTip'),function(c){return c.column === field.id;});
+      if (toolTipInfo) {
+          column.toolTip = toolTipInfo.value;
+      }
       var editInfo = _.find(self.state.get('columnsEditor'),function(c){return c.column === field.id;});
       if (editInfo){
         column.editor = editInfo.editor;


Add patch to fix the pagesize error in v8

diff --git a/src/base/platform/platform-posix.cc b/src/base/platform/platform-posix.cc
index 31da953..14c6c55 100644
--- a/src/base/platform/platform-posix.cc
+++ b/src/base/platform/platform-posix.cc
@@ -97,7 +97,11 @@ int OS::ActivationFrameAlignment() {

 intptr_t OS::CommitPageSize() {
+#if V8_TARGET_ARCH_MIPS64
+  static intptr_t page_size = 16384;
+#else
   static intptr_t page_size = getpagesize();
+#endif
   return page_size;
 }

@@ -241,7 +245,7 @@ void* OS::GetRandomMmapAddr() {

 size_t OS::AllocateAlignment() {
-  return static_cast<size_t>(sysconf(_SC_PAGESIZE));
+  return 16384;
 }

diff --git a/src/base/sys-info.cc b/src/base/sys-info.cc
index 1b6d393..2a93061 100644
--- a/src/base/sys-info.cc
+++ b/src/base/sys-info.cc
@@ -90,7 +90,7 @@ int64_t SysInfo::AmountOfPhysicalMemory() {
   return static_cast<int64_t>(result) * 1024L;
 #elif V8_OS_POSIX
   long pages = sysconf(_SC_PHYS_PAGES);    // NOLINT(runtime/int)
-  long page_size = sysconf(_SC_PAGESIZE);  // NOLINT(runtime/int)
+  long page_size = 16384; // NOLINT(runtime/int)
   if (pages == -1 || page_size == -1) {
     return 0;
   }


From 7496bb94a2fb2bc34629c9781c3bc3a470becaee Mon Sep 17 00:00:00 2001
From: bjorn3 <bjorn3@users.noreply.github.com>
Date: Fri, 10 Apr 2020 13:47:42 +0200
Subject: [PATCH] Remove usage of extern_weak in fast_thread_local

---
 src/libstd/sys/unix/fast_thread_local.rs | 20 --------------------
 1 files changed, 0 insertions(+), 20 deletions(-)

diff --git a/src/libstd/sys/unix/fast_thread_local.rs b/src/libstd/sys/unix/fast_thread_local.rs
index 8730b4d..8d6e3d5 100644
--- a/src/libstd/sys/unix/fast_thread_local.rs
+++ b/src/libstd/sys/unix/fast_thread_local.rs
@@ -15,28 +15,8 @@
     target_os = "emscripten"
 ))]
 pub unsafe fn register_dtor(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) {
-    use crate::mem;
     use crate::sys_common::thread_local::register_dtor_fallback;

-    extern "C" {
-        #[linkage = "extern_weak"]
-        static __dso_handle: *mut u8;
-        #[linkage = "extern_weak"]
-        static __cxa_thread_atexit_impl: *const libc::c_void;
-    }
-    if !__cxa_thread_atexit_impl.is_null() {
-        type F = unsafe extern "C" fn(
-            dtor: unsafe extern "C" fn(*mut u8),
-            arg: *mut u8,
-            dso_handle: *mut u8,
-        ) -> libc::c_int;
-        mem::transmute::<*const libc::c_void, F>(__cxa_thread_atexit_impl)(
-            dtor,
-            t,
-            &__dso_handle as *const _ as *mut _,
-        );
-        return;
-    }
     register_dtor_fallback(t, dtor);
 }

--
2.20.1


Fix obf error when right clicking a Empty Map.

--- ../src-base/minecraft/net/minecraft/item/ItemEmptyMap.java
+++ ../src-work/minecraft/net/minecraft/item/ItemEmptyMap.java
@@ -25,7 +25,7 @@
         int i = 128 * (1 << mapdata.field_76197_d);
         mapdata.field_76201_a = (int)(Math.round(p_77659_3_.field_70165_t / (double)i) * (long)i);
         mapdata.field_76199_b = (int)(Math.round(p_77659_3_.field_70161_v / (double)i) * (long)i);
-        mapdata.field_76200_c = (byte)p_77659_2_.field_73011_w.field_76574_g;
+        mapdata.field_76200_c = p_77659_2_.field_73011_w.field_76574_g;
         mapdata.func_76185_a();
         --p_77659_1_.field_77994_a;


Patch Monet DB Python client to expect strings to come in as unicode.

To apply this patch, from root of Monetdb source tree,
	execute the following commands:

		$ cd clients/src/python/monetdb/sql
		$ patch -p0 < 3.monetdb.sql.converters.diff

--- /home/mark/old.py	2009-12-21 09:18:54.000000000 -0500
+++ ./converters.py	2009-12-21 09:18:07.000000000 -0500
@@ -118,6 +118,7 @@
         #data = data.replace("\\\\", "\\")
         data = data.replace("\'", "'")
         data = data.replace("\\\"", "\"")
+	data = data.decode("utf8")
         return data[1:-1]

     def __decimal(self, data):


Patch allowing if the found decl is fwd declare it asks the autoloader to try to find full one.

Index: tools/clang/lib/Sema/SemaLookup.cpp
===================================================================
--- tools/clang/lib/Sema/SemaLookup.cpp	(revision 47284)
+++ tools/clang/lib/Sema/SemaLookup.cpp	(working copy)
@@ -1207,8 +1207,14 @@
       }
   } else {
     // Perform C++ unqualified name lookup.
-    if (CppLookupName(R, S))
+    if (CppLookupName(R, S)) {
+      if (R.isSingleResult())
+        if (const TagDecl *TD = dyn_cast<TagDecl>(R.getFoundDecl())) {
+          if (!TD->isThisDeclarationADefinition() && ExternalSource)
+            ExternalSource->LookupUnqualified(R, S);
+        }
       return true;
+    }
   }

   // If we didn't find a use of this identifier, and if the identifier


Add nanosleep to newlib-x86 toolchain build.

From 0094f64e8baa088b7c68f26aa011af810c24a56a Mon Sep 17 00:00:00 2001
From: Egor Pasko <pasko@google.com>
Date: Tue, 25 May 2010 11:53:13 +0200
Subject: [PATCH 13/13] [newlib] build newlib with nanosleep enabled

---
 newlib/newlib/configure.host |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/newlib/newlib/configure.host b/newlib/newlib/configure.host
index 791bbdf..0829489 100644
--- a/newlib/newlib/configure.host
+++ b/newlib/newlib/configure.host
@@ -351,6 +351,7 @@ case "${host}" in
 	stdio64_dir=stdio64
 	;;
   *-*-nacl*)
+	newlib_cflags="${newlib_cflags} -DHAVE_NANOSLEEP"
 	sys_dir=nacl
 	posix_dir=posix
 	;;
--
1.7.0.1


Add another patch for "/etc/apparmor.d" placement

diff --git a/profiles/apparmor/apparmor.go b/profiles/apparmor/apparmor.go
index 51dfa5c..816e4d6 100644
--- a/profiles/apparmor/apparmor.go
+++ b/profiles/apparmor/apparmor.go
@@ -15,11 +15,19 @@ import (

 var (
 	// profileDirectory is the file store for apparmor profiles and macros.
-	profileDirectory = "/etc/apparmor.d"
+	profileDirectory = defaultProfileDirectory()
 	// defaultProfilePath is the default path for the apparmor profile to be saved.
 	defaultProfilePath = path.Join(profileDirectory, "docker")
 )

+func defaultProfileDirectory() string {
+	if os.Getenv("SNAP_APP_DATA_PATH") != "" {
+		// Snappy 15.04+ has read-only /etc/apparmor.d, so we need to use /var/lib/apparmor/profiles instead
+		return "/var/lib/apparmor/profiles"
+	}
+	return "/etc/apparmor.d"
+}
+
 // profileData holds information about the given profile for generation.
 type profileData struct {
 	// Name is profile name.


Applying this patch restores compatibility with Rust < 1.27 (but causes newer
versions to report "warning: trait objects without an explicit `dyn` are
deprecated").

diff --git a/rust/src/main.rs b/rust/src/main.rs
index 064325a9..bf752795 100644
--- a/rust/src/main.rs
+++ b/rust/src/main.rs
@@ -56,9 +56,9 @@ fn main() {

         let mut output = if let Some(output_file) = output_arg {
-            Box::new(File::create(Path::new(&output_file)).unwrap()) as Box<dyn Write>
+            Box::new(File::create(Path::new(&output_file)).unwrap()) as Box<Write>
         } else {
-            Box::new(std::io::stdout()) as Box<dyn Write>
+            Box::new(std::io::stdout()) as Box<Write>
         };

         if let Some(input_file) = input_arg {
diff --git a/rust/src/snowball/among.rs b/rust/src/snowball/among.rs
index 57fc8bae..70631933 100644
--- a/rust/src/snowball/among.rs
+++ b/rust/src/snowball/among.rs
@@ -3,4 +3,4 @@ use snowball::SnowballEnv;
 pub struct Among<T: 'static>(pub &'static str,
                              pub i32,
                              pub i32,
-                             pub Option<&'static (dyn Fn(&mut SnowballEnv, &mut T) -> bool + Sync)>);
+                             pub Option<&'static (Fn(&mut SnowballEnv, &mut T) -> bool + Sync)>);


Add patches: fix autodocs and agent makefile, replace ycp with rb

diff --git a/agents/Makefile.am b/agents/Makefile.am
index 4af041f..e69de29 100644
--- a/agents/Makefile.am
+++ b/agents/Makefile.am
@@ -1,7 +0,0 @@
-# Makefile.am for irda/agents
-
-agent_SCRIPTS =
-
-scrconf_DATA = *.scr
-
-EXTRA_DIST = $(agent_SCRIPTS) $(scrconf_DATA)
diff --git a/doc/autodocs/Makefile.am b/doc/autodocs/Makefile.am
index 2a6f678..6c072bd 100644
--- a/doc/autodocs/Makefile.am
+++ b/doc/autodocs/Makefile.am
@@ -1,3 +1,4 @@
 # Makefile.am for YCP module .../doc/autodocs
-
-include $(top_srcdir)/autodocs-ycp.ami
+# FIXME
+# TODO autodocs temporarily off
+# include $(top_srcdir)/autodocs-ycp.ami
diff --git a/src/Makefile.am b/src/Makefile.am
index c40d1e4..0e3ae86 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -3,16 +3,16 @@
 yncludedir = @yncludedir@/irda

 client_DATA =			\
-	irda.ycp
+	irda.rb

 ynclude_DATA =			\
-	ui.ycp
+	ui.rb

 desktop_DATA =			\
 	irda.desktop

 module_DATA =			\
-	Irda.ycp
+	Irda.rb

 EXTRA_DIST = $(client_DATA) $(ynclude_DATA) $(module_DATA) $(desktop_DATA)

diff --git a/yast2-irda.spec.in b/yast2-irda.spec.in
index 6390d36..9856e2f 100644
--- a/yast2-irda.spec.in
+++ b/yast2-irda.spec.in
@@ -28,7 +28,7 @@ stack.
 %defattr(-,root,root)
 %dir @yncludedir@/irda
 @yncludedir@/irda/*
-@clientdir@/irda.ycp
+@clientdir@/irda.rb
 @moduledir@/Irda.*
 @desktopdir@/irda.desktop
 @scrconfdir@/*.scr


Add a patch to fix corrupted upstream commit

diff --git a/Source/core/loader/ProgressTracker.cpp b/Source/core/loader/ProgressTracker.cpp
index 321d176..22a8bdd 100644
--- a/Source/core/loader/ProgressTracker.cpp
+++ b/Source/core/loader/ProgressTracker.cpp
@@ -95,7 +95,7 @@ void ProgressTracker::dispose()
 {
     if (m_inProgress)
         progressCompleted();
-    ASSERT(!m_frame->isLoading());
+    // ASSERT(!m_frame->isLoading());
 }

 double ProgressTracker::estimatedProgress() const


Add diff file from original activerecord

329c329
<           raise "Your version of PostgreSQL (#{postgresql_version}) is too old, please upgrade!"
---
>           #raise "Your version of PostgreSQL (#{postgresql_version}) is too old, please upgrade!"
384,385c384,385
<         old, self.client_min_messages = client_min_messages, 'panic'
<         execute('SET standard_conforming_strings = on', 'SCHEMA') rescue nil
---
>         #old, self.client_min_messages = client_min_messages, 'panic'
>         #execute('SET standard_conforming_strings = on', 'SCHEMA') rescue nil
387c387
<         self.client_min_messages = old
---
>         #self.client_min_messages = old
897c897
<         query('SHOW client_min_messages', 'SCHEMA')[0][0]
---
>         #query('SHOW client_min_messages', 'SCHEMA')[0][0]
902c902
<         execute("SET client_min_messages TO '#{level}'", 'SCHEMA')
---
>         #execute("SET client_min_messages TO '#{level}'", 'SCHEMA')
1238,1239c1238,1239
<           self.client_min_messages = @config[:min_messages] if @config[:min_messages]
<           self.schema_search_path = @config[:schema_search_path] || @config[:schema_order]
---
>           #self.client_min_messages = @config[:min_messages] if @config[:min_messages]
>           #self.schema_search_path = @config[:schema_search_path] || @config[:schema_order]
1242c1242
<           set_standard_conforming_strings
---
>           #set_standard_conforming_strings
1247c1247
<             execute("SET time zone 'UTC'", 'SCHEMA')
---
>             #execute("SET time zone 'UTC'", 'SCHEMA')
1249c1249
<             execute("SET time zone '#{@local_tz}'", 'SCHEMA')
---
>             #execute("SET time zone '#{@local_tz}'", 'SCHEMA')


--- src/main/webapp/WEB-INF/classes/codenvy/che-machine-configuration.properties	2017-04-27 13:50:11.253008544 +0200
+++ src/main/webapp/WEB-INF/classes/codenvy/che-machine-configuration.properties	2017-04-25 02:52:30.774620329 +0200
@@ -44,7 +44,7 @@
 # this length of time. Idleness is determined by the length of time that a user has
 # not interacted with the workspace, meaning that one of our agents has not received
 # instructions. Leaving a browser window open counts as idleness time.
-che.machine.ws.agent.inactive.stop.timeout.ms=0
+che.machine.ws.agent.inactive.stop.timeout.ms=3600000

 #security
 #GitHub application Client ID
@@ -60,4 +60,4 @@

 git.server.uri.prefix=git

-project.importer.default_importer_id=git
\ No newline at end of file
+project.importer.default_importer_id=git


Add patch to allow use with self-signed certificates

238c238,240
<                 super.onReceivedSslError(view, handler, error);
---
>                 handler.proceed();
>                 return;
>                 //super.onReceivedSslError(view, handler, error);


Add correspoding patch ready to go in clang's mainline.

Index: tools/clang/lib/Sema/Sema.cpp
===================================================================
--- tools/clang/lib/Sema/Sema.cpp	(revision 47812)
+++ tools/clang/lib/Sema/Sema.cpp	(working copy)
@@ -572,7 +572,8 @@

   if (TUKind == TU_Prefix) {
     // Translation unit prefixes don't need any of the checking below.
-    TUScope = 0;
+    if (!PP.isIncrementalProcessingEnabled())
+       TUScope = 0;
     return;
   }

@@ -754,7 +755,8 @@
   assert(ParsingInitForAutoVars.empty() &&
          "Didn't unmark var as having its initializer parsed");

-  TUScope = 0;
+  if (!PP.isIncrementalProcessingEnabled())
+     TUScope = 0;
 }

Index: tools/clang/lib/Parse/Parser.cpp
===================================================================
--- tools/clang/lib/Parse/Parser.cpp	(revision 47812)
+++ tools/clang/lib/Parse/Parser.cpp	(working copy)
@@ -564,8 +564,7 @@
     // Late template parsing can begin.
     if (getLangOpts().DelayedTemplateParsing)
       Actions.SetLateTemplateParser(LateTemplateParserCallback, this);
-    if (!PP.isIncrementalProcessingEnabled())
-      Actions.ActOnEndOfTranslationUnit();
+    Actions.ActOnEndOfTranslationUnit();
     //else don't tell Sema that we ended parsing: more input might come.

     return true;


--- lib/dns/sdlz.c.orig	2010-05-05 14:06:52.000000000 +0200
+++ lib/dns/sdlz.c	2010-05-11 14:40:09.000000000 +0200
@@ -559,9 +559,27 @@
 	 * "wildcard" host.
 	 */
 	if (result != ISC_R_SUCCESS) {
-		result = sdlz->dlzimp->methods->lookup(zonestr, "*",
-						       sdlz->dlzimp->driverarg,
-						       sdlz->dbdata, node);
+		char *wildcard_start = namestr;
+		while (*wildcard_start) {
+			if (*wildcard_start == '.' && wildcard_start > namestr) {
+				*(wildcard_start - 1) = '*';
+
+				result = sdlz->dlzimp->methods->lookup(zonestr, wildcard_start - 1,
+								       sdlz->dlzimp->driverarg,
+								       sdlz->dbdata, node);
+				if (result == ISC_R_SUCCESS) {
+					break;
+				}
+			}
+
+			wildcard_start++;
+		}
+
+		if (result != ISC_R_SUCCESS) {
+			result = sdlz->dlzimp->methods->lookup(zonestr, "*",
+							       sdlz->dlzimp->driverarg,
+							       sdlz->dbdata, node);
+		}
 	}

 	MAYBE_UNLOCK(sdlz->dlzimp);


Add patch for nvidia GPU's on High Sierra

diff --git a/gpu/config/software_rendering_list.json b/gpu/config/software_rendering_list.json
index ebdfca0..bcbcb4a 100644
--- a/gpu/config/software_rendering_list.json
+++ b/gpu/config/software_rendering_list.json
@@ -1460,6 +1460,24 @@
       "features": [
         "webgl2"
       ]
+    },
+    {
+      "id": 150,
+      "description": "Macs with NVidia GPUs experience rendering issues on High Sierra",
+      "cr_bugs": [773705],
+      "os": {
+        "type": "macosx",
+        "version": {
+          "op": ">=",
+          "value": "10.13"
+        }
+      },
+      "vendor_id": "0x10de",
+      "multi_gpu_category": "any",
+      "features": [
+        "accelerated_2d_canvas",
+        "gpu_rasterization"
+      ]
     }
   ],
   "comment": [


--- a/CMakeLists.txt	2017-01-16 01:29:40.000000000 +0800
+++ b/CMakeLists.txt	2017-11-17 16:45:51.740256900 +0800
@@ -208,6 +208,10 @@
 elseif(BUILD_SHARED_LIBS AND WIN32)
     # Creates zlib1.dll when building shared library version
     set_target_properties(zlib PROPERTIES SUFFIX "1.dll")
+    if (MSVC)
+        set_target_properties(zlib PROPERTIES ARCHIVE_OUTPUT_NAME "zlib1")
+        set_target_properties(zlib PROPERTIES PDB_NAME "zlib1")
+    endif ()
 endif()

 if(NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL )


Make sure devtools_resources.pak is included in content_shell.pak

Index: content/content_shell.gypi
===================================================================
--- content/content_shell.gypi	(revision 274914)
+++ content/content_shell.gypi	(working copy)
@@ -492,11 +492,7 @@
             ],
             'conditions': [
               ['OS!="android"', {
-                'variables': {
-                  'pak_inputs': [
-                    '<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak',
-                  ],
-                },
+                'pak_inputs': ['<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak',],
                 'pak_output': '<(PRODUCT_DIR)/content_shell.pak',
               }, {
                 'pak_output': '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak',


Fix watchman missing error spawning logs

diff --git a/node_modules/fb-watchman/index.js b/node_modules/fb-watchman/index.js
index 9f46e16..b7625cf 100644
--- a/node_modules/fb-watchman/index.js
+++ b/node_modules/fb-watchman/index.js
@@ -166,7 +166,7 @@ Client.prototype.connect = function() {
           'https://facebook.github.io/watchman/docs/install.html ' +
           'for installation instructions';
     }
-    console.error('Watchman: ', error.message);
+    console.warn('Watchman: ', error.message);
     self.emit('error', error);
   }


Add simple "/etc/docker" patch for snappy

diff --git a/docker/daemon_unix.go b/docker/daemon_unix.go
index b65eb1f..7a70612 100644
--- a/docker/daemon_unix.go
+++ b/docker/daemon_unix.go
@@ -49,6 +49,13 @@ func setDefaultUmask() error {
 }

 func getDaemonConfDir() string {
+	if snapData := os.Getenv("SNAP_DATA"); snapData != "" {
+		// Ubuntu Snappy 16.04+
+		return snapData + "/etc/docker"
+	} else if snapAppDataPath := os.Getenv("SNAP_APP_DATA_PATH"); snapAppDataPath != "" {
+		// Ubuntu Snappy 15.04
+		return snapAppDataPath + "/etc/docker"
+	}
 	return "/etc/docker"
 }


Add patch to disable renderer hang monitor when page is unloading.

diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 93ab438..dd6737e 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -4220,6 +4220,7 @@ void WebContentsImpl::RendererUnresponsive(RenderViewHost* render_view_host) {

   if (rfhi->is_waiting_for_beforeunload_ack() ||
       rfhi->IsWaitingForUnloadACK()) {
+#if 0
     // Hang occurred while firing the beforeunload/unload handler.
     // Pretend the handler fired so tab closing continues as if it had.
     rvhi->set_sudden_termination_allowed(true);
@@ -4239,6 +4240,7 @@ void WebContentsImpl::RendererUnresponsive(RenderViewHost* render_view_host) {
     }
     if (close)
       Close(rvhi);
+#endif
     return;
   }


Add patch to initialize csp for worker scripts loaded under file scheme

diff --git a/third_party/WebKit/Source/core/workers/WorkerScriptLoader.cpp b/third_party/WebKit/Source/core/workers/WorkerScriptLoader.cpp
index bdd886eff5e3..42a3f0ef6e55 100644
--- a/third_party/WebKit/Source/core/workers/WorkerScriptLoader.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerScriptLoader.cpp
@@ -255,7 +255,6 @@ void WorkerScriptLoader::ProcessContentSecurityPolicy(
   // document (which is implemented in WorkerMessagingProxy, and
   // m_contentSecurityPolicy should be left as nullptr to inherit the policy).
   if (!response.Url().ProtocolIs("blob") &&
-      !response.Url().ProtocolIs("file") &&
       !response.Url().ProtocolIs("filesystem")) {
     content_security_policy_ = ContentSecurityPolicy::Create();
     content_security_policy_->SetOverrideURLForSelf(response.Url());


Patch to tmux to make spectrators not affiecitng the player screen on resize

--- tmux-1.9a-orig/resize.c      2014-02-23 02:48:37.000000000 +0600
+++ tmux-1.9a-mod/resize.c    2014-04-18 20:54:06.000000000 +0600
@@ -58,7 +58,7 @@
                ssx = ssy = UINT_MAX;
                for (j = 0; j < ARRAY_LENGTH(&clients); j++) {
                        c = ARRAY_ITEM(&clients, j);
-                       if (c == NULL || c->flags & CLIENT_SUSPENDED)
+                       if (c == NULL || c->flags & (CLIENT_SUSPENDED | CLIENT_READONLY))
                                continue;
                        if (c->session == s) {
                                if (c->tty.sx < ssx)


Remove reference to xml pretty print (which is dead code anyway)

--- org/jivesoftware/smackx/pubsub/util/XmlUtils.java
+++ org/jivesoftware/smackx/pubsub/util/XmlUtils.java
@@ -28,32 +28,6 @@ import javax.xml.transform.stream.StreamSource;
  */
 public class XmlUtils
 {
-	/**
-	 *
-	 * @param header Just a title for the stanza for readability.  Single word no spaces since
-	 * it is inserted as the root element in the output.
-	 * @param xml The string to pretty print
-	 */
-	static public void prettyPrint(String header, String xml)
-	{
-		try
-		{
-			Transformer transformer = TransformerFactory.newInstance().newTransformer();
-			transformer.setOutputProperty(OutputKeys.INDENT, "yes");
-			transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "3");
-
-			if (header != null)
-			{
-				xml = "\n<" + header + ">" + xml + "</" + header + '>';
-			}
-			transformer.transform(new StreamSource(new StringReader(xml)), new StreamResult(System.out));
-		}
-		catch (Exception e)
-		{
-			System.out.println("Something wrong with xml in \n---------------\n" + xml + "\n---------------");
-			e.printStackTrace();
-		}
-	}

 	static public void appendAttribute(StringBuilder builder, String att, String value)
 	{


--- io/mmap.c
+++ io/mmap.c
@@ -189,7 +189,11 @@
 			prot |= PROT_EXEC;
 			break;
 		case 'S':
+ 			#ifdef MAP_SYNC
 			flags = MAP_SYNC | MAP_SHARED_VALIDATE;
+ 			#else
+ 			flags = MAP_SHARED_VALIDATE;
+ 			#endif

 			/*
 			 * If MAP_SYNC and MAP_SHARED_VALIDATE aren't defined
@@ -269,7 +273,11 @@
 	mapping->offset = offset;
 	mapping->name = filename;
 	mapping->prot = prot;
+ 	#ifdef MAP_SYNC
 	mapping->map_sync = (flags == (MAP_SYNC | MAP_SHARED_VALIDATE));
+ 	#else
+ 	mapping->map_sync = (flags == (MAP_SHARED_VALIDATE));
+ 	#endif
 	return 0;
 }


Add patch showing changes made in this repo.

diff --git a/src/file/keydb.h b/src/file/keydb.h
index c98762f..cd81223 100644
--- a/src/file/keydb.h
+++ b/src/file/keydb.h
@@ -3,20 +3,11 @@

 static const uint32_t internal_device_number = 0;

-static const uint8_t internal_dk_list[][21] = {
-  {
-  },
-};
+static const uint8_t internal_dk_list[][21] = {0};

-static const uint8_t internal_pk_list[][16] = {
-  {
-  },
-};
+static const uint8_t internal_pk_list[][16] = {0};

-static const uint8_t internal_hc_list[][112] = {
-  {
-  },
-};
+static const uint8_t internal_hc_list[][112] = {0};

 /* customize this function to "hide" the keys in the binary */

diff --git a/src/libaacs/crypto.c b/src/libaacs/crypto.c
index 4db7641..fbcc147 100644
--- a/src/libaacs/crypto.c
+++ b/src/libaacs/crypto.c
@@ -366,22 +366,26 @@ static gcry_error_t _aacs_sexp_sha1(gcry_sexp_t *p_sexp_data,
     }

     /* Build an s-expression for the hash */
-    GCRY_VERIFY("gcry_sexp_build",
-                gcry_sexp_build(p_sexp_data, NULL,
-                                "(data"
 #if defined(GCRYPT_VERSION_NUMBER) && GCRYPT_VERSION_NUMBER >= 0x010600
                                 /*
                                  * For some reason gcrypt 1.6.0
                                  * requires 'param' flag here and not
                                  * in key, probably a bug.
                                  */
-                                "  (flags raw param)"
+    GCRY_VERIFY( "gcry_sexp_build",
+        gcry_sexp_build( p_sexp_data, NULL,
+        "(data""  (flags raw param)"
+        "  (value %m))",
+        mpi_md
+        ));
 #else
-                                "  (flags raw)"
+    GCRY_VERIFY( "gcry_sexp_build",
+        gcry_sexp_build( p_sexp_data, NULL,
+        "(data""  (flags raw)"
+        "  (value %m))",
+        mpi_md
+        ) );
 #endif
-                                "  (value %m))",
-                                mpi_md
-                                ));

     /* Dump information about the data s-expression when debugging */
     if (GCRYPT_DEBUG) {


Add patch that makes bold black (color 8) dark gray instead of black.


Add patch for SIP server to add pickup number to holds

007-SIP-hold_pickup.patch

This patch modifies the SIP return message on item information request for holds.

It generates a pickup number based on reserve_id and waitingdate, and prepends to title

diff --git a/MsgType.pm b/lib/C4/SIP/Sip/MsgType.pm
index a95facc..af9cb06 100644
--- a/MsgType.pm
+++ b/lib/C4/SIP/Sip/MsgType.pm
@@ -1171,6 +1171,17 @@ sub handle_item_information {
             $resp .= add_field( FID_HOLD_PICKUP_DATE, timestamp($i) );
         }

+        # Deichman mod: prepend title with pickup id if it is marked hold_shelf
+        if ( scalar @{ $item->hold_shelf } > 0 ) {
+            # Need waitingdate and reserve_id for pickup id
+            use C4::Reserves qw( GetReservesFromItemnumber );
+            my ( undef, undef, undef, $reserve_id, $waitingdate ) = GetReservesFromItemnumber($item->{'itemnumber'});
+            # Format dd/mm/yy
+            my ($y, $m, $d) = "2015-10-01" =~ /(\d{4})-(\d{2})-(\d{2})/;
+            my $title = "($d/$m/$y/$reserve_id) - " . $item->title_id;
+            $resp .= add_field( FID_TITLE_ID, $title );
+        }
+
         $resp .= maybe_add( FID_SCREEN_MSG, $item->screen_msg, $server );
         $resp .= maybe_add( FID_PRINT_LINE, $item->print_line );
     }


diff -ruN numpy-1.8.0/site.cfg.example numpy-1.8.0-new/site.cfg.example
--- numpy-1.8.0/site.cfg.example	2013-10-30 12:31:41.000000000 -0600
+++ numpy-1.8.0-new/site.cfg.example	2014-02-23 15:33:29.409203000 -0700
@@ -62,6 +62,7 @@
 #[DEFAULT]
 #library_dirs = /usr/local/lib
 #include_dirs = /usr/local/include
+#libraries = lapack,blas

 # Atlas
 # -----


Add patch to fix crashes importing NL-users without PIN

Some libraries do not use PIN-codes.

Do a check if the patron has a PIN-code, before attempting
to decrypt it.

diff --git a/members/nl-search.pl b/members/nl-search.pl
index 29ec13e..19d4f3e 100755
--- a/members/nl-search.pl
+++ b/members/nl-search.pl
@@ -124,7 +124,6 @@ if ( $op && $op eq 'search' ) {
         'B_zipcode'    => scalar $cgi->param('m_postnr'),
         'B_city'       => scalar $cgi->param('m_sted'),
         'B_country'    => scalar $cgi->param('m_land'),
-        'password'     => NLDecodePin( $cgi->param('pin') ),
         'dateexpiry'   => scalar $cgi->param('gyldig_til'),
         'email'        => scalar $cgi->param('epost'),
         'mobile'       => scalar $cgi->param('tlf_mobil'),
@@ -133,6 +132,10 @@ if ( $op && $op eq 'search' ) {
         'branchcode'   => $userenv->{'branch'},
         'categorycode' => scalar $cgi->param('categorycode'),
     );
+    # Some patrons do not have a PIN-code in NL
+    if ( $cgi->param('pin') ne "" ) {
+         $borrower{'password'} = NLDecodePin( $cgi->param('pin') );
+    }
     # Add the new patron
     my $borrowernumber = &AddMember(%borrower);
     if ( $borrowernumber ) {
@@ -147,7 +150,9 @@ if ( $op && $op eq 'search' ) {
         });
         $borrowersync->update({ 'syncstatus', 'synced' });
         $borrowersync->update({ 'lastsync',   $cgi->param('sist_endret') });
-        $borrowersync->update({ 'hashed_pin', $cgi->param('pin') });
+        if ( $cgi->param('pin') ne "" ) {
+            $borrowersync->update({ 'hashed_pin', $cgi->param('pin') });
+        }
         # Try to sync in real time. If this fails it will be picked up by the cronjob
         NLSync({ 'borrowernumber' => $borrowernumber });
         # Redirect to the edit screen


Set the U-Boot bootdelay to zero, since it's serving here as just a transitional bootloader.

diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index e0ac494..fa82bb7 100755
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -134,7 +138,7 @@

 #ifndef CONFIG_RESTORE_FLASH
 /* set to negative value for no autoboot */
-#define CONFIG_BOOTDELAY		3
+#define CONFIG_BOOTDELAY		0

 #define CONFIG_BOOTCOMMAND \
 	"if mmc rescan; then " \


From 057dddf8b3692dd8b4ab3bbd462448f6f36762f0 Mon Sep 17 00:00:00 2001
From: Colin Walters <walters@verbum.org>
Date: Fri, 8 Mar 2013 12:14:28 -0500
Subject: [PATCH] autogen.sh: Honor NOCONFIGURE=1

See http://people.gnome.org/~walters/docs/build-api.txt
---
 autogen.sh |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/autogen.sh b/autogen.sh
index 04caa99..d6a5e73 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -44,5 +44,7 @@ if test -z "$*"; then
 	echo "the $0 command line."
 fi

-echo "Running configure..."
-$topsrcdir/configure --enable-maintainer-mode "$@"
+if test -z "$NOCONFIGURE"; then
+	echo "Running configure..."
+	$topsrcdir/configure --enable-maintainer-mode "$@"
+fi
--
1.7.1


Add a small AppArmor "docker-default" tweak for Snappy 15.04

diff --git a/profiles/apparmor/template.go b/profiles/apparmor/template.go
index ada33bf..fe5dd2e 100644
--- a/profiles/apparmor/template.go
+++ b/profiles/apparmor/template.go
@@ -42,5 +42,8 @@ profile {{.Name}} flags=(attach_disconnected,mediate_deleted) {
   # suppress ptrace denials when using 'docker ps' or using 'ps' inside a container
   ptrace (trace,read) peer=docker-default,
 {{end}}
+
+  # Ubuntu Snappy 15.04 tweaks
+  signal (receive) peer="docker_docker{,-daemon}_*",
 }
 `


Add patch for SABnzbd: catch exception if default locale is not supported.

--- sabnzbd/api.py.orig	2012-02-14 21:32:10.000000000 +0100
+++ sabnzbd/api.py	2012-02-14 21:32:31.000000000 +0100
@@ -26,7 +26,10 @@
 import time
 import cherrypy
 import locale
-locale.setlocale(locale.LC_ALL, "")
+try:
+    locale.setlocale(locale.LC_ALL, "")
+except:
+    pass
 try:
     import win32api, win32file
 except ImportError:


From 035183d70fcd75ea3de659ac6350047b419eb600 Mon Sep 17 00:00:00 2001
From: Neal Gompa <ngompa13@gmail.com>
Date: Fri, 30 Mar 2018 09:36:19 -0400
Subject: [PATCH] Allow versions of libusb-1.0 newer than 1.0.21 to satisfy the
 dependency

The libusb-1.0 dependency was set to exactly require 1.0.21, which
breaks the build when trying to build against 1.0.22.

Signed-off-by: Neal Gompa <ngompa13@gmail.com>
---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index b0c0a25..3b1982b 100644
--- a/meson.build
+++ b/meson.build
@@ -93,7 +93,7 @@ config_h = configure_file(
 config_h_dir = include_directories('.')

 # Required dependencies
-dep_usb = dependency('libusb-1.0', version: '1.0.21')
+dep_usb = dependency('libusb-1.0', version: '>= 1.0.21')

 glib_min_version = '>= 2.54.0'
 dep_glib2 = dependency('glib-2.0', version: glib_min_version)


Add patch to expose "File" class's "path" attribute.

diff --git a/Source/core/fileapi/File.idl b/Source/core/fileapi/File.idl
index c338fa2..446fd31 100644
--- a/Source/core/fileapi/File.idl
+++ b/Source/core/fileapi/File.idl
@@ -28,6 +28,7 @@
     Exposed=(Window,Worker),
 ] interface File : Blob {
     readonly attribute DOMString name;
+    readonly attribute DOMString path;
     [MeasureAs=FileGetLastModifiedDate] readonly attribute Date lastModifiedDate;
     readonly attribute long long lastModified;
     [MeasureAs=PrefixedFileRelativePath] readonly attribute DOMString webkitRelativePath;


Disable documention of shiboken as relies on old sphinx.

diff -ruN pyside-1.2.1/setup.py pyside-1.2.1-new/setup.py
--- pyside-1.2.1/setup.py	2013-08-16 01:31:20.000000000 -0600
+++ pyside-1.2.1-new/setup.py	2014-03-23 11:50:11.629330418 -0600
@@ -600,7 +600,8 @@
         if run_process(cmd_make, log) != 0:
             raise DistutilsSetupError("Error compiling " + extension)

-        if extension.lower() == "shiboken":
+        # if extension.lower() == "shiboken":
+        if 0:
             log.info("Generating Shiboken documentation %s..." % extension)
             if run_process([self.make_path, "doc"], log) != 0:
                 raise DistutilsSetupError("Error generating documentation " + extension)


Patch for Tcl/Tk initialization load path

From 2fafde505640c924a8273cb8caacdbef0eb84110 Mon Sep 17 00:00:00 2001
From: Bosko Ivanisevic <bosko.ivanisevic@gmail.com>
Date: Tue, 17 May 2011 08:21:18 +0200
Subject: [PATCH] Use Tcl/Tk files from separate directory

---
 ext/tk/lib/tk.rb |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb
index 4beaaf9..a041940 100644
--- a/ext/tk/lib/tk.rb
+++ b/ext/tk/lib/tk.rb
@@ -3,6 +3,11 @@
 #                       by Yukihiro Matsumoto <matz@netlab.jp>

 # use Shigehiro's tcltklib
+require 'rbconfig'
+if RbConfig::CONFIG['host_os'] =~ /mingw/
+  ENV['TCL_LIBRARY'] = File.join(RbConfig::CONFIG['libdir'], 'tcl', 'tcl8.5')
+end
+
 require 'tcltklib'
 require 'tkutil'

--
1.7.4.msysgit.0


Add patch to fix ERR_CERTIFICATE_TRANSPARENCY_REQUIRED timebomb

diff --git a/net/quic/crypto/proof_verifier_chromium.cc b/net/quic/crypto/proof_verifier_chromium.cc
index 096374a..7a0c3f3 100644
--- a/net/quic/crypto/proof_verifier_chromium.cc
+++ b/net/quic/crypto/proof_verifier_chromium.cc
@@ -345,6 +345,8 @@ int ProofVerifierChromium::Job::DoVerifyCertComplete(int result) {
     int ct_result = OK;
     if (verify_details_->ct_verify_result.cert_policy_compliance !=
             ct::CertPolicyCompliance::CERT_POLICY_COMPLIES_VIA_SCTS &&
+        verify_details_->ct_verify_result.cert_policy_compliance !=
+            ct::CertPolicyCompliance::CERT_POLICY_BUILD_NOT_TIMELY &&
         transport_security_state_->ShouldRequireCT(
             hostname_, cert_verify_result.verified_cert.get(),
             cert_verify_result.public_key_hashes)) {
diff --git a/net/socket/ssl_client_socket_impl.cc b/net/socket/ssl_client_socket_impl.cc
index d1edfbb..79aa8ee 100644
--- a/net/socket/ssl_client_socket_impl.cc
+++ b/net/socket/ssl_client_socket_impl.cc
@@ -1819,6 +1819,8 @@ int SSLClientSocketImpl::VerifyCT() {

   if (ct_verify_result_.cert_policy_compliance !=
           ct::CertPolicyCompliance::CERT_POLICY_COMPLIES_VIA_SCTS &&
+      ct_verify_result_.cert_policy_compliance !=
+          ct::CertPolicyCompliance::CERT_POLICY_BUILD_NOT_TIMELY &&
       transport_security_state_->ShouldRequireCT(
           host_and_port_.host(), server_cert_verify_result_.verified_cert.get(),
           server_cert_verify_result_.public_key_hashes)) {
diff --git a/net/spdy/spdy_session.cc b/net/spdy/spdy_session.cc
index 0e61326..78fb546 100644
--- a/net/spdy/spdy_session.cc
+++ b/net/spdy/spdy_session.cc
@@ -672,6 +672,8 @@ bool SpdySession::CanPool(TransportSecurityState* transport_security_state,

   if (ssl_info.ct_cert_policy_compliance !=
           ct::CertPolicyCompliance::CERT_POLICY_COMPLIES_VIA_SCTS &&
+      ssl_info.ct_cert_policy_compliance !=
+          ct::CertPolicyCompliance::CERT_POLICY_BUILD_NOT_TIMELY &&
       transport_security_state->ShouldRequireCT(
           new_hostname, ssl_info.cert.get(), ssl_info.public_key_hashes)) {
     return false;


diff -Nuar glm.orig/glm/detail/setup.hpp glm/glm/detail/setup.hpp
--- glm.orig/glm/detail/setup.hpp	2015-02-15 16:22:30.000000000 +0100
+++ glm/glm/detail/setup.hpp	2015-03-15 22:12:24.041950002 +0100
@@ -237,7 +237,8 @@
 #		elif __clang_major__ >= 6
 #			define GLM_COMPILER GLM_COMPILER_APPLE_CLANG60
 #		endif
-#	else
+#       endif
+#       if !defined(GLM_COMPILER)
 #		if __clang_major__ == 3 && __clang_minor__ == 0
 #			define GLM_COMPILER GLM_COMPILER_LLVM30
 #		elif __clang_major__ == 3 && __clang_minor__ == 1


From b2ac1530fd8cfc2f1da5c9817f2babc5a7bd2068 Mon Sep 17 00:00:00 2001
From: Chun-wei Fan <fanchunwei@src.gnome.org>
Date: Mon, 1 Jun 2015 17:18:27 +0800
Subject: [PATCH] win32/configure.js: Fix Build

This ought to look for configure.ac instead of the old-style configure.in,
as we switched to it for some time.
---
 win32/configure.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/win32/configure.js b/win32/configure.js
index edd943a..92b9ba0 100644
--- a/win32/configure.js
+++ b/win32/configure.js
@@ -14,7 +14,7 @@ var srcDirUtils = "..";
 var baseName = "libxml2";
 /* Configure file which contains the version and the output file where
    we can store our build configuration. */
-var configFile = srcDirXml + "\\configure.in";
+var configFile = srcDirXml + "\\configure.ac";
 var versionFile = ".\\config.msvc";
 /* Input and output files regarding the libxml features. */
 var optsFileIn = srcDirXml + "\\include\\libxml\\xmlversion.h.in";
--
2.3.5.windows.8


Index: configure
===================================================================
--- configure	(revision 19505)
+++ configure	(working copy)
@@ -1826,7 +1826,6 @@
         FFSERVERLDFLAGS=-Wl,-bind_at_load
         objformat="macho"
         enabled x86_64 && objformat="macho64"
-        enabled shared || check_cflags -mdynamic-no-pic
         ;;
     mingw32*)
         target_os=mingw32

Update ffmpeg patch for darwin

Index: configure
===================================================================
--- configure	(révision 19634)
+++ configure	(copie de travail)
@@ -1873,8 +1873,6 @@
         FFSERVERLDFLAGS=-Wl,-bind_at_load
         objformat="macho"
         enabled x86_64 && objformat="macho64"
-        enabled shared ||
-            { check_cflags -mdynamic-no-pic && add_asflags -mdynamic-no-pic; }
         ;;
     mingw32*)
         if test $target_os = "mingw32ce"; then


diff -r -u ../Python-2.7.9.orig/Lib/ssl.py ./Lib/ssl.py
--- ../Python-2.7.9.orig/Lib/ssl.py	2014-12-10 15:59:40.000000000 +0000
+++ ./Lib/ssl.py	2015-12-18 14:09:51.218138658 +0000
@@ -106,7 +106,12 @@
 from _ssl import (VERIFY_DEFAULT, VERIFY_CRL_CHECK_LEAF, VERIFY_CRL_CHECK_CHAIN,
     VERIFY_X509_STRICT)
 from _ssl import txt2obj as _txt2obj, nid2obj as _nid2obj
-from _ssl import RAND_status, RAND_egd, RAND_add
+from _ssl import RAND_status, RAND_add
+try:
+    from _ssl import RAND_egd
+except ImportError:
+    # LibreSSL does not provide RAND_egd
+    pass

 def _import_symbols(prefix):
     for n in dir(_ssl):


Add patch for building PyQt4 with newer sip

diff --git a/configure-ng.py b/configure-ng.py
index f60ae58..86db0a6 100644
--- a/configure-ng.py
+++ b/configure-ng.py
@@ -2217,7 +2217,7 @@ def generate_sip_module_code(target_config, verbose, no_timestamp, parts, tracin
     mk_clean_dir(mname)

     # Build the SIP command line.
-    argv = [quote(target_config.sip), '-w', '-f', sip_flags]
+    argv = [quote(target_config.sip), '-w', sip_flags]

     # Make sure any unknown Qt version gets treated as the latest Qt v4.
     argv.append('-B')


Patch for adding more tcp_info options This patch adds support for 4 of the unimplemented TCP_INFO options in packetdrill which can be used as assertions during run-time. However, these options along with some others are not supported in the kernel code and hence need to be implemented.

From 4cc3cf84189c5fafc527469816be552b0f90fa05 Mon Sep 17 00:00:00 2001
From: Shivansh Rai <shivanshrai84@gmail.com>
Date: Sat, 16 Jul 2016 01:44:24 +0530
Subject: [PATCH] Add more options for tcp_info

---
 gtests/net/packetdrill/code.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gtests/net/packetdrill/code.c b/gtests/net/packetdrill/code.c
index e04a9ec..075012f 100644
--- a/gtests/net/packetdrill/code.c
+++ b/gtests/net/packetdrill/code.c
@@ -197,6 +197,10 @@ static void write_tcp_info(struct code_state *code,
 	emit_var(code, "tcpi_snd_ssthresh",	info->tcpi_snd_ssthresh);
 	emit_var(code, "tcpi_snd_cwnd",		info->tcpi_snd_cwnd);
 	emit_var(code, "tcpi_rcv_space",	info->tcpi_rcv_space);
+	emit_var(code, "tcpi_sacked",     info->__tcpi_sacked);
+	emit_var(code, "tcpi_unacked",    info->__tcpi_unacked);
+	emit_var(code, "tcpi_retransmits",    info->__tcpi_retransmits);
+	emit_var(code, "tcpi_retrans",    info->__tcpi_retrans);

 	/* FreeBSD extensions to tcp_info. */
 	emit_var(code, "tcpi_snd_wnd",		info->tcpi_snd_wnd);
--
2.7.2


Add patch 021 for overdue_cronjob to only send one type of message

021-cronjob-send-only-one-message-per-notice.patch

This makes sure only one message_transport_type is used when
running the overdue notices cronjob
The code already checks if email or sms exists before running

old mode 100644
new mode 100755
index 7504c7a..2e7346f
--- a/tmp/overdue.pl
+++ b/usr/share/koha/bin/cronjobs/overdue_notices.pl
@@ -770,7 +770,7 @@ END_SQL
                             ) unless $test_mode;
                             # A print notice should be sent only once per overdue level.
                             # Without this check, a print could be sent twice or more if the library checks sms and email and print and the patron has no email or sms number.
-                            $print_sent = 1 if $effective_mtt eq 'print';
+                            $print_sent = 1;
                         }
                     }
                 }


Patch for pkgconfig to allow overinstallation.

diff -ruN pkgconfig-0.28/Makefile.am pkgconfig-0.28-new/Makefile.am
--- pkgconfig-0.28/Makefile.am	2013-01-23 12:07:39.000000000 -0700
+++ pkgconfig-0.28-new/Makefile.am	2015-04-25 07:19:13.000000000 -0600
@@ -39,7 +39,7 @@
 if HOST_TOOL
 host_tool = $(host)-pkg-config$(EXEEXT)
 install-exec-hook:
-	cd $(DESTDIR)$(bindir) && $(LN) pkg-config$(EXEEXT) $(host_tool)
+	cd $(DESTDIR)$(bindir) && $(LN) -f pkg-config$(EXEEXT) $(host_tool)
 uninstall-hook:
 	cd $(DESTDIR)$(bindir) && rm -f $(host_tool)
 endif


Add patch to allow showing transparent window

diff --git a/ui/gl/gpu_switching_manager.cc b/ui/gl/gpu_switching_manager.cc
index a178509..71995f9 100644
--- a/ui/gl/gpu_switching_manager.cc
+++ b/ui/gl/gpu_switching_manager.cc
@@ -16,6 +16,12 @@

 namespace ui {

+namespace {
+
+bool g_use_transparent = false;
+
+} // namespace
+
 struct GpuSwitchingManager::PlatformSpecific {
 #if defined(OS_MACOSX)
   CGLPixelFormatObj discrete_pixel_format;
@@ -27,6 +33,16 @@ GpuSwitchingManager* GpuSwitchingManager::GetInstance() {
   return base::Singleton<GpuSwitchingManager>::get();
 }

+// static
+void GpuSwitchingManager::SetTransparent(bool transparent) {
+  g_use_transparent = transparent;
+}
+
+// static
+bool GpuSwitchingManager::UseTransparent() {
+  return g_use_transparent;
+}
+
 GpuSwitchingManager::GpuSwitchingManager()
     : gpu_switching_option_(gfx::PreferIntegratedGpu),
       gpu_switching_option_set_(false),
diff --git a/ui/gl/gpu_switching_manager.h b/ui/gl/gpu_switching_manager.h
index 6327798..9b3caa0 100644
--- a/ui/gl/gpu_switching_manager.h
+++ b/ui/gl/gpu_switching_manager.h
@@ -20,6 +20,9 @@ class GL_EXPORT GpuSwitchingManager {
   // Getter for the singleton. This will return NULL on failure.
   static GpuSwitchingManager* GetInstance();

+  static void SetTransparent(bool transparent);
+  static bool UseTransparent();
+
   // Set the switching option to PreferIntegratedGpu.
   void ForceUseOfIntegratedGpu();
   // Set the switching option to PreferDiscreteGpu; switch to discrete GPU


Revert "mb2hal: remove superfluous patch file"

From ebaefba238af22e4f30febc61175c7f9d3211cb4 Mon Sep 17 00:00:00 2001
From: Les Newell <les.newell@fastmail.co.uk>
Date: Mon, 13 Aug 2012 11:15:19 +0100
Subject: [PATCH] A number of bug fixes for modbus:
Not calculating packet size for function code 2 (Read discrete inputs)
sending incorrect data when forcing multiple coils using more than one byte.

---
 src/hal/user_comps/modbus.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/hal/user_comps/modbus.c b/src/hal/user_comps/modbus.c
index ed213c2..fe9cf37 100644
--- a/src/hal/user_comps/modbus.c
+++ b/src/hal/user_comps/modbus.c
@@ -151,7 +151,8 @@ static unsigned int compute_response_size(modbus_param_t *mb_param,
   offset = mb_param->header_length;

   switch (query[offset + 1]) {
-    case 0x01: {
+    case 0x01:
+    case 0x02: {
       /* Header + nb values (code from force_multiple_coils) */
       int coil_count = (query[offset + 4] << 8) | query[offset + 5];
       response_size_computed = 3 +
@@ -784,6 +785,7 @@ int force_multiple_coils(modbus_param_t *mb_param, int slave,
   int coil_check = 0;
   int status;
   int query_ret;
+  int pos = 0;

   unsigned char query[MAX_PACKET_SIZE];

@@ -800,7 +802,6 @@ int force_multiple_coils(modbus_param_t *mb_param, int slave,

   for (i = 0; i < byte_count; i++) {
     int bit;
-    int pos = 0;

     bit = 0x01;
     query[query_size] = 0;
--
1.5.4.3


Add a patch to allow building musl based shared libc for arm arch

From 3e8e7359cf8ae20d3f913d46c3dcee9eb535e094 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause@embedded.rocks>
Date: Mon, 7 Mar 2016 00:04:20 +0100
Subject: [PATCH] musl: opt for dynamic linking for arm arch

---
 src/unix/mod.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/unix/mod.rs b/src/unix/mod.rs
index 0f70834..c9d8a80 100644
--- a/src/unix/mod.rs
+++ b/src/unix/mod.rs
@@ -139,7 +139,7 @@ cfg_if! {
     if #[cfg(not(stdbuild))] {
         // cargo build, don't pull in anything extra as the libstd  dep
         // already pulls in all libs.
-    } else if #[cfg(all(target_env = "musl", not(target_arch = "mips")))] {
+    } else if #[cfg(all(target_env = "musl", not(any(target_arch = "mips", target_arch = "arm"))))] {
         #[link(name = "c", kind = "static")]
         extern {}
     } else if #[cfg(target_os = "emscripten")] {
--
2.7.2


Add patch to prevent render widget from getting hide

diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index 6516e5e..16bbce9 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -181,7 +181,8 @@ RenderWidgetHostImpl::RenderWidgetHostImpl(RenderWidgetHostDelegate* delegate,
                                            RenderProcessHost* process,
                                            int32_t routing_id,
                                            bool hidden)
-    : renderer_initialized_(false),
+    : disable_hidden_(false),
+      renderer_initialized_(false),
       destroyed_(false),
       delegate_(delegate),
       owner_delegate_(nullptr),
@@ -509,6 +510,9 @@ void RenderWidgetHostImpl::WasHidden() {
   if (is_hidden_)
     return;

+  if (disable_hidden_)
+    return;
+
   if (owner_delegate_)
     owner_delegate_->RenderWidgetWillBeHidden();

diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h
index d5d9d5a..70b4b62 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -111,6 +111,9 @@ class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost,
   // RenderWidgetHostImpl.
   static RenderWidgetHostImpl* From(RenderWidgetHost* rwh);

+  // Electron: Prevents the widget from getting hidden.
+  bool disable_hidden_;
+
   void set_hung_renderer_delay(const base::TimeDelta& delay) {
     hung_renderer_delay_ = delay;
   }


Patch to allow xvidcore to build on Haiku, haven't tried building with nasm install, but it should work.

diff -urN xvidcore/build/generic/configure.in xvidcore-haiku/build/generic/configure.in
--- xvidcore/build/generic/configure.in	2009-02-19 01:51:37.000000000 +0000
+++ xvidcore-haiku/build/generic/configure.in	2009-02-19 01:56:16.000000000 +0000
@@ -221,7 +221,7 @@
 STATIC_EXTENSION=""
 OBJECT_EXTENSION=""
 case "$target_os" in
-     *bsd*|linux*|beos|irix*|solaris*)
+     *bsd*|linux*|beos|*haiku*|irix*|solaris*)
 	AC_MSG_RESULT([.so .a .o])
 	STATIC_EXTENSION="a"
 	SHARED_EXTENSION="so"
@@ -299,7 +299,7 @@
 	   SPECIFIC_LDFLAGS="-r -keep_private_externs -nostdlib && \$(CC) \$(LDFLAGS) \$(PRE_SHARED_LIB) -o libxvidcore.\$(SHARED_EXTENSION).\$(API_MAJOR) -bundle -flat_namespace -undefined suppress"
 	fi
 	;;
-     beos)
+     beos | *haiku*)
 	AC_MSG_RESULT([ok])
 	STATIC_LIB="libxvidcore.\$(STATIC_EXTENSION)"
 	SHARED_LIB="libxvidcore.\$(SHARED_EXTENSION)"
@@ -379,7 +379,7 @@
    if test "$found_nasm_comp_prog" = "yes" ; then
        AC_MSG_CHECKING([for asm object format])
        case "$target_os" in
-           *bsd*|linux*|beos|irix*|solaris*)
+           *bsd*|linux*|beos|irix*|solaris*|*haiku*)
                if test "$ARCHITECTURE" = "X86_64" ; then
                    AC_MSG_RESULT([elf64])
                    NASM_FORMAT="elf64"


--- a/src/mpi/CMakeLists.txt
+++ b/src/mpi/CMakeLists.txt
@@ -37,7 +37,7 @@ if (USE_LOCAL_MPI)
    set(LOCAL_MPI_PATH "UNDEFINED_FOR_THIS_PLATFORM")
    set(MPICH2_SUFFIX "")

-   if(${DISTRO_NAME_VER} MATCHES "Ubuntu")
+   if(${DISTRO_NAME_VER} MATCHES "Ubuntu" OR ${DISTRO_NAME_VER} MATCHES "Debian")
        set(LOCAL_MPI_PATH "/opt/scidb/${SCIDB_VERSION_MAJOR}.${SCIDB_VERSION_MINOR}/3rdparty/mpich2")
        set(MPI_INCLUDE "-I ${LOCAL_MPI_PATH}/include/mpich2")
        set(MPICH2_SUFFIX ".mpich2")


diff --git a/lib/snapshot/BUILD.gn b/lib/snapshot/BUILD.gn
index ef06063a2..fa18ebfbf 100644
--- a/lib/snapshot/BUILD.gn
+++ b/lib/snapshot/BUILD.gn
@@ -53,9 +53,7 @@ compiled_action("generate_snapshot_bin") {
   ]

   args = [
-    "--strong",
     "--sync-async",
-    "--reify-generic-functions",
     "--snapshot_kind=core",
     "--enable_mirrors=false",
     "--vm_snapshot_data=" + rebase_path(vm_snapshot_data),


Modify oclif help to match balena conventions

diff --git a/node_modules/@oclif/plugin-help/lib/command.js b/node_modules/@oclif/plugin-help/lib/command.js
index ab72c1b..75078d5 100644
--- a/node_modules/@oclif/plugin-help/lib/command.js
+++ b/node_modules/@oclif/plugin-help/lib/command.js
@@ -86,7 +86,7 @@ class CommandHelp {
         if (!args.filter(a => a.description).length)
             return;
         let body = list_1.renderList(args.map(a => {
-            const name = a.name.toUpperCase();
+            const name = a.required ? `<${a.name}>` : `[${a.name}]`;
             let description = a.description || '';
             if (a.default)
                 description = `[default: ${a.default}] ${description}`;
@@ -130,8 +130,7 @@ class CommandHelp {
                     value = flag.options.join('|');
                 }
                 if (!value.includes('|'))
-                    value = underline(value);
-                left += `=${value}`;
+                left += ` <${value}>`;
             }
             let right = flag.description || '';
             if (flag.type === 'option' && flag.default) {
diff --git a/node_modules/@oclif/plugin-help/lib/index.js b/node_modules/@oclif/plugin-help/lib/index.js
index 43acf30..bebefa6 100644
--- a/node_modules/@oclif/plugin-help/lib/index.js
+++ b/node_modules/@oclif/plugin-help/lib/index.js
@@ -74,7 +74,8 @@ class Help {
             console.log(title + '\n');
         console.log(this.command(command));
         console.log();
-        if (topics.length) {
+        const SUPPRESS_SUBTOPICS = true;
+        if (topics.length && !SUPPRESS_SUBTOPICS) {
             console.log(this.topics(topics));
             console.log();
         }


Patch : For referrence only. Not added to SRC_URI

+++ helloworld.c
--- ../helloworld.c
@@ -2,7 +2,7 @@
 int main(int argc, char **argv)
 {
-    printf("Hello World!\n");
+    printf("Hello World! From Patch !\n");

     return 0;
 }


Allow forge-type spawn-eggs to spawn child entities when clicking EntityAgeable

--- ../src-base/minecraft/net/minecraft/entity/EntityAgeable.java
+++ ../src-work/minecraft/net/minecraft/entity/EntityAgeable.java
@@ -31,7 +31,7 @@
         {
             if (!this.field_70170_p.field_72995_K)
             {
-                Class <? extends Entity > oclass = EntityList.func_90035_a(itemstack.func_77960_j());
+                Class <? extends Entity > oclass = EntityList.field_75625_b.get(net.minecraft.item.ItemMonsterPlacer.getEntityName(itemstack));

                 if (oclass != null && this.getClass() == oclass)
                 {


From 46104342420da83beb89a5ae83b5b27a6fe05f29 Mon Sep 17 00:00:00 2001
From: Kondapally Kalyan <kalyan.kondapally@intel.com>
Date: Sun, 25 May 2014 21:38:33 +0300
Subject: [PATCH] Temporary patch to fix linking issue.

---
 .../views/app_list/linux/app_list_service_linux.cc |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/chrome/browser/ui/views/app_list/linux/app_list_service_linux.cc b/chrome/browser/ui/views/app_list/linux/app_list_service_linux.cc
index e6df273..e49ba00 100644
--- a/chrome/browser/ui/views/app_list/linux/app_list_service_linux.cc
+++ b/chrome/browser/ui/views/app_list/linux/app_list_service_linux.cc
@@ -84,14 +84,18 @@ void AppListServiceLinux::MoveNearCursor(app_list::AppListView* view) {

 // static
 AppListService* AppListService::Get(chrome::HostDesktopType desktop_type) {
+#if defined(USE_ASH)
   if (desktop_type == chrome::HOST_DESKTOP_TYPE_ASH)
     return AppListServiceAsh::GetInstance();
+#endif

   return AppListServiceLinux::GetInstance();
 }

 // static
 void AppListService::InitAll(Profile* initial_profile) {
+#if defined(USE_ASH)
   AppListServiceAsh::GetInstance()->Init(initial_profile);
+#endif
   AppListServiceLinux::GetInstance()->Init(initial_profile);
 }
--
1.7.9.5


Store the patch that sends XSRF token also with the form data in jquery formbuilder plugin.

diff --git a/app/jquery/jquery.formbuilder.js b/app/jquery/jquery.formbuilder.js
--- a/app/jquery/jquery.formbuilder.js
+++ b/app/jquery/jquery.formbuilder.js
@@ -381,7 +381,7 @@
 					$.ajax({
 						type: "POST",
 						url: opts.save_url,
-						data: $(ul_obj).serializeFormList(),
+						data: {form: $(ul_obj).serializeFormList(), xsrf_token: window.xsrf_token},
 						success: function(xml){  }
 					});
 				}


Patch to add Haiku as a target platform for lua

diff -urN lua-5.1.3/Makefile lua-5.1.3-haiku/Makefile
--- lua-5.1.3/Makefile	2008-01-17 17:53:37.000000000 +0000
+++ lua-5.1.3-haiku/Makefile	2008-07-24 20:31:06.000000000 +0000
@@ -33,7 +33,7 @@
 # == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========

 # Convenience platforms targets.
-PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
+PLATS= aix ansi bsd freebsd generic haiku linux macosx mingw posix solaris

 # What to install.
 TO_BIN= lua luac
diff -urN lua-5.1.3/src/Makefile lua-5.1.3-haiku/src/Makefile
--- lua-5.1.3/src/Makefile	2008-01-19 19:37:58.000000000 +0000
+++ lua-5.1.3-haiku/src/Makefile	2008-07-24 20:19:12.000000000 +0000
@@ -20,7 +20,7 @@

 # == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========

-PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
+PLATS= aix ansi bsd freebsd generic haiku linux macosx mingw posix solaris

 LUA_A=	liblua.a
 CORE_O=	lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o \
@@ -95,6 +95,9 @@
 generic:
 	$(MAKE) all MYCFLAGS=

+haiku:
+	$(MAKE) all MYCFLAGS="-DLUA_ANSI" LIBS=$(MYLIBS)
+
 linux:
 	$(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses"


Add patch file for to fix bug in LiveOSC

74,83c74,85
<     if version > 7:
<        # 10.5
<         try:
<             file = open("/usr/lib/python2.5/string.pyc")
<         except IOError:
<             sys.path.append("/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5")
<             import socket_live8 as socket
<         else:
<             sys.path.append("/usr/lib/python2.5")
<             import socket
---
>     import socket
>
>     # if version > 7:
>     #    # 10.5
>     #     try:
>     #         file = open("/usr/lib/python2.5/string.pyc")
>     #     except IOError:
>     #         sys.path.append("/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5")
>     #         import socket_live8 as socket
>     #     else:
>     #         sys.path.append("/usr/lib/python2.5")
>     #         import socket


--- src/Terraria\Terraria.ID\MountID.cs
+++ src/tModLoader\Terraria.ID\MountID.cs
@@ -16,5 +_,21 @@
 		}

 		public static int Count = 15;
+
+		public const int Rudolph = 0;
+		public const int Bunny = 1;
+		public const int Pigron = 2;
+		public const int Slime = 3;
+		public const int Turtle = 4;
+		public const int Bee = 5;
+		public const int MineCart = 6;
+		public const int Ufo = 7;
+		public const int DrillContainmentUnit = 8;
+		public const int Scutlix = 9;
+		public const int Unicorn = 10;
+		public const int MineCartMech = 11;
+		public const int CuteFishron = 12;
+		public const int MineCartWood = 13;
+		public const int Basilisk = 14;
 	}
 }


Add potential devstack change to fix sudo setgid problem

From 7ae75179963246c82f554c83efdaf35f6be53efc Mon Sep 17 00:00:00 2001
From: Joshua Harlow <jxharlow@godaddy.com>
Date: Thu, 22 Sep 2016 17:18:14 -0700
Subject: [PATCH] If group provided ensure to elevate perms to call setgid

Change-Id: If8e0f2beeec81c1f05326542c196638e10ea7825
---
 functions-common | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/functions-common b/functions-common
index 04f7c0f..6e166c5 100644
--- a/functions-common
+++ b/functions-common
@@ -1347,7 +1347,7 @@ function _run_process {
     # Run under ``setsid`` to force the process to become a session and group leader.
     # The pid saved can be used with pkill -g to get the entire process group.
     if [[ -n "$group" ]]; then
-        setsid sg $group "$command" & echo $! >$SERVICE_DIR/$SCREEN_NAME/$service.pid
+        sudo setsid sg $group "$command" & echo $! >$SERVICE_DIR/$SCREEN_NAME/$service.pid
     else
         setsid $command & echo $! >$SERVICE_DIR/$SCREEN_NAME/$service.pid
     fi
--
2.7.4 (Apple Git-66)


Include 'preferLocal: false' option when using execa

diff --git a/node_modules/os-locale/index.js b/node_modules/os-locale/index.js
index 1ada7a4..1304aa1 100644
--- a/node_modules/os-locale/index.js
+++ b/node_modules/os-locale/index.js
@@ -25,11 +25,11 @@ function getLocale(str) {
 }

 function getAppleLocale() {
-	return execa.stdout('defaults', ['read', '-g', 'AppleLocale']);
+	return execa.stdout('defaults', ['read', '-g', 'AppleLocale'], { preferLocal: false });
 }

 function getAppleLocaleSync() {
-	return execa.sync('defaults', ['read', '-g', 'AppleLocale']).stdout;
+	return execa.sync('defaults', ['read', '-g', 'AppleLocale'], { preferLocal: false }).stdout;
 }

 function getUnixLocale() {
@@ -37,7 +37,8 @@ function getUnixLocale() {
 		return getAppleLocale();
 	}

-	return execa.stdout('locale')
+	const args = null;
+	return execa.stdout('locale', args, { preferLocal: false })
 		.then(stdout => getLocale(parseLocale(stdout)));
 }

@@ -50,7 +51,7 @@ function getUnixLocaleSync() {
 }

 function getWinLocale() {
-	return execa.stdout('wmic', ['os', 'get', 'locale'])
+	return execa.stdout('wmic', ['os', 'get', 'locale'], { preferLocal: false })
 		.then(stdout => {
 			const lcidCode = parseInt(stdout.replace('Locale', ''), 16);
 			return lcid.from(lcidCode);
@@ -58,7 +59,7 @@ function getWinLocale() {
 }

 function getWinLocaleSync() {
-	const stdout = execa.sync('wmic', ['os', 'get', 'locale']).stdout;
+	const stdout = execa.sync('wmic', ['os', 'get', 'locale'], { preferLocal: false }).stdout;
 	const lcidCode = parseInt(stdout.replace('Locale', ''), 16);
 	return lcid.from(lcidCode);
 }


Allow running script in willReleaseScriptContext

diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
index 9808948..856c318 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
@@ -336,10 +336,6 @@ void LocalFrame::detach(FrameDetachType type)
     m_loader.stopAllLoaders();
     m_loader.detach();
     document()->detach();
-    // This is the earliest that scripting can be disabled:
-    // - FrameLoader::detach() can fire XHR abort events
-    // - Document::detach()'s deferred widget updates can run script.
-    ScriptForbiddenScope forbidScript;
     m_loader.clear();
     if (!client())
         return;
@@ -348,6 +344,7 @@ void LocalFrame::detach(FrameDetachType type)
     // Notify ScriptController that the frame is closing, since its cleanup ends up calling
     // back to FrameLoaderClient via WindowProxy.
     script().clearForClose();
+    ScriptForbiddenScope forbidScript;
     setView(nullptr);
     willDetachFrameHost();
     InspectorInstrumentation::frameDetachedFromParent(this);


Add a sample patch for documentation purposes

diff -ur official/framework/main.php gambit/framework/main.php
--- official/framework/main.php	2016-07-14 16:03:28.493731011 +0300
+++ gambit/framework/main.php	2016-07-14 16:14:23.069065061 +0300
@@ -13,6 +13,7 @@
  * @package framework
  * @subpackage core
  */
+/* THE GAMBIT CREW ARE AWESOME */

 if (version_compare(phpversion(), '5.3.3', '<')) {
 	header("HTTP/1.1 500 Server Error");


Mark Vaile is recorded in the Hansard as voting after he left parliament! So, assuming that the Hansard is wrong.


Fix UTF-7 XSS attacks due to browser charset auto-detection.

Index: twisted/web2/error.py
===================================================================
--- twisted/web2/error.py	(revision 26969)
+++ twisted/web2/error.py	(working copy)
@@ -92,7 +92,7 @@
             "
%s
%s") % (
         response.code, title, title, message)

-    response.headers.setHeader("content-type", http_headers.MimeType('text', 'html'))
+    response.headers.setHeader("content-type", http_headers.MimeType('text', 'html', {'charset':'utf-8'}))
     response.stream = stream.MemoryStream(body)

     return response