This is an automated email from the git hooks/post-receive script.

seamlik-guest pushed a commit to branch master
in repository bnd.

commit 1eb7db79c51df343f1eb854160df7908360452a0
Author: 殷啟聰 | Kai-Chung Yan <seamli...@gmail.com>
Date:   Sat Mar 3 13:44:07 2018 +0800

    New relocate-data-directory.patch: Bypass the error caused by creating 
"~/.bnd" under root with fakeroot
---
 debian/patches/relocate-data-directory.patch | 19 +++++++++++++++++++
 debian/patches/series                        |  1 +
 2 files changed, 20 insertions(+)

diff --git a/debian/patches/relocate-data-directory.patch 
b/debian/patches/relocate-data-directory.patch
new file mode 100644
index 0000000..00f8355
--- /dev/null
+++ b/debian/patches/relocate-data-directory.patch
@@ -0,0 +1,19 @@
+Description: Relocate Data Directory
+ "bnd" hardcodes its data directory to "~/.bnd" which causes problems when 
building in pbuilder.
+ Fakeroot makes the program think it is root but actually it has no permission 
to create such
+ directory under "/root". This workaround relocates parts of the data 
directory to "/tmp/.bnd".
+Author: Kai-Chung Yan (殷啟聰) <seamli...@gmail.com>
+Bug: https://github.com/bndtools/bnd/issues/2327
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/biz.aQute.bndlib/src/aQute/bnd/http/HttpClient.java
++++ b/biz.aQute.bndlib/src/aQute/bnd/http/HttpClient.java
+@@ -82,7 +82,7 @@
+       private ThreadLocal<PasswordAuthentication>     passwordAuthentication  
= new ThreadLocal<>();
+       private boolean                                                         
inited;
+       private static JSONCodec                                        codec   
                                = new JSONCodec();
+-      private URLCache                                                        
cache                                   = new 
URLCache(IO.getFile("~/.bnd/urlcache"));
++      private URLCache                                                        
cache                                   = new 
URLCache(IO.getFile("/tmp/.bnd/urlcache"));
+       private Registry                                                        
registry                                = null;
+       private Reporter                                                        
reporter;
+       private volatile AtomicBoolean                          offline;
diff --git a/debian/patches/series b/debian/patches/series
index 60deb51..ca29c16 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@ use-bootstrapped-gradle-plugin.patch
 reproducible-timestamps.patch
 reproducible-packages-list.patch
 build-scripts.patch
+relocate-data-directory.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-java/bnd.git

_______________________________________________
pkg-java-commits mailing list
pkg-java-comm...@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

Reply via email to