Bug 1276447

Summary: RFE: add the libsparse tooling to create/edit the ext4 sparse images
Product: [Fedora] Fedora EPEL Reporter: Jim Perrin <jperrin>
Component: android-toolsAssignee: EPEL Packagers SIG <epel-packagers-sig>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: epel7CC: admiller, cz172638, ivan.afonichev, jperrin
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 245418    
Attachments:
Description Flags
patch to add android-tools-fsutils subpackage none

Description Jim Perrin 2015-10-29 18:03:12 UTC
Created attachment 1087646 [details]
patch to add android-tools-fsutils subpackage

Description of problem:
creating sparse images for use with fastboot is easier when using make_ext4fs and/or img2simg, from the libsparse directory. 

Version-Release number of selected component (if applicable):
android-tools-20130123git98d0789-5

Currently the image creation tools aren't built. This patch creates a subpackage called android-tools-fsutils with make_ext4fs ext4fixup ext2simg img2simg simg2img and simg2simg 

I would request that this patch be added to the epel7 build, and possibly the fedora build if suitable.

Comment 1 Ivan Afonichev 2016-03-20 22:12:22 UTC
It seems all binaries are the same

xtracting debug info from /home/van/rpmbuild/BUILDROOT/android-tools-20160221git922e151ba2d8-5.fc23.R.x86_64/usr/bin/ext4fixup
extracting debug info from /home/van/rpmbuild/BUILDROOT/android-tools-20160221git922e151ba2d8-5.fc23.R.x86_64/usr/bin/adb
extracting debug info from /home/van/rpmbuild/BUILDROOT/android-tools-20160221git922e151ba2d8-5.fc23.R.x86_64/usr/bin/simg2simg
*** WARNING: identical binaries are copied, not linked:
        /usr/bin/simg2simg
   and  /usr/bin/ext4fixup
extracting debug info from /home/van/rpmbuild/BUILDROOT/android-tools-20160221git922e151ba2d8-5.fc23.R.x86_64/usr/bin/fastboot
extracting debug info from /home/van/rpmbuild/BUILDROOT/android-tools-20160221git922e151ba2d8-5.fc23.R.x86_64/usr/bin/simg2img
*** WARNING: identical binaries are copied, not linked:
        /usr/bin/simg2img
   and  /usr/bin/ext4fixup
extracting debug info from /home/van/rpmbuild/BUILDROOT/android-tools-20160221git922e151ba2d8-5.fc23.R.x86_64/usr/bin/ext2simg
*** WARNING: identical binaries are copied, not linked:
        /usr/bin/ext2simg
   and  /usr/bin/ext4fixup
extracting debug info from /home/van/rpmbuild/BUILDROOT/android-tools-20160221git922e151ba2d8-5.fc23.R.x86_64/usr/bin/make_ext4fs
*** WARNING: identical binaries are copied, not linked:
        /usr/bin/make_ext4fs
   and  /usr/bin/ext4fixup
extracting debug info from /home/van/rpmbuild/BUILDROOT/android-tools-20160221git922e151ba2d8-5.fc23.R.x86_64/usr/bin/img2simg
*** WARNING: identical binaries are copied, not linked:
        /usr/bin/img2simg
   and  /usr/bin/ext4fixup



I think it is not acceptable. We should create some libsparce-bin binary and link all names you need to it.

Comment 2 Ivan Afonichev 2016-03-20 22:26:57 UTC
Please provide more info what binaries do you need. In Android.mk I see only:
simg2img_host
simg2img
img2simg_host
img2simg
append2simg

Comment 3 Jim Perrin 2016-03-28 12:12:39 UTC
Note that this is for EPEL (EL7), and the simg2img and img2simg tools are not included there. If the EPEL package could be bumped to the f23 version, with the f23 tooling, that would likely resolve my issue just fine.

Comment 4 Ivan Afonichev 2016-03-28 12:38:18 UTC
We are working on update android-tools to the lastest upstream code. Please provide exact list of tools you want to be included into android-tools-fsutils subpackage

Comment 5 Jim Perrin 2016-03-28 12:59:54 UTC
I'd very much like to see:

img2simg
simg2img
ext2simg
append2simg

make_ext4fs would be handy, but I'm slightly concerned about the name. It could lead to confusion with the base distro filesystem usage. Also, there's a patch debian uses that allows it to preserve ownership. -> https://qa.debian.org/cgi-bin/vcswatch?package=android-tools

That patch is very useful when generating images for arm dev boards and phones.

Comment 6 Jiri Kastner 2018-11-13 14:41:37 UTC
any progress?

Comment 7 Fedora Admin user for bugzilla script actions 2022-12-13 00:06:25 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.