[0/6] Add the ability to use chkconfig's update-alternatives

Submitted by Christopher Larson on Dec. 29, 2012, 5:19 a.m. | Patch ID: 41789


Message ID cover.1356758000.git.chris_larson@mentor.com
State New
Headers show


https://github.com/kergoth/oe-core chkconfig-alternatives

Commit Message

Christopher Larson Dec. 29, 2012, 5:19 a.m.
From: Christopher Larson <chris_larson@mentor.com>

This short patch series fixes a few issues with the chkconfig recipe to
prepare for packaging of its C implementation of update-alternatives, enables
this packaging, adds a recipe with minimal deps for the -native case, and
fixes a couple issues in opkg-native and update-alternatives.bbclass.

With this applied, you can use this implementation of update-alternatives
rather than cworth's by defining:

    VIRTUAL-RUNTIME_update-alternatives = "chkconfig-alternatives"
    PREFERRED_PROVIDER_virtual/update-alternatives = "chkconfig-alternatives"
    PREFERRED_PROVIDER_virtual/update-alternatives-native = "chkconfig-alternatives-native"

I've sanity checked both package and image buildhistory, and the only changes
are due to the particular layout of the alternatives directories, which is
reasonable. I've also confirmed that image do_rootfs run times have dropped by
7 seconds on average, so it at least doesn't regress that. Of course, the main
benefit to being able to use this implementation is the removal of the sh
dependency, and that the maintainer of its code is someone other than us and
the opkg maintainer.

Comments welcome. Thanks.

The following changes since commit 69bbce0176183b0dc14eda21e4f6b601443060f0:

  libpng: fix packaging (2012-12-25 14:00:22 -0800)

are available in the git repository at:

  https://github.com/kergoth/oe-core chkconfig-alternatives

for you to fetch changes up to a755aa630c6d2095d5950ee00d396f3249e4a912:

  chkconfig-alternatives-native-1.3.59: add recipe (2012-12-28 14:19:56 -0700)

Christopher Larson (6):
      update-alternatives.bbclass: use absolute paths for link targets
      opkg-native: obey virtual/update-alternatives-native
      chkconfig: don't inherit autotools
      chkconfig: obey sysconfdir, base_libdir
      chkconfig: package the update-alternatives implementation
      chkconfig-alternatives-native-1.3.59: add recipe

 meta/classes/update-alternatives.bbclass           |  2 +-
 meta/recipes-devtools/opkg/opkg.inc                | 10 ++++-
 .../chkconfig-alternatives-native_1.3.59.bb        | 43 +++++++++++++++++++
 .../recipes-extended/chkconfig/chkconfig_1.3.58.bb | 48 ++++++++++++++++++----
 4 files changed, 91 insertions(+), 12 deletions(-)
 create mode 100644 meta/recipes-extended/chkconfig/chkconfig-alternatives-native_1.3.59.bb