Your message dated Tue, 16 Dec 2025 16:19:18 +0000
with message-id <[email protected]>
and subject line Bug#1117953: fixed in apktool 2.7.0+dfsg-7.1
has caused the Debian Bug report #1117953,
regarding FTBFS against snakeyaml 2.5+ds-1 in experimental
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 [email protected]
immediately.)


-- 
1117953: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1117953
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: apktool
Version: 2.7.0+dfsg-7
Severity: important
Tags: ftbfs patch
User: [email protected]
Usertags: ftbfs-snakeyaml2

Dear Maintainer,

apktool 2.7.0+dfsg-7 FTBFS against snakeyaml/2.5+ds-1 currently in
experimental. I solved this with the enclosed patch.

I am planning to upload snakeyaml/2.5+ds-2 to unstable on the 27th of October or a bit later.

Best regards,

--
Pierre
diff -Nru apktool-2.7.0+dfsg/debian/changelog apktool-2.7.0+dfsg/debian/changelog
--- apktool-2.7.0+dfsg/debian/changelog	2024-01-10 20:08:30.000000000 +0100
+++ apktool-2.7.0+dfsg/debian/changelog	2025-10-11 23:26:06.000000000 +0200
@@ -1,3 +1,9 @@
+apktool (2.7.0+dfsg-8) UNRELEASED; urgency=medium
+
+  * Building against snakeyaml 2.x
+
+ -- Pierre Gruet <[email protected]>  Sat, 11 Oct 2025 23:26:06 +0200
+
 apktool (2.7.0+dfsg-7) unstable; urgency=medium
 
   * Team upload.
diff -Nru apktool-2.7.0+dfsg/debian/control apktool-2.7.0+dfsg/debian/control
--- apktool-2.7.0+dfsg/debian/control	2024-01-10 17:41:24.000000000 +0100
+++ apktool-2.7.0+dfsg/debian/control	2025-10-11 23:26:06.000000000 +0200
@@ -21,7 +21,7 @@
  libstringtemplate-java,
  libxmlunit-java,
  libxpp3-java,
- libyaml-snake-java,
+ libyaml-snake-java (>= 2.5+ds),
  proguard-cli
 Standards-Version: 4.5.1
 Rules-Requires-Root: no
@@ -45,7 +45,7 @@
  libstringtemplate-java,
  libxmlunit-java,
  libxpp3-java,
- libyaml-snake-java,
+ libyaml-snake-java (>= 2.5+ds),
  ${misc:Depends}
 Recommends: ${apktool:Recommends}
 Description: tool for reverse engineering Android apk files
diff -Nru apktool-2.7.0+dfsg/debian/maven.rules apktool-2.7.0+dfsg/debian/maven.rules
--- apktool-2.7.0+dfsg/debian/maven.rules	2024-01-10 17:41:24.000000000 +0100
+++ apktool-2.7.0+dfsg/debian/maven.rules	2025-10-11 23:26:04.000000000 +0200
@@ -1,6 +1,6 @@
 
 junit junit * s/.*/4.x/ * *
-org.yaml snakeyaml * s/.*/1.x/ * *
+org.yaml snakeyaml * s/.*/2.x/ * *
 org.apache.commons commons-lang3 * s/.*/debian/ * *
 org.antlr antlr * s/.*/3.x/ * *
 org.antlr antlr-runtime * s/.*/3.x/ * *
diff -Nru apktool-2.7.0+dfsg/debian/patches/build.patch apktool-2.7.0+dfsg/debian/patches/build.patch
--- apktool-2.7.0+dfsg/debian/patches/build.patch	2024-01-10 17:41:24.000000000 +0100
+++ apktool-2.7.0+dfsg/debian/patches/build.patch	2025-10-11 23:26:06.000000000 +0200
@@ -58,7 +58,7 @@
 -                smali          : 'com.github.iBotPeaches.smali:smali:403e90375e',
 +                smali          : 'org.smali:smali:debian',
 +                proguard_gradle: 'net.sf.proguard:proguard-gradle:debian',
-+                snakeyaml      : 'org.yaml:snakeyaml:1.x',
++                snakeyaml      : 'org.yaml:snakeyaml:2.x',
                  xmlpull        : 'xpp3:xpp3:1.1.4c',
                  xmlunit        : 'xmlunit:xmlunit:1.6',
          ]
diff -Nru apktool-2.7.0+dfsg/debian/patches/series apktool-2.7.0+dfsg/debian/patches/series
--- apktool-2.7.0+dfsg/debian/patches/series	2024-01-10 20:08:30.000000000 +0100
+++ apktool-2.7.0+dfsg/debian/patches/series	2025-10-11 23:26:06.000000000 +0200
@@ -3,3 +3,4 @@
 use_system_aapt.patch
 build.patch
 CVE-2024-21633-Prevent-arbitrary-file-writes-with-malicious-resourc.patch
