]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
5 years agoca-certificates: Fix reproducibilty and multilib issue obi/pyro
Richard Purdie [Thu, 29 Aug 2019 11:10:16 +0000 (12:10 +0100)] 
ca-certificates: Fix reproducibilty and multilib issue

This command was dependent on the order of files on the disk and for multilib builds
could result in:

Error: Transaction check error:
  file /etc/ca-certificates.conf conflicts between attempted installs of ca-certificates-20190110-r0.core2_32 and lib64-ca-certificates-20190110-r0.x86_64

Sorting the file makes things deterministic.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit c8f329fc562c9eecdcc1cb10d2c7661f44110fb4)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
5 years agoca-certificates: upgrade 20180409 -> 20190110
Alexander Kanavin [Tue, 19 Feb 2019 17:47:10 +0000 (18:47 +0100)] 
ca-certificates: upgrade 20180409 -> 20190110

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 73ebdcaedde460108f98971f037e50e9b15c9f0c)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
5 years agoca-certificates: update to 20180409
Alexander Kanavin [Tue, 28 Aug 2018 10:23:17 +0000 (12:23 +0200)] 
ca-certificates: update to 20180409

License-Update: URI fix
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 87acc51a7892524a22640bf9eba46c11701365d6)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
5 years agoca-certificates: use relative symlinks from $ETCCERTSDIR
André Draszik [Thu, 29 Mar 2018 15:43:19 +0000 (16:43 +0100)] 
ca-certificates: use relative symlinks from $ETCCERTSDIR

update-ca-certificates symlinks (trusted) certificates
from $CERTSDIR or $LOCALCERTSDIR into $ETCCERTSDIR.
update-ca-certificates can call hook scripts installed
into /etc/ca-certificates/update.d. Those scripts are
passed the pem file in /etc/ssl/certs/ that was added or
removed in this run and those pem files are absolute
symlinks into $CERTSDIR or $LOCALCERTSDIR at the moment.

When running update-ca-certificates during image build
time, they thusly all point into the host's file system,
not into the $SYSROOT. This means:
* the host's file system layout must match the one
  produced by OE, and
* it also means that the host must have installed the same
  (or more) certificates as the target in $CERTSDIR and
  $LOCALCERTSDIR

This is a problem when wanting to execute hook scripts,
because they all need to be taught about $SYSROOT, and
behave differently depending on whether they're called
at image build time, or on the target, as otherwise they
will be trying to actually read the host's certificates
from $CERTSDIR or $LOCALCERTSDIR.

This also is a problem when running anything else during
image build time that depends on the trusted CA
certificates.

Changing the symlink to be relative solves all of these
problems. At the same time, we have to make sure to add
$CERTSDIR to SYSROOT_DIRS, so that the symlinks are still
valid when somebody DEPENDS on ca-certificates-native. As
a side-effect, this also fixes a problem in meta-java,
where some recipes (e.g. openjdk-8-native) try to access
certificates from $CERTSDIR to generate the java trustStore
at build time.

Do so.

Upstream-Status: Inappropriate [OE-specific]
Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 09bb7718d74573be9a5db4d0737fb14126f6489c)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org> [edited]
5 years agoca-certificates: change SRC_URI from Debian anonscm to salsa
Mikko Rapeli [Mon, 26 Mar 2018 11:57:58 +0000 (14:57 +0300)] 
ca-certificates: change SRC_URI from Debian anonscm to salsa

Debian anonscm service in Alioth is shutdown and thus
fetching ca-certificates sources fails.

https://wiki.debian.org/Alioth

"Alioth is broken, and there is nobody around to fix it. Don't ask the remaining people who give it life support to implement fixes and changes. It is being replaced by a cocktail of ?GitLab (see Salsa), read-only repos and keep-alive mechanisms. See below for more information."

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit fc20ff2003cee7ee3b78ba3bc236a60a8caabc35)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
5 years agoca-certificates: run postinst script only for -target package
Alexander Kanavin [Thu, 15 Mar 2018 11:27:06 +0000 (13:27 +0200)] 
ca-certificates: run postinst script only for -target package

Nativesdk package has a special arrangement where the same thing is done
in do_install(). It was assumed (in the comment) that postinsts don't run when
installing nativesdk packages, but this was incorrect: they are run, but
any failures were previously silently ignored. Now this missing failure reporting has
been fixed, and so we get to see the failures.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 8ebb695c1429f8d57d655072a362a4f176258699)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
5 years agoca-certificates: update to 20170717
Alexander Kanavin [Wed, 30 Aug 2017 13:35:42 +0000 (16:35 +0300)] 
ca-certificates: update to 20170717

This is actually the same version as previously; upstream didn't have
a tag for it before and now it does, so we can reduce confusion. The SRCREV
change is due to a few added commits which modify upstream's debian
packaging (not used by us).

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 8359730165908025b0762eaa25569e2fdcd9d086)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
5 years agoca-certificates: update to 20170717
Alexander Kanavin [Tue, 8 Aug 2017 15:25:01 +0000 (18:25 +0300)] 
ca-certificates: update to 20170717

Upstream lacks a tag for this release, so make it a PR bump.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 0b0a716b243491f026cb7b15e8f546325d6fa760)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years agosystemd: Add runtime dependency on new ldconfig package
Andreas Oberritter [Mon, 18 Mar 2019 21:24:39 +0000 (22:24 +0100)] 
systemd: Add runtime dependency on new ldconfig package

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years agopackage.bbclass: Always include ldconfig fragment
Andreas Oberritter [Mon, 18 Mar 2019 21:05:15 +0000 (22:05 +0100)] 
package.bbclass: Always include ldconfig fragment

Now that ldconfig may get installed from a feed, use it when it's
available on the target.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years agoglibc: move ldconfig to its own package
Andreas Oberritter [Mon, 18 Mar 2019 20:29:49 +0000 (21:29 +0100)] 
glibc: move ldconfig to its own package

