android-platform-build: FTBFS: Vector.h:259:28: error: cannot convert ‘const android::Vector<TYPE>*’ to ‘android::VectorImpl*’

Bug #2056084 reported by Vladimir Petko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
android-platform-build (Debian)
New
Unknown
android-platform-build (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The package fails to build due to the following error:

tools/zipalign/ZipFile.cpp: In member function ‘void* android::ZipFile::uncompress(const android::ZipEntry*) const’:
tools/zipalign/ZipFile.cpp:1294:30: error: cannot declare variable ‘reader’ to be of abstract type ‘FileReader’
 1294 | const FileReader reader(mZipFp);
      | ^~~~~~
tools/zipalign/ZipFile.cpp:1221:7: note: because the following virtual functions are pure within ‘FileReader’:
 1221 | class FileReader : public zip_archive::Reader {
      | ^~~~~~~~~~
In file included from tools/zipalign/ZipFile.cpp:24:
/usr/include/android/ziparchive/zip_archive.h:360:16: note: ‘virtual bool zip_archive::Reader::ReadAtOffset(uint8_t*, size_t, off64_t) const’
  360 | virtual bool ReadAtOffset(uint8_t* buf, size_t len, off64_t offset) const = 0;
      | ^~~~~~~~~~~~
make[2]: *** [debian/zipalign.mk:10: build] Error 1

Tags: ftbfs

Related branches

Revision history for this message
Vladimir Petko (vpa1977) wrote :

piuparts install/upgrade/purge test (pass)

Vladimir Petko (vpa1977)
tags: added: ftbfs
Changed in android-platform-build (Debian):
status: Unknown → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package android-platform-build - 1:10.0.0+r36-1ubuntu1

---------------
android-platform-build (1:10.0.0+r36-1ubuntu1) noble; urgency=medium

  * Resolve ftbfs due to the API changes (LP: #2056084):
    - d/p/bouncycastle177-compat.patch: replace DerOutputStream with
      ASN1OutputStream.
    - d/p/zip-archive-reader-signature.patch: update ReadAtOffset
      method signature.

 -- Vladimir Petko <email address hidden> Wed, 06 Mar 2024 14:35:07 +1300

Changed in android-platform-build (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.