GNOME Bugzilla – Bug 764056
ostree doesn't build without libarchive
Last modified: 2016-03-23 17:58:15 UTC
Although libarchive is an optional build option, the build fails without it.
Created attachment 324572 [details] [review] Fix building without libarchive Although libarchive is an optional build option, the build fails without it.
Review of attachment 324572 [details] [review]: Thanks for the patch; unfortunately it's a bit harder than this because the -archive.c file also contains API stubs for the non-libarchive code path. In other words the intention is to have one ABI regardless of compile time options - if built without libarchive they just turn into errors. Surprisingly, having nonexistent symbols in -Wl,--version-script doesn't break the build. How is that not an error?
Are you doing this because you actually want a version without libarchive, or because you just happened to not have the dep installed and the build failed? Anyways, reworked and pushed: https://git.gnome.org/browse/ostree/commit/?id=2454957e8dff9a88e5d6c10df15dec161277cc0a