Only recommend its installation, if it's enabled in distro features.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years agodpkg: Don't abort if unused tools are missing, e.g. ldconfig and start-stop-daemon
Andreas Oberritter [Mon, 11 Mar 2019 21:13:33 +0000 (22:13 +0100)] 
dpkg: Don't abort if unused tools are missing, e.g. ldconfig and start-stop-daemon

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years agopackage_deb, ipk: improve subprocess output on package manager command
Leonardo Sandoval [Mon, 4 Sep 2017 21:35:47 +0000 (14:35 -0700)] 
package_deb, ipk: improve subprocess output on package manager command

Redirecting stderr to stdout helps debugging issues, i.e instead of just
getting the return code, get also the error log from the pkg manger
This commit is in the way to figure out the root cause of [YOCTO #12012],
where dpkg-deb fails with a 2 return code and according to the man page,
there are multiple issues leading to the same code.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 9ff023fb26f5f0ce19e757beda00ccc32c009b21)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years agopackage_deb.bbclass: Allow to override Multi-Arch flag; change default for kernel...
Andreas Oberritter [Tue, 26 Feb 2019 17:23:55 +0000 (18:23 +0100)] 
package_deb.bbclass: Allow to override Multi-Arch flag; change default for kernel modules

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years agopackage_manager/deb: initialize /var/lib/dpkg/arch
Andreas Oberritter [Tue, 26 Feb 2019 17:22:51 +0000 (18:22 +0100)] 
package_manager/deb: initialize /var/lib/dpkg/arch

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years agokernel-devicetree.bbclass: search dtb in all subdirectories of arch/${ARCH}/boot
Andreas Oberritter [Thu, 23 Nov 2017 20:56:51 +0000 (21:56 +0100)] 
kernel-devicetree.bbclass: search dtb in all subdirectories of arch/${ARCH}/boot

Fixes installation of dtbs grouped in vendor subdirectories in cases
where the subdirectory is not part of the entries in KERNEL_DEVICETREE.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years agokernel.bbclass: move variables for kernel artifacts names to separate bbclass
Martin Jansa [Mon, 20 Nov 2017 19:27:43 +0000 (19:27 +0000)] 
kernel.bbclass: move variables for kernel artifacts names to separate bbclass

* this makes it easier to access these variables from some other bbclass
  e.g. sdcard_image-rpi.bbclass in meta-raspberry where we need to know
  how some files in deploy are named, but we cannot inherit kernel.bbclass
  as it's used in image recipe not kernel recipe
* alternatively we can move these to bitbake.conf like similar image variables are:
  meta/conf/bitbake.conf:IMAGE_BASENAME = "${PN}"
  meta/conf/bitbake.conf:IMAGE_NAME = "${IMAGE_BASENAME}-${MACHINE}-${DATETIME}"
  meta/conf/bitbake.conf:IMAGE_LINK_NAME = "${IMAGE_BASENAME}-${MACHINE}"

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit cb576ccb10793329b3e245a64a8b0698a7904607)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years agokernel.bbclass: use the consistent naming schema for initramfs
Martin Jansa [Mon, 20 Nov 2017 18:04:58 +0000 (18:04 +0000)] 
kernel.bbclass: use the consistent naming schema for initramfs

* use INITRAMFS_BASE_NAME and INITRAMFS_SYMLINK_NAME variables, like
  other kernel artifacts are using
* use "${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}" instead of
  "${PV}-${PR}-${MACHINE}-${DATETIME}" to be consistent with other files
* allow to modify default symlink name with INITRAMFS_SYMLINK_NAME
  instead of currently used:
  initramfs_symlink_name=${type}-initramfs-${MACHINE}

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit f3a28cfdc3ba6a0d9bff0ade86571b6df9d042b0)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years agokernel-devicetree.bbclass: Fix and simplify instalation of DTB files
Martin Jansa [Mon, 20 Nov 2017 12:09:25 +0000 (12:09 +0000)] 
kernel-devicetree.bbclass: Fix and simplify instalation of DTB files

* add 2 new variables:
  KERNEL_DTB_BASE_NAME
  KERNEL_DTB_SYMLINK_NAME
  instead of reusing KERNEL_IMAGE_SYMLINK_NAME and than expecting that
  default value ${MACHINE} was being used in e.g.:
  DTB_SYMLINK_NAME=`echo ${symlink_name} | sed "s/${MACHINE}/${DTB_BASE_NAME}/g"`

* install normal DTB files only once even if there is multiple entries
  in KERNEL_IMAGETYPE_FOR_MAKE and don't prefix them with the type of
  the kernel image, use the KERNEL_IMAGETYPE_FOR_MAKE as a prefix only
  when installing them bundled with kernel or initramfs image.

* deploy the files from ${D}/${KERNEL_IMAGEDEST}/ instead of kernel
  build directory, so that we don't need to call
  DTB_PATH=`get_real_dtb_path_in_kernel "${DTB}"`
  again in do_deploy

* create all links in do_deploy task, because default KERNEL_DTB_BASE_NAME
  like KERNEL_IMAGE_BASE_NAME contains PKGR and PKGR is different in
  do_install and do_deploy, because kernel.bbclass calls
  meta/classes/kernel.bbclass:do_install[prefuncs] += "package_get_auto_pr"
  meta/classes/kernel.bbclass:do_deploy[prefuncs] += "package_get_auto_pr"

* the filenames are a bit different, but with separate variable it
  should be easier for other bbclasses which use these DTB files to
  find them correctly, just use either the cannonical name
  $dtb_base_name.$dtb_ext or $dtb_base_name-${KERNEL_DTB_SYMLINK_NAME}.$dtb_ext
  because PKGR (and other PKG* variables) might be different in your
  task and kernel.do_deploy task.

* fix DTB files being deployed with incorrect filenames when
  KERNEL_IMAGE_SYMLINK_NAME isn't set to ${MACHINE}, e.g. instead of
  the default:
