Skip to contentSkip to conversation

package/libmodplug: update to git version

Buildroot Thomas Petazzoni via buildroot 1 participant 1 message Feb 20, 2023

lore
Share & tools
lore
#0 lore raw

commit: https://git.buildroot.net/buildroot/commit/?id=369ff9a88ff8e88b78287e37fbaf191e57598be2
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/next

The libmodplug release has not been updated for over 5 years. The git version contains many bug fixes, including for OOB accesses, unaligned reads and writes, etc.

This git repository is the official home of libmodplug (by the original author), however a new release does not seem likely anytime soon:
there are multiple open issues in the repository asking the author to tag a release, all without a response.

Update buildroot to the current version of libmodplug from the official git repository. The build system changed from autotools to cmake since the last version.

We add a _CPE_ID_VERSION variable pointing to the latest stable version, so that we don't get notified about all older CVEs that we are not affected by.

---
 package/libmodplug/libmodplug.hash | 2 +-
 package/libmodplug/libmodplug.mk   | 9 ++++++---
 2 files changed, 7 insertions(+), 4 deletions(-)
package/libmodplug/libmodplug.hash +1 -1
index e75152e27f..01ff71014c 100644
@@ -1,3 +1,3 @@
 # Locally computed:
-sha256  457ca5a6c179656d66c01505c0d95fafaead4329b9dbaa0f997d00a3508ad9de  libmodplug-0.8.9.0.tar.gz
+sha256  d145910ca10c3ecab0019d45be7e31ea6be1d1ee951ef0e1f747c9752d20f043  libmodplug-d1b97ed.tar.gz
 sha256  49942e7b3b175f549e751feb08b5270ca6f6c5fb7a1be9f9517db275ec32c92e  COPYING
package/libmodplug/libmodplug.mk +6 -3
index 98c38a3b00..735d0e704d 100644
@@ -4,11 +4,14 @@
 #
 ################################################################################
 
-LIBMODPLUG_VERSION = 0.8.9.0
-LIBMODPLUG_SITE = http://downloads.sourceforge.net/project/modplug-xmms/libmodplug/$(LIBMODPLUG_VERSION)
+LIBMODPLUG_VERSION = d1b97ed
+LIBMODPLUG_SITE = $(call github,Konstanty,libmodplug,$(LIBMODPLUG_VERSION))
 LIBMODPLUG_INSTALL_STAGING = YES
 LIBMODPLUG_LICENSE = Public Domain
 LIBMODPLUG_LICENSE_FILES = COPYING
 LIBMODPLUG_CPE_ID_VENDOR = konstanty_bialkowski
+# Our version is actually newer than this, but having this allows to
+# not have reports about CVEs for versions older than 0.8.9.0.
+LIBMODPLUG_CPE_ID_VERSION = 0.8.9.0
 
-$(eval $(autotools-package))
+$(eval $(cmake-package))

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot