[jhbuild/desrt/master: 28/28] scripts: add a debian-mkequivs script
- From: Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild/desrt/master: 28/28] scripts: add a debian-mkequivs script
- Date: Sun, 4 Jan 2015 01:04:17 +0000 (UTC)
commit 75b3d773a99d4c6fb36dbb54243dd77505a5ed32
Author: Ryan Lortie <desrt desrt ca>
Date: Sat Jan 3 19:58:43 2015 -0500
scripts: add a debian-mkequivs script
Add a neat hack to generate a .deb file that depends on sysdeps of
jhbuild.
This has at least two uses:
- generating a package that people can download and install with
gdebi
in order to get all build dependencies satisfied
- generating a package that can be marked as a keeper in debfoster
to
keep a large number of jhbuild-required dependencies installed
without too much additional noise
https://bugzilla.gnome.org/show_bug.cgi?id=742251
scripts/update-debian-sysdeps.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/scripts/update-debian-sysdeps.py b/scripts/update-debian-sysdeps.py
index 7c3a679..c5d04f3 100755
--- a/scripts/update-debian-sysdeps.py
+++ b/scripts/update-debian-sysdeps.py
@@ -39,7 +39,8 @@ path_paths = ['/usr/bin', '/usr/sbin', '/bin', '/sbin']
python2_paths = ['/usr/lib/python2.7/dist-packages']
# things that we know we won't find, either because we're not clever
-# enough (xml) or because of alternatives (not listed in apt-file)
+# enough (xml), because of alternatives (not listed in apt-file), or
+# because they are not available and not required on Debian
hints = {
'xml:http://docbook.sourceforge.net/release/xsl/current/': ['docbook-xsl'],
'path:cc': ['gcc', 'clang'],
@@ -47,6 +48,7 @@ hints = {
'path:automake': ['automake'],
'path:bogofilter': ['bogofilter'],
'path:ruby': ['ruby'], # needed for wheezy
+ 'pkgconfig:bdw-gc-threaded': [], # FreeBSD-only
'' : []
}
@@ -117,7 +119,8 @@ def handle_distro(name, filemap, log = sys.stderr):
for key in sorted(keys):
if key not in result:
if key in hints:
- result[key] = hints[key]
+ if len(hints[key]):
+ result[key] = hints[key]
else:
log.write("# warning: {}: unable to locate dependency '{}'\n".format(name, key))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]