-rw-r--r-- 2 bitbake bitbake 1.4K Nov 20 07:41 deploy/images/raspberrypi3-64/Image-1-4.9.59+git0+e7976b2aff-r0.2-lirc-rpi-20171120043031.dtbo
lrwxrwxrwx 2 bitbake bitbake   64 Nov 20 07:41 deploy/images/raspberrypi3-64/Image-lirc-rpi.dtbo -> Image-1-4.9.59+git0+e7976b2aff-r0.2-lirc-rpi-20171120043031.dtbo
lrwxrwxrwx 2 bitbake bitbake   64 Nov 20 07:41 deploy/images/raspberrypi3-64/lirc-rpi.dtbo -> Image-1-4.9.59+git0+e7976b2aff-r0.2-lirc-rpi-20171120043031.dtbo
  I was getting:
-rw-r--r-- 2 bitbake bitbake 1348 Nov 20 10:28 deploy/images/raspberrypi3-64/Image-linux-raspberrypi-lirc-rpi.dtbo
lrwxrwxrwx 2 bitbake bitbake   37 Nov 20 10:28 deploy/images/raspberrypi3-64/Image-linux-raspberrypi-lirc-rpi-master-20171120102653.dtbo -> Image-linux-raspberrypi-lirc-rpi.dtbo
lrwxrwxrwx 2 bitbake bitbake   37 Nov 20 10:28 deploy/images/raspberrypi3-64/lirc-rpi.dtbo -> Image-linux-raspberrypi-lirc-rpi.dtbo
  and e.g. sdcard_image-rpi.bbclass from meta-raspberrypi:
  https://github.com/agherzan/meta-raspberrypi/blob/37e4e18f4a745ce8dc11f7e40a29da0859ff13c6/classes/sdcard_image-rpi.bbclass
  was failing in:
  mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${DTB_BASE_NAME}.dtb ::${DTB_BASE_NAME}.dtb
  because ${KERNEL_IMAGETYPE}-${DTB_BASE_NAME}.dtb doesn't exist in my
  build, due to
  DTB_SYMLINK_NAME=`echo ${symlink_name} | sed "s/${MACHINE}/${DTB_BASE_NAME}/g"`
  not replacing whole "${KERNEL_IMAGE_SYMLINK_NAME}" (read ${MACHINE})
  with just ${DTB_BASE_NAME}

* with this change applied the deploy dir looks like this:
-rw-r--r-- 2 bitbake bitbake 1.4K Nov 20 15:49 deploy/images/raspberrypi3-64/lirc-rpi-1-4.9.59+git0+e7976b2aff-r0.8-raspberrypi3-64-20171120154716.dtbo
lrwxrwxrwx 2 bitbake bitbake   74 Nov 20 15:49 deploy/images/raspberrypi3-64/lirc-rpi.dtbo -> lirc-rpi-1-4.9.59+git0+e7976b2aff-r0.8-raspberrypi3-64-20171120154716.dtbo
lrwxrwxrwx 2 bitbake bitbake   74 Nov 20 15:49 deploy/images/raspberrypi3-64/lirc-rpi-raspberrypi3-64.dtbo -> lirc-rpi-1-4.9.59+git0+e7976b2aff-r0.8-raspberrypi3-64-20171120154716.dtbo
  and works correctly even with DISTRO using different naming scheme

* the sdcard_image-rpi.bbclass still needs to be modified, I've provided
  updated version here:
  https://github.com/agherzan/meta-raspberrypi/pull/159

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit 7e0e6c976396c1bc46ef3382d1d272c0ff2c765a)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years agokernel-devicetree.bbclass: Use lowercase names for shell variables
Martin Jansa [Mon, 20 Nov 2017 15:43:07 +0000 (15:43 +0000)] 
kernel-devicetree.bbclass: Use lowercase names for shell variables

* just to make it more clear what is local shell variable and what is
  replaced by bitbake from the metadata and also to prevent the variable
  to be incorrectly expanded by bitbake if someone happens to define
  e.g. DTB_BASE_NAME

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit 47dc3bd11b0fac9b50b6784aab3f3828d4ea957b)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years agokernel-devicetree.bbclass: Add support to generate append to kernel
Otavio Salvador [Thu, 21 Sep 2017 13:58:33 +0000 (10:58 -0300)] 
kernel-devicetree.bbclass: Add support to generate append to kernel

The are use cases where the Device Tree appended to the kernel is
convinient, so we generate the bundle concatenating the kernel (and
potentionally the initramfs) and the Device Tree binaries.

To enable it, set KERNEL_DEVICETREE_BUNDLE variable to '1'

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit f044567326988e84e5d72040e9387c3240836ddb)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years agokernel: Move Device Tree support to kernel.bbclass
Otavio Salvador [Tue, 12 Sep 2017 20:36:06 +0000 (17:36 -0300)] 
kernel: Move Device Tree support to kernel.bbclass

The Device Tree is commonly used but it is still kept as a .inc file
instead of a proper class. Instead now we move the Device Tree code to
a kernel-devicetree class and automatically enable it when the
KERNEL_DEVICETREE variable is set.

To avoid breakage in existing layers, we kept a linux-dtb.inc file
which raises a warning telling the user about the change so in next
release this can be removed.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 03a00be7f2062aefef0e51ef20a4c9737f6685e7)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years agokernel: Stop using update-alternatives
Otavio Salvador [Tue, 5 Sep 2017 06:04:44 +0000 (03:04 -0300)] 
kernel: Stop using update-alternatives

The update-alternatives where using relative links so not being really
in use since December 2016 (see OE-Core:c7bc46b9 "kernel: Fix
symlinks") so instead we now generate the relative symlinks during the
do_install task and drop the update-alternatives use at all.

Acked-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 10a1b293191268e6792ac8e27bd6427f1974c7ce)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years agoRevert "linux-dtb.inc: search dtb in all subdirectories of arch/*/boot"
Andreas Oberritter [Fri, 17 Nov 2017 17:50:26 +0000 (18:50 +0100)] 
Revert "linux-dtb.inc: search dtb in all subdirectories of arch/*/boot"

