From 26c866e6de99f4129d62ecfca552958af0a8ef18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Mon, 4 Jun 2018 09:14:57 +0200 Subject: Use gcc2 zero-length array member diff --git a/bzrlib/diff-delta.c b/bzrlib/diff-delta.c index 0801c96..a0a8dc5 100644 --- a/bzrlib/diff-delta.c +++ b/bzrlib/diff-delta.c @@ -24,6 +24,12 @@ #include #include +#if defined(__GNUC__) && (__GNUC__ < 3) +# define FLEX_ARRAY_LEN 0 +#else +# define FLEX_ARRAY_LEN +#endif + /* maximum hash entry list for the same hash bucket */ #define HASH_LIMIT 64 @@ -151,7 +157,7 @@ struct delta_index { entry */ unsigned int num_entries; /* The total number of entries in this index */ struct index_entry *last_entry; /* Pointer to the last valid entry */ - struct index_entry *hash[]; + struct index_entry *hash[FLEX_ARRAY_LEN]; }; static unsigned int -- 2.16.4 From d69b7dcc6e97abd5d2d8fc37e2cbf81fe636a86d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Mon, 4 Jun 2018 09:17:43 +0200 Subject: Add default certificates location for Haiku diff --git a/bzrlib/transport/http/_urllib2_wrappers.py b/bzrlib/transport/http/_urllib2_wrappers.py index 8eb3fab..fa83cb9 100644 --- a/bzrlib/transport/http/_urllib2_wrappers.py +++ b/bzrlib/transport/http/_urllib2_wrappers.py @@ -95,6 +95,7 @@ _ssl_ca_certs_known_locations = [ u"/usr/local/share/certs/ca-root-nss.crt", # FreeBSD # XXX: Needs checking, can't trust the interweb ;) -- vila 2012-01-25 u'/etc/openssl/certs/ca-certificates.crt', # Solaris + u'/boot/system/data/ssl/CARootCertificates.pem', # Haiku ] -- 2.16.4 From c6f527043bfa756a1d3c3e8f40e1b69854266344 Mon Sep 17 00:00:00 2001 From: begasus Date: Mon, 4 Jun 2018 15:22:11 +0200 Subject: Adjust installation paths for man and locale files diff --git a/setup.py b/setup.py old mode 100755 new mode 100644 index 2f13c00..5a88691 --- a/setup.py +++ b/setup.py @@ -76,7 +76,7 @@ PKG_DATA = {# install files from selftest suite I18N_FILES = [] for filepath in glob.glob("bzrlib/locale/*/LC_MESSAGES/*.mo"): langfile = filepath[len("bzrlib/locale/"):] - targetpath = os.path.dirname(os.path.join("share/locale", langfile)) + targetpath = os.path.dirname(os.path.join("data/locale", langfile)) I18N_FILES.append((targetpath, [filepath])) def get_bzrlib_packages(): @@ -763,7 +763,7 @@ else: if not 'bdist_egg' in sys.argv: # generate and install bzr.1 only with plain install, not the # easy_install one - DATA_FILES = [('man/man1', ['bzr.1'])] + DATA_FILES = [('documentation/man/man1', ['bzr.1'])] DATA_FILES = DATA_FILES + I18N_FILES # std setup -- 2.16.4