lp:binfmt-support

Created by Colin Watson on 2014-02-08 and last modified on 2019-02-10
Get this branch:
bzr branch lp:binfmt-support

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Colin Watson
Project:
binfmt-support
Status:
Mature

Import details

Import Status: Reviewed

This branch is an import of the HEAD branch of the Git repository at git://git.sv.gnu.org/binfmt-support.git.

The next import is scheduled to run in 5 hours.

Last successful import was 4 minutes ago.

Import started 4 minutes ago on izar and finished 4 minutes ago taking 15 seconds — see the log
Import started 6 hours ago on alnitak and finished 6 hours ago taking 20 seconds — see the log
Import started 12 hours ago on alnitak and finished 12 hours ago taking 15 seconds — see the log
Import started 18 hours ago on alnitak and finished 18 hours ago taking 15 seconds — see the log
Import started on 2019-04-21 on izar and finished on 2019-04-21 taking 15 seconds — see the log
Import started on 2019-04-21 on alnitak and finished on 2019-04-21 taking 15 seconds — see the log
Import started on 2019-04-20 on izar and finished on 2019-04-20 taking 15 seconds — see the log
Import started on 2019-04-20 on alnitak and finished on 2019-04-20 taking 20 seconds — see the log
Import started on 2019-04-20 on alnitak and finished on 2019-04-20 taking 15 seconds — see the log
Import started on 2019-04-20 on izar and finished on 2019-04-20 taking 15 seconds — see the log

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.

234. By Colin Watson on 2019-01-24

Version: 2.2.0

233. By Colin Watson on 2019-01-24

Update to Gnulib 20190124

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 d271f868a8df9bbec29049d01e056481b7a1a263.
* bootstrap.conf (GNULIB_REVISION): Set to
d271f868a8df9bbec29049d01e056481b7a1a263.
(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)
This branch contains Public information 
Everyone can see this information.

Subscribers