This reverts commit f296e05812b13483c3452054f3aa48cab43194d5.

6 years agoRevert "Revert "kernel: Fix symlinks""
Andreas Oberritter [Fri, 17 Nov 2017 17:49:14 +0000 (18:49 +0100)] 
Revert "Revert "kernel: Fix symlinks""

This reverts commit 11880ea22d59f747d231bb50cbdd70b611867a77.

6 years agonfs-utils: fix dependency on libdevmapper after recipe split from lvm2
Andreas Oberritter [Wed, 24 May 2017 09:34:19 +0000 (11:34 +0200)] 
nfs-utils: fix dependency on libdevmapper after recipe split from lvm2

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years agopackage.bbclass: Store required variables for custom metadata fields
Andreas Oberritter [Fri, 28 Apr 2017 20:37:16 +0000 (22:37 +0200)] 
package.bbclass: Store required variables for custom metadata fields

Previously these variables could only be set from inside
do_package_write_{deb,ipk,rpm}.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years agoRevert "kernel: Fix symlinks"
Andreas Oberritter [Fri, 21 Apr 2017 10:34:00 +0000 (12:34 +0200)] 
Revert "kernel: Fix symlinks"

This reverts commit c7bc46b9bc29dd0953ab8d63b50fa105bb66892e.

It broke dpkg's update-alternatives, which requires absolute paths.

| update-alternatives: error: alternative path is not absolute as it should be

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years agokernel-fitimage.bbclass: fix arm64 target
Andreas Oberritter [Thu, 6 Apr 2017 18:49:49 +0000 (20:49 +0200)] 
kernel-fitimage.bbclass: fix arm64 target

On arm64, possible targets are Image (with or without compression)
and vmlinux. Use vmlinux, because that's what uboot_prep_kimage
expects.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years agokernel-fitimage.bbclass: search dtb in all subdirectories of arch/*/boot
Andreas Oberritter [Thu, 23 Mar 2017 00:27:35 +0000 (01:27 +0100)] 
kernel-fitimage.bbclass: search dtb in all subdirectories of arch/*/boot

Some architectures, like arm64, organize dts files in vendor
subdirectories.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years agolinux-dtb.inc: search dtb in all subdirectories of arch/*/boot
Andreas Oberritter [Wed, 22 Mar 2017 22:53:53 +0000 (23:53 +0100)] 
linux-dtb.inc: search dtb in all subdirectories of arch/*/boot

Some architectures, like arm64, organize dts files in vendor
subdirectories.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years agognupg: create a package for gpgv
Andreas Oberritter [Mon, 20 Mar 2017 14:09:51 +0000 (15:09 +0100)] 
gnupg: create a package for gpgv

It is a small version of gpg which can only verify signatures. It
should be installable on its own. This matches the behaviour of
the gnupg 1.4 recipe, which was removed recently.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years agoffmpeg: Build libpostproc even if global gpl flag is unset
Andreas Oberritter [Sat, 11 Feb 2017 22:50:38 +0000 (23:50 +0100)] 
ffmpeg: Build libpostproc even if global gpl flag is unset

The libpostproc package has an explicit GPLv2+ license tag.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years agodpkg: disable logging in update-alternatives
Andreas Oberritter [Sat, 28 Jan 2017 21:01:56 +0000 (22:01 +0100)] 
dpkg: disable logging in update-alternatives

It caused problems during do_rootfs.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years agopython3-pycairo: use waf.bbclass
Andreas Oberritter [Mon, 16 Jan 2017 23:33:02 +0000 (00:33 +0100)] 
python3-pycairo: use waf.bbclass

Fixes compilation with PARALLEL_MAKE = "-j N -l N".

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years agobluez5: disable parallel make
Andreas Oberritter [Thu, 22 Dec 2016 00:16:01 +0000 (01:16 +0100)] 
bluez5: disable parallel make

| cp ../bluez-5.43/tools/hid2hci.rules tools/97-hid2hci.rules
| cp: cannot create regular file 'tools/97-hid2hci.rules': No such file or directory

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years agoopenssl: use version script from jessie-backports
Andreas Oberritter [Wed, 5 Oct 2016 08:08:16 +0000 (10:08 +0200)] 
openssl: use version script from jessie-backports

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years agodpkg: enable nativesdk
Andreas Oberritter [Sun, 23 Oct 2016 20:37:20 +0000 (20:37 +0000)] 
dpkg: enable nativesdk

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years agolibtimedate-perl: enable nativesdk
Andreas Oberritter [Sun, 23 Oct 2016 20:36:30 +0000 (20:36 +0000)] 
libtimedate-perl: enable nativesdk

nativesdk-dpkg depends on it.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years ago{insane,package{,_deb,_ipk}}.bbclass: support 'Breaks' control field by introducing...
Andreas Oberritter [Wed, 10 Sep 2014 17:54:25 +0000 (19:54 +0200)] 
{insane,package{,_deb,_ipk}}.bbclass: support 'Breaks' control field by introducing RBREAKS

Required by Debian Policy section 7.3.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years agoapt: optionally build and install manpages
Andreas Oberritter [Tue, 10 May 2016 12:19:28 +0000 (14:19 +0200)] 
apt: optionally build and install manpages

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
6 years agoapt: Introduce apt-opkg
Andreas Oberritter [Thu, 28 Aug 2014 18:30:15 +0000 (20:30 +0200)] 
apt: Introduce apt-opkg

'apt-opkg' provides a stripped-down opkg frontend with an apt backend.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoapt: dselect depends on perl
Andreas Oberritter [Tue, 10 May 2016 20:05:46 +0000 (22:05 +0200)] 
apt: dselect depends on perl

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoapt: fix rpath error during configure
Andreas Oberritter [Tue, 10 May 2016 19:56:29 +0000 (21:56 +0200)] 
apt: fix rpath error during configure

