Skip to content
Snippets Groups Projects
  1. Mar 09, 2020
  2. Mar 04, 2020
  3. Mar 02, 2020
  4. Feb 26, 2020
  5. Feb 16, 2020
  6. Feb 08, 2020
  7. Feb 03, 2020
  8. Feb 01, 2020
    • Sebastian Kemper's avatar
      libxml2: install xml2-config with host triplet · 0eb7b3e4
      Sebastian Kemper authored
      
      Currently only xml2-config is installed, for both the normal libxml2
      package as well as the host package. The problem with that is that due
      to multilib considerations the build host may have xml2-config installed
      with a host triplet prefix, like x86_64-pc-linux-gnu-xml2-config (and
      xml2-config as a symbolic link to it). Gentoo for instance sets it up
      like this.
      
      Packages may actually search for a prefixed xml2-config before searching
      for xml2-config. An example would be Asterisk:
      
      checking for x86_64-pc-linux-gnu-xml2-config... /usr/bin/x86_64-pc-linux-gnu-xml2-config
      
      This then introduces wrong information into the build, for instance
      bad includes:
      
      ~/tmp/openwrt $ /usr/bin/x86_64-pc-linux-gnu-xml2-config --cflags
      -I/usr/include/libxml2
      
      When the intention is to use OpenWrt's own (host) libxml2 one would like
      to see this output used instead:
      
      ~/tmp/openwrt $ ./staging_dir/hostpkg/bin/xml2-config --cflags
      -I/home/sk/tmp/openwrt/staging_dir/hostpkg/include/libxml2
      
      This commit addresses this by installing xml2-config with a suitable
      prefix and creating a symbolic link xml2-config. This is done for both
      the host package and the normal package. The latter also needs this fix
      because the target may use the same triplet as the host system (for
      instance x86_64 cross-compiling for x86_64).
      
      Signed-off-by: default avatarSebastian Kemper <sebastian_ml@gmx.net>
      0eb7b3e4
    • Sebastian Kemper's avatar
      libxml2/host: revert xml2-config prefix fix · 6e597709
      Sebastian Kemper authored
      
      Commit 218f0229a4594b32d9db6ad0678cdce7e2663e27 added a workaround for a
      problem. The host compile overwrote xml2-config in
      "$(STAGING_DIR)/host/bin". The workaround fixed the issue for regular
      target packages. But it didn't leave a proper xml2-config script for
      host packages.
      
      Times have changed. Host packages are now installed in
      "$(STAGING_DIR_HOSTPKG). So there is no longer any danger of the host
      package overwriting the xml2-config script for target packages. So
      revert the mentioned commit, leaving us with two proper xml2-config
      scripts, one for target package builds and one for host package builds.
      
      Signed-off-by: default avatarSebastian Kemper <sebastian_ml@gmx.net>
      6e597709
  9. Jan 28, 2020
  10. Jan 27, 2020
  11. Jan 26, 2020
  12. Jan 19, 2020
  13. Jan 17, 2020
  14. Jan 16, 2020
  15. Jan 13, 2020
  16. Jan 11, 2020
  17. Jan 04, 2020
  18. Jan 03, 2020
  19. Dec 24, 2019
  20. Dec 21, 2019
  21. Dec 20, 2019
Loading