+snakeyaml2.patch
diff -Nru apktool-2.7.0+dfsg/debian/patches/snakeyaml2.patch apktool-2.7.0+dfsg/debian/patches/snakeyaml2.patch
--- apktool-2.7.0+dfsg/debian/patches/snakeyaml2.patch	1970-01-01 01:00:00.000000000 +0100
+++ apktool-2.7.0+dfsg/debian/patches/snakeyaml2.patch	2025-10-11 23:26:06.000000000 +0200
@@ -0,0 +1,40 @@
+Description: constructing Constructor and Representer derivatives with default
+ LoaderOptions and DumperOptions to comply with the interface of snakeyaml 2.x
+Author: Pierre Gruet <[email protected]>
+Forwarded: no
+Last-Update: 2025-10-12
+
+--- a/brut.apktool/apktool-lib/src/main/java/brut/androlib/meta/ClassSafeConstructor.java
++++ b/brut.apktool/apktool-lib/src/main/java/brut/androlib/meta/ClassSafeConstructor.java
+@@ -16,6 +16,7 @@
+  */
+ package brut.androlib.meta;
+ 
++import org.yaml.snakeyaml.LoaderOptions;
+ import org.yaml.snakeyaml.constructor.AbstractConstruct;
+ import org.yaml.snakeyaml.constructor.Constructor;
+ import org.yaml.snakeyaml.error.YAMLException;
+@@ -29,6 +30,7 @@
+     protected final List<Class<?>> allowableClasses = new ArrayList<>();
+ 
+     public ClassSafeConstructor() {
++        super(new LoaderOptions());
+         this.yamlConstructors.put(Tag.STR, new ConstructStringEx());
+ 
+         this.allowableClasses.add(MetaInfo.class);
+--- a/brut.apktool/apktool-lib/src/main/java/brut/androlib/meta/EscapedStringRepresenter.java
++++ b/brut.apktool/apktool-lib/src/main/java/brut/androlib/meta/EscapedStringRepresenter.java
+@@ -16,11 +16,13 @@
+  */
+ package brut.androlib.meta;
+ 
++import org.yaml.snakeyaml.DumperOptions;
+ import org.yaml.snakeyaml.nodes.Node;
+ import org.yaml.snakeyaml.representer.Representer;
+ 
+ public class EscapedStringRepresenter extends Representer {
+     public EscapedStringRepresenter() {
++        super(new DumperOptions());
+         RepresentStringEx representStringEx = new RepresentStringEx();
+         multiRepresenters.put(String.class, representStringEx);
+         representers.put(String.class, representStringEx);

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
Source: apktool
Source-Version: 2.7.0+dfsg-7.1
Done: Adrian Bunk <[email protected]>

We believe that the bug you reported is fixed in the latest version of
apktool, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Adrian Bunk <[email protected]> (supplier of updated apktool 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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 01 Dec 2025 17:07:48 +0200
Source: apktool
Architecture: source
Version: 2.7.0+dfsg-7.1
Distribution: unstable
Urgency: medium
Maintainer: Android Tools Maintainers 
<[email protected]>
Changed-By: Adrian Bunk <[email protected]>
Closes: 1117953
Changes:
 apktool (2.7.0+dfsg-7.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
 .
   [ Pierre Gruet ]
   * Fix building against snakeyaml 2.x. (Closes: #1117953)
Checksums-Sha1:
 57546cb0e6c723e51d5e726d910b13a635dc6331 2320 apktool_2.7.0+dfsg-7.1.dsc
 b8f2b6a0f05fd939752cfd9a863f452b2898ae90 20176 
apktool_2.7.0+dfsg-7.1.debian.tar.xz
Checksums-Sha256:
 382a1c7d7eab285aa103fc182ff97faa947c243204caa5ebb196fceb5d5d5b43 2320 
apktool_2.7.0+dfsg-7.1.dsc
 11fb387a78473f239a89e85017df466b30840dc256d425137482236ab37ea654 20176 
apktool_2.7.0+dfsg-7.1.debian.tar.xz
Files:
 82a59d06db3f7da093981e501a97f1ef 2320 devel optional apktool_2.7.0+dfsg-7.1.dsc
 871f553690c6e1d294f9e31cf00f67b9 20176 devel optional 
apktool_2.7.0+dfsg-7.1.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEOvp1f6xuoR0v9F3wiNJCh6LYmLEFAmktsCUACgkQiNJCh6LY
mLEMTBAAg94lF5gGjVyd+eKCpIhD7pvfbGz/7JQ84w4z9/tkvauPS36JqioMcSs1
nIa1/vuGYHPxWK2qhqgP6Ek8nbiih1lZIf/6mfx3eUzj3HwEz/v/P8OXBneD6oeQ
a8s0g7aXIhWtRYQqOjuENyfhZrgT/dK+AQapcb9S2b0p0hF7nh5YL0oU+s2F1GlO
Uz7viYARYAEUN9dEtmLqoDL7fNLmJCXUP64eeYjbMKA41so8VfMKtVmqoR2KHYjU
fF1eYmKS+6kXPfZ04Cl40f5kSDKO5Oo5kszd3y6vvQnnmEMhwaEx566GPWAiYFtG
d/ixn2BUpAg8rLTQ6hX1NQJKqo9NyH08UiOUtOkEKEDTIAzI/aaIPGFPsxbKoJ9u
g6S4evmgl/8XRgQRSczsnz8GfRCQl2FlbkkFKMp//p1GAZKyUxEJwHK5n9QRacuu
LWf2JFUuHr+JUYeV7bX74YvRDX3SULizAC/+ahvBl5T1phBhB2GT8MPL/Wh4yJBG
4rGcDr/s3wIMxHcTdkJgBLMtGfukSJe8UhqPtalHUoWRJulZVnbsd6PbRGXku1lD
cKb0rZO/y84K7iL9nvHh63yUUxJzdwMZpPxfLMK/3Y/r0nE6RpaR0m1gH9uD6yxX
k/EIl0q8Lkc6ky6b2dfhvbXefgU49fAAVFPZODsPQTpePW2RvO8=
=U83Z
-----END PGP SIGNATURE-----

Attachment: pgphb4rFyGdWA.pgp
Description: PGP signature


--- End Message ---

Reply via email to