| checking for shared library run path origin... /bin/sh: ../apt-1.0.10.1/buildlib/config.rpath: No such file or directory

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agopackage_deb.bbclass: compress control.tar with the same algorithm as data.tar
Andreas Oberritter [Mon, 23 Mar 2015 14:41:51 +0000 (15:41 +0100)] 
package_deb.bbclass: compress control.tar with the same algorithm as data.tar

Yields better compression with xz and fixes a problem invoking gzip.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agodpkg: always install dpkg-configure.service
Andreas Oberritter [Wed, 27 Aug 2014 21:03:09 +0000 (23:03 +0200)] 
dpkg: always install dpkg-configure.service

systemd.bbclass handles everything based on DISTRO_FEATURES.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agodpkg: update packages and files to match Debian more closely
Andreas Oberritter [Wed, 27 Aug 2014 21:44:51 +0000 (23:44 +0200)] 
dpkg: update packages and files to match Debian more closely

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agodpkg: simplify replacing perl interpreter in scripts
Andreas Oberritter [Thu, 28 Aug 2014 14:04:21 +0000 (16:04 +0200)] 
dpkg: simplify replacing perl interpreter in scripts

Target scripts already contain the correct value.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agodpkg: clean-up packaging of start-stop-daemon
Andreas Oberritter [Thu, 28 Aug 2014 14:00:07 +0000 (16:00 +0200)] 
dpkg: clean-up packaging of start-stop-daemon

Dpkg-start-stop is not an intuitive name. Just call the package
start-stop-daemon. Don't rdepend on it, because it might be empty.

Install start-stop-daemon to /sbin to match Debian and busybox.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agodpkg: set license field to more common "GPLv2+"
Andreas Oberritter [Wed, 27 Aug 2014 21:10:42 +0000 (23:10 +0200)] 
dpkg: set license field to more common "GPLv2+"

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agodpkg: use PACKAGECONFIG
Andreas Oberritter [Wed, 27 Aug 2014 20:49:43 +0000 (22:49 +0200)] 
dpkg: use PACKAGECONFIG

Keep default dependencies as before. Set default compressor to xz
if selected, gzip otherwise.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agopackage_manager/deb: implement BAD_RECOMMENDATIONS
Andreas Oberritter [Mon, 25 Aug 2014 23:59:03 +0000 (01:59 +0200)] 
package_manager/deb: implement BAD_RECOMMENDATIONS

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agopackage_manager/deb: create Packages.xz
Andreas Oberritter [Tue, 2 Sep 2014 22:38:18 +0000 (00:38 +0200)] 
package_manager/deb: create Packages.xz

apt-get prefers it over Packages.gz.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agopackage_manager/deb: let apt-get handle postinst scripts
Andreas Oberritter [Thu, 28 Aug 2014 12:05:02 +0000 (14:05 +0200)] 
package_manager/deb: let apt-get handle postinst scripts

With all required environment variables and configuration options in
apt.conf in place, apt-get is able to install packages offline, i.e.
when creating the rootfs, including the execution of postinst scripts
and updating the package database. This is new behaviour.

At the time the deleted code would have executed, its work was already
done by apt-get.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoapt: recommend gnupg
Andreas Oberritter [Fri, 22 Apr 2016 00:10:06 +0000 (02:10 +0200)] 
apt: recommend gnupg

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoapt: more fine-grained packaging
Andreas Oberritter [Fri, 22 Apr 2016 00:09:20 +0000 (02:09 +0200)] 
apt: more fine-grained packaging

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoapt: group variables (license, configuration, packaging)
Andreas Oberritter [Fri, 22 Apr 2016 00:01:24 +0000 (02:01 +0200)] 
apt: group variables (license, configuration, packaging)

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoapt: merge apt.inc into .bb
Andreas Oberritter [Thu, 21 Apr 2016 23:58:31 +0000 (01:58 +0200)] 
apt: merge apt.inc into .bb

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoapt: merge with apt-native
Andreas Oberritter [Thu, 21 Apr 2016 23:55:22 +0000 (01:55 +0200)] 
apt: merge with apt-native

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoapt-native: drop obsolete patches
Andreas Oberritter [Thu, 21 Apr 2016 23:40:23 +0000 (01:40 +0200)] 
apt-native: drop obsolete patches

0001-Revert-always-run-dpkg-configure-a-at-the-end-of-our.patch and
noconfigure.patch are obsolete due to dpkg's new --force-script-chrootless
option.

db_linking_hack.patch and environment.patch are marked as backports
from 2007.

no-curl.patch: curl-native is already a prerequisite.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoapt: rewrite do_install
Andreas Oberritter [Thu, 21 Apr 2016 23:25:15 +0000 (01:25 +0200)] 
apt: rewrite do_install

Install missing files and directories (apt, apt-ftparchive,
apt-helper, apt-mark, trusted.gpg.d).

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoapt: use default packaging rules for -dev package
Andreas Oberritter [Thu, 21 Apr 2016 23:04:18 +0000 (01:04 +0200)] 
apt: use default packaging rules for -dev package

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoapt: use default packaging rules for base package, prepend apt-utils
Andreas Oberritter [Thu, 21 Apr 2016 23:02:44 +0000 (01:02 +0200)] 
apt: use default packaging rules for base package, prepend apt-utils

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoapt: use default packaging rules for manpages
Andreas Oberritter [Thu, 21 Apr 2016 22:55:12 +0000 (00:55 +0200)] 
apt: use default packaging rules for manpages

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoapt-native: use sed to prepare apt.conf.sample
Andreas Oberritter [Thu, 21 Apr 2016 22:50:13 +0000 (00:50 +0200)] 
apt-native: use sed to prepare apt.conf.sample

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoapt: merge apt-package.inc into .bb
Andreas Oberritter [Thu, 21 Apr 2016 22:42:21 +0000 (00:42 +0200)] 
apt: merge apt-package.inc into .bb

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoapt-native: merge apt-native.inc into .bb
Andreas Oberritter [Thu, 21 Apr 2016 22:40:22 +0000 (00:40 +0200)] 
apt-native: merge apt-native.inc into .bb

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agopackage_manager/deb: pass option --force-script-chrootless to dpkg
Andreas Oberritter [Thu, 25 Sep 2014 22:31:08 +0000 (00:31 +0200)] 
package_manager/deb: pass option --force-script-chrootless to dpkg

