Differences between revisions 23 and 24
Revision 23 as of 2009-07-07 15:24:39
Size: 5052
Editor: NeilWilliams
Comment:
Revision 24 as of 2009-07-07 17:18:14
Size: 5245
Editor: NeilWilliams
Comment:
Deletions are marked like this. Additions are marked like this.
Line 16: Line 16:
This snippet needs emvendor from [[DebPkg:emdebian-buildsupport]] (>= 2.1.2).
Line 18: Line 20:
ifeq (,$(findstring emdebian,$(DEB_VENDOR))) ifeq (Debian,$(DEB_VENDOR))
Line 20: Line 22:
  EXCONFARGS=--disable-mono --disable-monodoc
Line 21: Line 24:
  # emdebian build (crush)   # any-vendor build
  EXCONFARGS=$(shell emvendor --vendor $(DEB_VENDOR) --package avahi --key EXCONFARGS)

Details of the changes in the EmdebianCodeAudit

RPATH

See 367115 and 484277 for details. Also, EmdebianAuditRpath for information on work-in-progress and affected packages.

maintainer scripts

The only real way of handling maintainer script changes is to implement an no-op wrapper via emsandbox from the emdebian-rootfs package or by creating suitable wrappers using multistrap support.

As such, the maintainer scripts in the package would remain unchanged. Other changes (e.g. dropping specific options that are unsupported) are more difficult.

Vendor

This snippet needs emvendor from emdebian-buildsupport (>= 2.1.2).

DEB_VENDOR=$(shell dpkg-vendor --query vendor)
ifeq (Debian,$(DEB_VENDOR))
  # Debian build
  EXCONFARGS=--disable-mono --disable-monodoc
else
  # any-vendor build
  EXCONFARGS=$(shell emvendor --vendor $(DEB_VENDOR) --package avahi --key EXCONFARGS)
endif

e.g. this (abridged) avahi patch:

 DEB_CONFIGURE_EXTRA_FLAGS += --enable-compat-libdns_sd --enable-compat-howl \
-                             --disable-mono --disable-monodoc
+                             --disable-mono --disable-monodoc \
+                             --disable-mono --disable-monodoc --disable-python \
+                             --with-distro=debian 

becomes:

DEB_VENDOR=$(shell dpkg-vendor --query vendor)
ifeq (,$(findstring emdebian-crush,$(DEB_VENDOR)))
  # Debian build
  EXCONFARGS=--disable-mono --disable-monodoc
else
  # emdebian build (crush)
  EXCONFARGS=--disable-mono --disable-monodoc --disable-python --with-distro=debian 
endif
 DEB_CONFIGURE_EXTRA_FLAGS += --enable-compat-libdns_sd --enable-compat-howl ${EXCONFARGS}

apt

  • drop dependency on debian-archive-keyring - not used in Emdebian.

    • TODO: assess whether this change can be dropped, the original reason was the extra dependency on gnupg.

atk1.0

  • Need to disable the documentation generation as it tries to execute internal compiled binaries in the scan process.

avahi

  • Lots of components are disabled, including python, qt3, qt4, docs and gobject components. Quite a difficult package to handle, overall, due to the number of possible permutations. The gobject code didn't cross-build last time it was tried.
  • Maintainer scripts call adduser.
  • Needs vendor support to implement changes in configure arguments. Problem will be matching these switches to the xcontrol support.

base-files

  • Drop the Pre-Depends on awk - TODO: might not be necessary anymore.
  • Compress the licence texts and update the symlinks.

busybox

  • Large functional changes - due to the completely different roles of busybox in Debian (d-i and initramfs) and Emdebian (replacing coreutils, boot support).

cpio

  • drop win32 bindings - needs xcontrol support for dropping the package.
  • update-alternatives changes in maintainer scripts

cracklib2

  • python support needs to be handled in xcontrol
  • Debian package uses chrpath which fails with a cross-built binary.

cron

  • adduser dependency needs to be handled (uses addgroup in preinst).

curl

  • generates a SONAME bump during the build, libcurl-gnutls.so.5.1.1 ??
  • drop ldap support and disable ssh support.
  • drop dependency on ca-certificates (v.large)

dash

  • scripts drop dpkg-divert support - possible to handle this in emsandbox but that could easily cause package installation failures and will need careful management.

dbus

  • Remove adduser dependency and probably use empty adduser support in emsandbox. Users and groups will need to be handled manually.

dbus-glib

  • Needs patches to skip examples and tools directories from build - tools tries to execute the built binaries. examples ignores the cross-compiler.

dpkg

  • Needs xcontrol|vendor support to (pre-)depend on busybox instead of coreutils

hal

  • adduser dependency removal

  • --disable-smbios change.

libxi

  • does not notice the ac_cv_func_malloc_0_nonnull=yes cache variable, needs a patch for debian/rules to add the package-specific ./configure option --enable-malloc0returnsnull

libxinerama

  • does not notice the ac_cv_func_malloc_0_nonnull=yes cache variable, needs a patch for debian/rules to add the package-specific ./configure option --enable-malloc0returnsnull

libxrandr

  • does not notice the ac_cv_func_malloc_0_nonnull=yes cache variable, needs a patch for debian/rules to add the package-specific ./configure option --enable-malloc0returnsnull

libxrender

  • does not notice the ac_cv_func_malloc_0_nonnull=yes cache variable, needs a patch for debian/rules to add the package-specific ./configure option --enable-malloc0returnsnull

openssh

  • adduser dependency removal

  • drop binary-ssh-krb5 target in debian/rules

  • drop update-alternatives from maintainer scripts.


CategoryEmdebian