Your message dated Sat, 20 Sep 2025 20:34:03 +0000 with message-id <E1v04HT-005MWZ-0g@fasolo.debian.org> and subject line Bug#757386: fixed in cdbs 0.4.178 has caused the Debian Bug report #757386, regarding cdbs: java Gradle support to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 757386: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=757386 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: cdbs: Gradle support
- From: Emmanuel Bourg <ebourg@apache.org>
- Date: Thu, 07 Aug 2014 17:38:07 +0200
- Message-id: <53E39D5F.6010201@apache.org>
Package: cdbs Severity: wishlist Tags: patch Hi, Gradle [1] is a build tool increasingly used by Java projects, but CDBS doesn't support it yet. I implemented the Gradle support by deriving the .mk files for Ant: https://github.com/ebourg/cdbs/commit/0e15474 The following variables are available to tweak the build: GRADLE_ARGS DEB_GRADLE_BUILD_TASK DEB_GRADLE_INSTALL_TASK DEB_GRADLE_CHECK_TASK DEB_GRADLE_CLEAN_TASK DEB_GRADLE_BUILDFILE DEB_GRADLE_PROPERTYFILE Could you please consider merging this patch? Thank you, Emmanuel Bourg [1] http://www.gradle.orgFrom 0e154745d988209b2cb3fc7572b0c4a083a87515 Mon Sep 17 00:00:00 2001 From: Emmanuel Bourg <ebourg@apache.org> Date: Thu, 7 Aug 2014 17:13:08 +0200 Subject: [PATCH] Added Gradle support --- 1/class/gradle-vars.mk.in | 56 +++++++++++++++++++++++++++++++++++++++++++++++ 1/class/gradle.mk.in | 55 ++++++++++++++++++++++++++++++++++++++++++++++ Makefile.in | 2 ++ 3 files changed, 113 insertions(+) create mode 100644 1/class/gradle-vars.mk.in create mode 100644 1/class/gradle.mk.in diff --git a/1/class/gradle-vars.mk.in b/1/class/gradle-vars.mk.in new file mode 100644 index 0000000..d0597bd --- /dev/null +++ b/1/class/gradle-vars.mk.in @@ -0,0 +1,56 @@ +# -*- mode: makefile; coding: utf-8 -*- +# Copyright © 2003 Stefan Gybas <sgybas@debian.org> +# Description: Defines useful variables for packages which use Gradle +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2, or (at +# your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +#PATH_RULES# + +ifndef _cdbs_class_gradle_vars +_cdbs_class_gradle_vars = 1 + +# Gradle home directory. Doesn't need to be changed except when using +# nonstandard Gradle installations. +GRADLE_HOME ?= /usr/share/gradle + +# The home directory of the Java Runtime Environment (JRE) or Java Development +# Kit (JDK). You can either directly set JAVA_HOME in debian/rules or set +# JAVA_HOME_DIRS to multiple possible home directories. The first existing +# directory from this list is used for JAVA_HOME. You can also override +# JAVACMD in case you don't want to use the default JAVA_HOME/bin/java. +JAVA_HOME ?= $(shell for jh in $(JAVA_HOME_DIRS); do if [ -x "$$jh/bin/java" ]; then \ + echo $${jh}; exit 0; fi; done) +JAVACMD ?= $(JAVA_HOME)/bin/java + +# Property file for Gradle, defaults to debian/gradle.properties if it exists. +# You may define additional properties that are referenced from build.gradle so +# you don't have to modify upstream's build.gradle. +DEB_GRADLE_PROPERTYFILE ?= $(shell test -f $(CURDIR)/debian/gradle.properties && echo $(CURDIR)/debian/gradle.properties) + +# You can specify additional arguments in GRADLE_ARGS +DEB_GRADLE_INVOKE ?= cd $(DEB_BUILDDIR) && gradle --info --offline --stacktrace --refresh-dependencies --gradle-user-home $(CURDIR)/.gradle \ + $(if $(GRADLE_ARGS),$(GRADLE_ARGS),) \ + $(if $(DEB_GRADLE_BUILDFILE),--build-file $(DEB_GRADLE_BUILDFILE),) \ + $(if $(DEB_GRADLE_PROPERTYFILE),--settings-file $(DEB_GRADLE_PROPERTYFILE),) + +# Targets to invoke for building, installing, testing and cleaning up. +# Building uses the default target from build.xml, installing and testing is +# only called if the corresponding variable is set. You can also specify +# multiple targets for each step. +#DEB_GRADLE_BUILD_TASK = +#DEB_GRADLE_INSTALL_TASK = +#DEB_GRADLE_CHECK_TASK = +DEB_GRADLE_CLEAN_TASK ?= clean + +endif diff --git a/1/class/gradle.mk.in b/1/class/gradle.mk.in new file mode 100644 index 0000000..bb558a9 --- /dev/null +++ b/1/class/gradle.mk.in @@ -0,0 +1,55 @@ +# -*- mode: makefile; coding: utf-8 -*- +# Copyright © 2003 Stefan Gybas <sgybas@debian.org> +# Description: Builds and cleans packages which have an build.gradle file +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2, or (at +# your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +#PATH_RULES# + +ifndef _cdbs_class_gradle +_cdbs_class_gradle = 1 + +include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix) +include $(_cdbs_class_path)/gradle-vars.mk$(_cdbs_makefile_suffix) + +testsanity:: + @if ! test -x "$(firstword $(JAVACMD))"; then \ + echo "You must specify a valid JAVA_HOME or JAVACMD!"; \ + exit 1; \ + fi + +common-build-arch common-build-indep:: debian/stamp-gradle-build +debian/stamp-gradle-build: + $(DEB_GRADLE_INVOKE) $(DEB_GRADLE_BUILD_TASK) + touch debian/stamp-gradle-build + +clean:: + -$(DEB_GRADLE_INVOKE) $(DEB_GRADLE_CLEAN_TASK) + rm -f debian/stamp-gradle-build + +common-install-arch common-install-indep:: common-install-impl +common-install-impl:: + $(if $(DEB_GRADLE_INSTALL_TASK),$(DEB_GRADLE_INVOKE) $(DEB_GRADLE_INSTALL_TASK),@echo "DEB_GRADLE_INSTALL_TASK unset, skipping default gradle.mk common-install target") + +ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) +common-build-arch common-build-indep:: debian/stamp-gradle-check +debian/stamp-gradle-check: debian/stamp-gradle-build + $(if $(DEB_GRADLE_CHECK_TASK),$(DEB_GRADLE_INVOKE) $(DEB_GRADLE_CHECK_TASK),@echo "DEB_GRADLE_CHECK_TASK unset, not running checks") + $(if $(DEB_GRADLE_CHECK_TASK),touch $@) + +clean:: + $(if $(DEB_GRADLE_CHECK_TASK),rm -f debian/stamp-gradle-check) +endif + +endif diff --git a/Makefile.in b/Makefile.in index 0a01457..65218ee 100644 --- a/Makefile.in +++ b/Makefile.in @@ -291,6 +291,8 @@ all_mk_files = 1/rules/buildvars.mk \ 1/class/cmake.mk \ 1/class/docbookxml.mk \ 1/class/gnome.mk \ + 1/class/gradle-vars.mk \ + 1/class/gradle.mk \ 1/class/kde.mk \ 1/class/langcore.mk \ 1/class/makefile-vars.mk \ -- 2.0.3Attachment: signature.asc
Description: OpenPGP digital signature
--- End Message ---
--- Begin Message ---
- To: 757386-close@bugs.debian.org
- Subject: Bug#757386: fixed in cdbs 0.4.178
- From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
- Date: Sat, 20 Sep 2025 20:34:03 +0000
- Message-id: <E1v04HT-005MWZ-0g@fasolo.debian.org>
- Reply-to: Alexandre Detiste <tchet@debian.org>
Source: cdbs Source-Version: 0.4.178 Done: Alexandre Detiste <tchet@debian.org> We believe that the bug you reported is fixed in the latest version of cdbs, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 757386@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Alexandre Detiste <tchet@debian.org> (supplier of updated cdbs package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Sat, 20 Sep 2025 21:50:17 +0200 Source: cdbs Architecture: source Version: 0.4.178 Distribution: unstable Urgency: medium Maintainer: Debian QA Group <packages@qa.debian.org> Changed-By: Alexandre Detiste <tchet@debian.org> Closes: 420287 506602 757386 Changes: cdbs (0.4.178) unstable; urgency=medium . * QA upload. * Drop unused ant.mk (java) (LP: #408363) (Closes: #420287, #506602, #757386) * Drop build-depencies "lzma" & "sharutils" * Remove unused scour integration Checksums-Sha1: 2be0e3538a52c1bc443be78a95c27d06231b7ead 1536 cdbs_0.4.178.dsc e2c1a081dbbc3e2e552a6e6518ed8374a7d642e6 174424 cdbs_0.4.178.tar.xz 1b3dd5cf5f9d7ce5eada5cfc349c680fb071273e 5912 cdbs_0.4.178_source.buildinfo Checksums-Sha256: 4ceb6fdfd1bf359b5befd6f0abe84111e9413d77c83d27791dbfe1880671bec1 1536 cdbs_0.4.178.dsc 40bededc3968c697dbe8ee48442adf9b85dc8c6370163ad84200e466a48f8104 174424 cdbs_0.4.178.tar.xz 13983854c6b176e5fb94be8b14657240c726e8be9bb9f9a2b319ff72488fa53e 5912 cdbs_0.4.178_source.buildinfo Files: 9d889c9d09b09138626917f3a62f065a 1536 devel optional cdbs_0.4.178.dsc c4a4e9c65eb65523997b6076830002ac 174424 devel optional cdbs_0.4.178.tar.xz 6fbeff8011a9aa8bbcb4d8de8fa05899 5912 devel optional cdbs_0.4.178_source.buildinfo -----BEGIN PGP SIGNATURE----- iQJFBAEBCgAvFiEEj23hBDd/OxHnQXSHMfMURUShdBoFAmjPBtsRHHRjaGV0QGRl Ymlhbi5vcmcACgkQMfMURUShdBrNxg/+Lo0Fn6zl3oLZDRPWk9HlZvTgYRhH7c97 MJP8Rro/iL+xzXsTAMYirTkuWhk7CrNf60M2KPg2zsDY/hvvCXv3iP9ztvKIT2z/ KSe2Wl+QpzKq+3ObfqVaRKs5kizCALRH6Uep8BcnVkduNK7LgC8qUULg3Ubjvqeo SfAIRwFuOFA1orxde29+bpbppVMdgq89EeRe/hDHCWN+5yyBUlbqoOqJGg7DlqLv yCyyCjdh3kNT2pv1hunbTo5Bn3B7zhlqIvXxIkyMkoUGRVNAozR5a4zBc0/WcTkY dG6VNbHfP0t0Bdxt8SOAI6exDGcrRIA52i9L7Dzmq2+y0KcKhl/U7mv4WEzOTRDG D5c4uFJt7hiY+7GJmR+8MOqHrJGNNUlAqzSkvQaITYegeZPwxcOtmwgojtfytrv7 jAPNCP5qd13pkX4BG+TS9sVe0f7HHA54bfxAqnZIL/bb39vzEK1CRC5M26EADTut J2D/4ucJtR4YhUueJEvEtYKqIR2fVfn2tSiYiTCe0oMHu/BW+Q7RY6Huwn4/mEEW lexdmFoQDi7RhHD3RUaoRdO2pBU3biWSl3LIzk29bjNrapdRRxVnElwGElqoAAbx IqKVzLWLXQdsfBtPhUpRWNlSReEIeu4+fqxq0vUNKJKv/vrvxfF4t+Dy7jj9C8DG T8E79IfYmTk= =stZB -----END PGP SIGNATURE-----Attachment: pgppkm1ktMwHW.pgp
Description: PGP signature
--- End Message ---