Fixes removal of packages with new dpkg version.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoapt-native: Use option --force-script-chrootless for rootfs
Andreas Oberritter [Thu, 28 Aug 2014 03:50:36 +0000 (05:50 +0200)] 
apt-native: Use option --force-script-chrootless for rootfs

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agodpkg-native: hardcode SYSCONFDIR to sysconfdir_native in update-alternatives
Andreas Oberritter [Thu, 28 Aug 2014 14:05:50 +0000 (16:05 +0200)] 
dpkg-native: hardcode SYSCONFDIR to sysconfdir_native in update-alternatives

It needs to be relative to DPKG_INSTDIR when installing.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agodpkg: update-alternatives-dpkg should conflict with other providers
Andreas Oberritter [Wed, 27 Aug 2014 21:45:35 +0000 (23:45 +0200)] 
dpkg: update-alternatives-dpkg should conflict with other providers

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agodpkg: implement offline mode for update-alternatives
Andreas Oberritter [Wed, 27 Aug 2014 15:37:20 +0000 (17:37 +0200)] 
dpkg: implement offline mode for update-alternatives

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agonfs-utils: add packageconfig options: blkid, ipv6, libmount, nfsv4, nfsv41 and tirpc
Andreas Oberritter [Mon, 26 Oct 2015 22:33:50 +0000 (23:33 +0100)] 
nfs-utils: add packageconfig options: blkid, ipv6, libmount, nfsv4, nfsv41 and tirpc

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agokeyutils: new recipe (version 1.5.9)
Andreas Oberritter [Mon, 6 Jun 2016 15:26:06 +0000 (17:26 +0200)] 
keyutils: new recipe (version 1.5.9)

Used by nfs-utils for nfsidmap, if available. Includes a backported patch for
musl and a description text from meta-ivi.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agogptfdisk: put sgdisk into its own package
Andreas Oberritter [Thu, 15 Sep 2016 14:37:15 +0000 (16:37 +0200)] 
gptfdisk: put sgdisk into its own package

This allows to avoid pulling in ncurses if only sgdisk is needed.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoconnman: enable connman-wait-online.service
Andreas Oberritter [Mon, 14 Nov 2016 23:37:28 +0000 (00:37 +0100)] 
connman: enable connman-wait-online.service

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoconnman: Simplify and fix packaging of VPN plug-ins
Andreas Oberritter [Wed, 6 Aug 2014 11:03:45 +0000 (13:03 +0200)] 
connman: Simplify and fix packaging of VPN plug-ins

- Use simple static packaging.
- Move VPN runtime dependencies from connman to the individual plug-ins.
- Create a connmann-ppp package containing libppp-plugin.so, which is
  a shared library needed by l2tp and pptp plug-ins.
- Let connman suggest VPN packages instead of recommending them, so they
  don't get installed by default.
- Remove unknown configure options (--with-pptp --with-l2tp)

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoruby: Update to 2.4.4
Armin Kuster [Thu, 3 May 2018 16:00:59 +0000 (09:00 -0700)] 
ruby: Update to 2.4.4

The dot releases are maint only.

2.4.4 included:
CVE-2017-17742: HTTP response splitting in WEBrick
CVE-2018-6914: Unintentional file and directory creation with directory traversal in tempfile and tmpdir
CVE-2018-8777: DoS by large request in WEBrick
CVE-2018-8778: Buffer under-read in String#unpack
CVE-2018-8779: Unintentional socket creation by poisoned NUL byte in UNIXServer and UNIXSocket
CVE-2018-8780: Unintentional directory traversal by poisoned NUL byte in Dir

2.4.3 includes:
CVE-2017-17405: Command injection vulnerability in Net::FTP

Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agoruby: fix typo in gmp PACKAGECONFIG option
Andre McCurdy [Mon, 22 Jan 2018 23:38:06 +0000 (15:38 -0800)] 
ruby: fix typo in gmp PACKAGECONFIG option

(From OE-Core rev: 9fb931b69ece7f8a644f9e25600bcbbc9266a761)

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agoruby: remove spurious db build dependency
Ross Burton [Wed, 1 Nov 2017 09:57:53 +0000 (09:57 +0000)] 
ruby: remove spurious db build dependency

The dbm module uses gdbm by default which is also a build dependency.

(From OE-Core rev: 79121ff54420e5cc331552ca5620aed81a36aac9)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agoruby: upgrade to 2.4.2
Leonardo Sandoval [Thu, 12 Oct 2017 18:35:23 +0000 (11:35 -0700)] 
ruby: upgrade to 2.4.2

The CVE-2017-14064 patch is already at 2.4.2 as explained on
project's commit, so removing from the recipe & repo.

    commit 83735ba29a0bfdaffa8e9c2a1dc025c3b0b63153
    Author: hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
    Date:   Wed Apr 12 00:21:18 2017 +0000

        Merge json-2.0.4.

          * https://github.com/flori/json/releases/tag/v2.0.4
          * https://github.com/flori/json/blob/09fabeb03e73ed88dc8ce8f19d76ac59e51dae20/CHANGES.md#2017-03-23-204

        git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

(From OE-Core rev: 6e37a88af155d5e5453fb0f44bb11d6f8e406438)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Fixup for pyro context]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agoruby: upgrade to 2.4.1
Leonardo Sandoval [Mon, 22 May 2017 18:47:01 +0000 (11:47 -0700)] 
ruby: upgrade to 2.4.1

