Ok. So I got this to compile, but it took some doing. There were a few issues:
1) The pull from the android.googlesource for all three components (core, extras, and libselinux) used the "master" branch, but that branch does not have some things. You have to checkout the lollipop-release branch if you want all the required files to be there.
2) in the cc line in the PKGBUILD there are a few items missing. First you need to add in -I{srcdir}/core/include. Then you need to add in the canned_fs_config.c file to be compiled first (before make_ext4fs_main.c).
3) This one is kind of sketchy. It looks like *something* is still missing, and that something supplies an fs_config variable. I don't know what it is, and on line 187 of the make_ext4fs_main.c file, I changed that to canned_fs_config (which is set in the canned_fs_config.c file). For me this is ok, because I never use the -C flag (which would lead to line 187 being executed), but someone who knows a bit more about this should probably take a look at this.
Search Criteria
Package Details: make_ext4fs-git 20140608-1
Package Actions
| Package Base: | make_ext4fs-git |
|---|---|
| Description: | A utility for creating ext4 filesystem images |
| Upstream URL: | https://android.googlesource.com/platform/system/extras/+/master/ext4_utils/ |
| Category: | system |
| Licenses: | |
| Submitter: | paulburton |
| Maintainer: | paulburton |
| Last Packager: | paulburton |
| Votes: | 0 |
| First Submitted: | 2014-06-08 14:30 |
| Last Updated: | 2014-06-08 14:30 |
Latest Comments
Comment by dansteen
Comment by willemw
==> Starting build()...
cc: error: uuid.c: No such file or directory
==> ERROR: A failure occurred in build().
Also please follow the current guidelines (https://wiki.archlinux.org/index.php/VCS_package_guidelines).
Comment by jhsnyder666
Doesn't compile:
make_ext4fs_main.c: In function ‘main’:
make_ext4fs_main.c:187:20: error: ‘fs_config’ undeclared (first use in this function)
fs_config_func = fs_config;
^
make_ext4fs_main.c:187:20: note: each undeclared identifier is reported only once for each function it appears in