lp:binfmt-support
- Get this branch:
- bzr branch lp:binfmt-support
Branch merges
Branch information
Import details
This branch is an import of the HEAD branch of the Git repository at git://git.sv.gnu.org/binfmt-support.git.
Last successful import was 1 hour ago.
Recent revisions
- 235. By Colin Watson on 2019-02-10
-
Use macros for common cases of list iteration
* src/glcontainers.h: New file.
* src/Makefile.am (COMMON): Add glcontainers.h.
* src/find.c (find_interpreters): Replace manual list iteration with
equivalent macros.
* src/run-detectors.c (main): Likewise.
* src/update-binfmts. c (act_enable, act_disable, act_display): Likewise. - 232. By Colin Watson on 2019-01-13
-
Warn about fix-binary/
detectors incompatibility "--fix-binary yes" is incompatible with detectors. Warn the user if
they try to use both at once.Thanks to Stefan Agner; fixes Debian bug #918901.
* src/update-
binfmts. c (act_enable): Warn and return if a detector is
needed and the fix-binary flag is set.
* man/update-binfmts. man8 (BINARY FORMAT SPECIFICATIONS): Document the
incompatibility.
* NEWS: Document this. - 231. By Colin Watson on 2019-01-13
-
Avoid cleanup problems in chroots
Don't enable formats on import or disable them on unimport unless
/proc/sys/fs/binfmt_ misc is already mounted. Fixes Debian bug #847788 and Ubuntu bug #534211.
* src/update-
binfmts. c (is_enabled): New function.
(load_binfmt_misc): Use is_enabled rather than equivalent code.
(act_install): Add always_update_ kernel argument. Only enable/disable
if always_update_ kernel or if binfmt_misc is already enabled.
(act_remove): Add always_update_ kernel argument. Only disable if
always_update_ kernel or if binfmt_misc is already enabled.
(act_import, act_unimport, main): Adjust calls to act_install and
act_remove.
* NEWS: Document this. - 230. By Colin Watson on 2019-01-13
-
Add a new --unimport action
This is the inverse of --import.
* src/update-
binfmts. c (act_unimport): New function.
(enum opts, options, mode_name, parse_opt, argp, main): Handle
--unimport.
* src/tests/import: Test --unimport.
* man/update-binfmts. man8 (SYNOPSIS): Add --unimport.
(COMMON OPTIONS): Mention --unimport in description of --package.
(ACTIONS): Document --unimport.
* NEWS: Document this. - 229. By Colin Watson on 2019-01-05
-
Upgrade to Gnulib 20190105
In line with Gnulib, we now require Autoconf 2.63.
* bootstrap: Sync to Gnulib d271f868a8df9bb
ec29049d01e0564 81b7a1a263.
* bootstrap.conf (GNULIB_REVISION): Set to
d271f868a8df9bbec29049d01e0564 81b7a1a263.
(buildreq): Bump required autoconf version to 2.63.
* configure.ac (AM_SILENT_RULES): Remove conditional, which was there
for Automake 1.10 support.
(AC_PREREQ): Bump to 2.63.
* NEWS: Document this. - 228. By Colin Watson on 2019-01-05
-
Add release.sh script
* release.sh: New file.
* Makefile.am (EXTRA_DIST): Add release.sh. - 227. By Colin Watson on 2019-01-05
-
Use tar --sort=name if available
* m4/binfmt-
tar-sort- name.m4: New file.
* configure.ac: Call BINFMT_TAR_SORT_ NAME.
* Makefile.am (ACLOCAL_AMFLAGS): Add -I m4. - 226. By Colin Watson on 2019-01-04
-
Sort formats by name in --display
The easiest way to do this was to recast kvhash as a wrapper around a
gl_list_t (specifically a red-black tree hash) rather than a Hash_table.* bootstrap.conf (gnulib_modules): Remove hash; add rbtreehash-list.
* src/kvhash.c (kvhash_hasher): Rename to ...
(kvhash_hashcode): ... this, make static, and replace the hash
implementation with one from Gnulib.
(kvhash_compare): New function.
(kvhash_comparator) : Rename to ...
(kvhash_equals): ... this, make static, and reimplement using
kvhash_compare.
(kvhash_dispose, kvhash_dispose_ plain): New functions.
(kvhash_initialize, kvhash_exists, kvhash_lookup, kvhash_insert,
kvhash_delete): Use a list rather than a hash.
* src/kvhash.h (kvhash_hasher, kvhash_comparator): Remove prototypes.
(kvhash_dispose, kvhash_dispose_ plain): Add prototypes.
(kvhash_initialize, kvhash_exists, kvhash_lookup, kvhash_insert,
kvhash_delete): Update prototypes.* src/format.c (binfmt_new): Take a list rather than a hash table.
(binfmt_hash_free): Rename to ...
(kvhash_dispose_ binfmt) : ... this, and update to the list API.
* src/format.h (binfmt_new): Update prototype.
(binfmt_hash_free): Rename to ...
(kvhash_dispose_ binfmt) : ... this, and update prototype. * src/update-
binfmts. c (formats): Declare as a list rather than a hash
table.
(get_import, act_enable, act_disable, act_import, act_display, main):
Update to the list API.* NEWS: Document this.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)