(From OE-Core rev: 3ff2d0bc7a8e7a7e8c8e953dc0ccf84d891688ef)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Fixup for pyro context]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agoscripts/test-dependencies.sh: remove
Martin Jansa [Wed, 25 Apr 2018 14:07:05 +0000 (14:07 +0000)] 
scripts/test-dependencies.sh: remove

* with RSS used in pyro this script isn't very useful anymore
* RSS makes sure that the dependencies are almost always deterministic
  the only case known to me where dependencies are different based on
  what was already built in TMPDIR are runtime dependencies resolved
  by shlibs code in package.bbclass (which is using global pkgdata, not
  specific to given recipe and its RSS) as described here:
  https://bugzilla.yoctoproject.org/show_bug.cgi?id=9217#c4
  but for this case it's not worth running complete test-dependencies.sh
  runs

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agosstate-diff-machines.sh: Replace MACHINE_ARCH only at the beginning and separated...
Martin Jansa [Wed, 25 Apr 2018 14:07:04 +0000 (14:07 +0000)] 
sstate-diff-machines.sh: Replace MACHINE_ARCH only at the beginning and separated with dash

* I had some components where the MACHINE name was also included in PV of allarch recipe
  which was tripping the script into saying that they have different signatures (because
  for one MACHINE was the string in PV replaced with 'MACHINE' and not for other MACHINEs

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agosstate-sysroot-cruft.sh: Extend the whitelist
Martin Jansa [Wed, 25 Apr 2018 14:07:03 +0000 (14:07 +0000)] 
sstate-sysroot-cruft.sh: Extend the whitelist

* add more php5 entries

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agolibpng: update SRC_URI to use osl
Armin Kuster [Thu, 19 Apr 2018 16:00:57 +0000 (09:00 -0700)] 
libpng: update SRC_URI to use osl

ERROR: libpng-1.6.28-r0 do_checkuri: Fetcher failure for URL: 'http://downloads.sourceforge.net/project/libpng/libpng16/1.6.28/libpng-1.6.28.tar.xz'. URL http://downloads.sourceforge.net/project/libpng/libpng16/1.6.28/libpng-1.6.28.tar.xz doesn't work
ERROR: libpng-1.6.28-r0 do_checkuri: Function failed: do_checkuri

Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agompfr: Update SRC_URI to use gnu
Armin Kuster [Thu, 19 Apr 2018 15:49:40 +0000 (08:49 -0700)] 
mpfr: Update SRC_URI to use gnu

ERROR: mpfr-native-3.1.5-r0 do_checkuri: Fetcher failure for URL: 'http://www.mpfr.org/mpfr-3.1.5/mpfr-3.1.5.tar.xz'. URL http://www.mpfr.org/mpfr-3.1.5/mpfr-3.1.5.tar.xz doesn't work
ERROR: mpfr-native-3.1.5-r0 do_checkuri: Function failed: do_checkuri

Found gnu has the same copy

Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agobyacc: Fic SRC_URI to use yocto sources loc.
Armin Kuster [Thu, 19 Apr 2018 15:03:45 +0000 (08:03 -0700)] 
byacc: Fic SRC_URI to use yocto sources loc.

ERROR: byacc-native-20161202-r0 do_checkuri: Fetcher failure for URL: 'ftp://invisible-island.net/byacc/byacc-20161202.tgz'. URL ftp://invisible-island.net/byacc/byacc-20161202.tgz doesn't work
ERROR: byacc-native-20161202-r0 do_checkuri: Function failed: do_checkuri

Use the file saved in the Yocto Project sources repos

Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agolibpng: fix MIRRORS usage
Ross Burton [Fri, 28 Jul 2017 15:55:55 +0000 (16:55 +0100)] 
libpng: fix MIRRORS usage

MIRRORS needs to be pairs of values for the original URL to match and the
location find it on the mirror.

(From OE-Core rev: a649f3da630e8ca2d3ca58b610f3918720dd5229)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agoneon: update SRC_URI
Armin Kuster [Thu, 19 Apr 2018 14:00:05 +0000 (07:00 -0700)] 
neon: update SRC_URI

ERROR: neon-0.30.2-r0 do_checkuri: Function failed: do_checkuri
ERROR: neon-native-0.30.2-r0 do_checkuri: Fetcher failure for URL: 'http://www.webdav.org/neon/neon-0.30.2.tar.gz'. URL http://www.webdav.org/neon/neon-0.30.2.tar.gz doesn't work

Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agolibpng: use SourceForge mirror
Ross Burton [Mon, 24 Jul 2017 20:34:49 +0000 (21:34 +0100)] 
libpng: use SourceForge mirror

The Gentoo mirror also deletes old versions when they're not used, so revert
back to the canonical SourceForge site, adding /older-releases/ to MIRRORS to
handle new releases moving the version we want.

Original idea by Maxin B. John <maxin.john@intel.com>.

(From OE-Core rev: 791a3493c88c9c249f21f6d893b2061e1d8a0af6)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Updated for Pyro context]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agogdb: fix header ordering for TRAP_HWBKPT
Daniel Díaz [Thu, 12 Apr 2018 22:55:08 +0000 (17:55 -0500)] 
gdb: fix header ordering for TRAP_HWBKPT

This error can appear in gdb/nat/linux-ptrace.c because of
the order in which some headers are processed:
| In file included from ../../gdb-7.11.1/gdb/nat/linux-ptrace.c:20:0:
| ../../gdb-7.11.1/gdb/nat/linux-ptrace.h:175:22: error: expected identifier before numeric constant
|  # define TRAP_HWBKPT 4
|                       ^
| Makefile:2357: recipe for target 'linux-ptrace.o' failed
| make[2]: *** [linux-ptrace.o] Error 1
| make[2]: *** Waiting for unfinished jobs....
| make[2]: Leaving directory '/oe/build/tmp-rpb-glibc/work/aarch64-linaro-linux/gdb/7.11.1-r0/build-aarch64-linaro-linux/gdb'
| Makefile:8822: recipe for target 'all-gdb' failed
| make[1]: *** [all-gdb] Error 2
| make[1]: Leaving directory '/oe/build/tmp-rpb-glibc/work/aarch64-linaro-linux/gdb/7.11.1-r0/build-aarch64-linaro-linux'
| Makefile:846: recipe for target 'all' failed
| make: *** [all] Error 2

