mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 04:17:25 +00:00
2ecd7e0156
This is fixed in id3lib3.8.3_3.8.3-16.2.debian.tar.xz patch included in
SRC_URI.
Version 3.8.3-7 contains patch for this CVE, we use 3.8.3-16.2.
This can be verified by checking the debian/changelog within this patch
or diffing [1] and [2] and verifying that this can be reverse-applied.
[1] https://snapshot.debian.org/archive/debian/20070819T000000Z/pool/main/i/id3lib3.8.3/id3lib3.8.3_3.8.3-6.diff.gz
[2] https://snapshot.debian.org/archive/debian/20070819T000000Z/pool/main/i/id3lib3.8.3/id3lib3.8.3_3.8.3-7.diff.gz
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 9fff0040f1)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
55 lines
2.2 KiB
BlitzBasic
55 lines
2.2 KiB
BlitzBasic
SUMMARY = "Library for interacting with ID3 tags"
|
|
SECTION = "libs/multimedia"
|
|
LICENSE = "LGPL-2.0-or-later"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7"
|
|
DEPENDS = "zlib"
|
|
|
|
|
|
SRC_URI = "${SOURCEFORGE_MIRROR}/id3lib/id3lib-${PV}.tar.gz;name=archive \
|
|
${DEBIAN_MIRROR}/main/i/id3lib3.8.3/id3lib3.8.3_3.8.3-16.3.debian.tar.xz;name=patch;subdir=${BP} \
|
|
file://acdefine.patch \
|
|
"
|
|
SRC_URI[archive.md5sum] = "19f27ddd2dda4b2d26a559a4f0f402a7"
|
|
SRC_URI[archive.sha256sum] = "2749cc3c0cd7280b299518b1ddf5a5bcfe2d1100614519b68702230e26c7d079"
|
|
SRC_URI[patch.md5sum] = "3ea90c0aedfcb56a53ac760a94bacb9e"
|
|
SRC_URI[patch.sha256sum] = "6170f085972fdeb5fd69e346860100416707bb0b9f3a73a17a64945dc8b7cfe1"
|
|
|
|
CVE_STATUS[CVE-2007-4460] = "patched: fix is included in debian patch"
|
|
|
|
inherit autotools
|
|
|
|
# Unlike other Debian packages, id3lib*.diff.gz contains another series of
|
|
# patches maintained by quilt. So manually apply them before applying other local
|
|
# patches. Also remove all temp files before leaving, because do_patch() will pop
|
|
# up all previously applied patches in the start
|
|
do_patch[depends] += "quilt-native:do_populate_sysroot"
|
|
id3lib_do_patch() {
|
|
cd ${S}
|
|
# it's important that we only pop the existing patches when they've
|
|
# been applied, otherwise quilt will climb the directory tree
|
|
# and reverse out some completely different set of patches
|
|
if [ -d ${S}/patches ]; then
|
|
# whilst this is the default directory, doing it like this
|
|
# defeats the directory climbing that quilt will otherwise
|
|
# do; note the directory must exist to defeat this, hence
|
|
# the test inside which we operate
|
|
QUILT_PATCHES=${S}/patches quilt pop -a
|
|
fi
|
|
if [ -d ${S}/.pc-${BPN} ]; then
|
|
rm -rf ${S}/.pc
|
|
mv ${S}/.pc-${BPN} ${S}/.pc
|
|
QUILT_PATCHES=${S}/debian/patches quilt pop -a
|
|
rm -rf ${S}/.pc ${S}/debian
|
|
fi
|
|
QUILT_PATCHES=${S}/debian/patches quilt push -a
|
|
mv ${S}/.pc ${S}/.pc-${BPN}
|
|
}
|
|
|
|
do_unpack[cleandirs] += "${S}"
|
|
|
|
# We invoke base do_patch at end, to incorporate any local patch
|
|
python do_patch() {
|
|
bb.build.exec_func('id3lib_do_patch', d)
|
|
bb.build.exec_func('patch_do_patch', d)
|
|
}
|