A patch from GDB's current master solves the issue.

(From OE-Core rev: 4aaf747099714ec11158571527396ed9e818729e)

Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Armin Kuster <akuster@mvista.com>
7 years agoglibc: add missing TRAP_BRANCH/TRAP_HWBKPT definitions
Fathi Boudra [Thu, 12 Apr 2018 22:55:07 +0000 (17:55 -0500)] 
glibc: add missing TRAP_BRANCH/TRAP_HWBKPT definitions

Patch submitted upstream, pending to be merged:
https://sourceware.org/bugzilla/show_bug.cgi?id=21286

(From OE-Core rev: 11ebb5054e5ec1171ade90249e3a30ac8174a35a)

Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Armin Kuster <akuster@mvista.com>
7 years agolibmpc: fix SRC_URI
Oleksandr Kravchuk [Mon, 19 Feb 2018 01:32:08 +0000 (02:32 +0100)] 
libmpc: fix SRC_URI

(From OE-Core rev: 462021964a79a6c940cbce80a31a2ea3283e797c)

(From OE-Core rev: 04e5af853927cff2072fb4278a9d9fa2bd99812f)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agodistcc: Change SRC_URI
Armin Kuster [Fri, 23 Mar 2018 04:57:20 +0000 (21:57 -0700)] 
distcc: Change SRC_URI

ERROR: distcc-3.2-r0 do_fetch: Fetcher failure: Unable to find revision d8b18df3e9dcbe4f092bed565835d3975e99432c in branch 3.2 even from upstream
ERROR: distcc-3.2-r0 do_fetch: Fetcher failure for URL: 'git://github.com/distcc/distcc.git;branch=3.2'. Unable to fetch URL from any source.
ERROR: distcc-3.2-r0 do_fetch: Function failed: base_do_fetch

[v2]
upstream deleted the branch and the hash no longer exists.

Took the git snapshot from yocto and created a copy on my github.
There was no offical 3.2 release, only rc versions.

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agoe2fsprogs: fix compatibility with glibc 2.27
Tanu Kaskinen [Wed, 21 Mar 2018 17:08:38 +0000 (19:08 +0200)] 
e2fsprogs: fix compatibility with glibc 2.27

glibc 2.27 added function copy_file_range(), and e2fsprogs happens to
have a different function with the same name. The conflict made
e2fsprogs-native build fail.

Here's a backport of a fix from upstream, the fix was released in
e2fsprogs 1.43.8.

The master branch doesn't need this fix, since it has new enough
e2fsprogs version. At least rocko, pyro and morty need this, I haven't
checked older stable branches. Apparently the problematic function was
introduced in e2fsprogs version 1.43.

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agoqemu: fix memfd_create with glibc 2.27
Ross Burton [Mon, 19 Mar 2018 15:59:32 +0000 (17:59 +0200)] 
qemu: fix memfd_create with glibc 2.27

glibc 2.27 has added memfd_create() but this conflicts with a copy in qemu, so
take a patch from upstream to fix building with glibc 2.27.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agopackage_manager.py: Explicit complementary fail
Niko Mauno [Fri, 16 Mar 2018 09:01:53 +0000 (11:01 +0200)] 
package_manager.py: Explicit complementary fail

When running bitbake -c populate_sdk <image_name>, it is expected that
packages matching SDKIMAGE_INSTALL_COMPLEMENTARY name mask (unless
declared in PACKAGE_EXCLUDE_COMPLEMENTARY) are installed to resulting
SDK. Underlying mechanism issues a package manager install call for set
of complementary packages. However the mechanism doesn't seem to inform
the user all too obviously in case the package manager command behind
install_complementary() method fails -- and since it is combined with
attempt_only=True option, user might end up wondering why several *-dev,
*-dbg packages are missing from resulting SDK.

Improve associated install() method behaviour in affected OpkgPM and
DpkgPM classes so that a problematic state of affairs becomes directly
obvious for bitbake user, resulting in shell output like:

  WARNING: someimage-1.0-r0 do_populate_sdk: Unable to install packages.
  Command '...' returned 1:
  Collected errors:
   * Solver encountered 1 problem(s):
   * Problem 1/1:
   *   - package somepkg-dev-1.0-r0.x86 requires somepkg = 1.0-r0, but
         none of the providers can be installed
   *
   * Solution 1:
   *   - allow deinstallation of someotherpkg-1.1-r1.x86

   *   - do not ask to install a package providing somepkg-dev

   * Solution 2:
   *   - do not ask to install a package providing somepkg-dev

(From OE-Core rev: 2502bd591c37bf532d02dc6b37fc1e8b5224fb0a)

Signed-off-by: Niko Mauno <niko.mauno@vaisala.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 0d4459e7086fced5e9e0b4ad10378c9eddec56a8)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agolibvorbis: CVE-2018-5146
Tanu Kaskinen [Sat, 31 Mar 2018 05:21:32 +0000 (08:21 +0300)] 
libvorbis: CVE-2018-5146

Prevent out-of-bounds write in codebook decoding. The bug could allow
code execution from a specially crafted Ogg Vorbis file.

References:
https://www.debian.org/security/2018/dsa-4140
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-5146

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibvorbis: CVE-2017-14632
Tanu Kaskinen [Sat, 31 Mar 2018 05:21:31 +0000 (08:21 +0300)] 
libvorbis: CVE-2017-14632

Xiph.Org libvorbis 1.3.5 allows Remote Code Execution upon freeing
uninitialized memory in the function vorbis_analysis_headerout() in
info.c when vi->channels<=0, a similar issue to Mozilla bug 550184.

References:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-14632

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>