mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
commit
2944f2c88b
@ -3,11 +3,11 @@
|
||||
# Copyright (C) 2020-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="libcdio"
|
||||
PKG_VERSION="2.1.0"
|
||||
PKG_SHA256="8550e9589dbd594bfac93b81ecf129b1dc9d0d51e90f9696f1b2f9b2af32712b"
|
||||
PKG_VERSION="2.1.1"
|
||||
PKG_SHA256="d3a7230f6804d5a84bf9805ed4a0de705b156299510c8085ae1fc693ca239f87"
|
||||
PKG_LICENSE="GPLv3"
|
||||
PKG_SITE="https://www.gnu.org/software/libcdio/"
|
||||
PKG_URL="https://ftpmirror.gnu.org/libcdio/${PKG_NAME}-${PKG_VERSION}.tar.bz2"
|
||||
PKG_URL="https://github.com/libcdio/libcdio/releases/download/${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}.tar.bz2"
|
||||
PKG_DEPENDS_TARGET="toolchain"
|
||||
PKG_LONGDESC="A CD-ROM reading and control library."
|
||||
PKG_BUILD_FLAGS="+pic"
|
||||
|
@ -1,68 +0,0 @@
|
||||
From 0d550dc9307901edd817333a5b530241d08ad889 Mon Sep 17 00:00:00 2001
|
||||
From: Miguel Borges de Freitas <enen92@kodi.tv>
|
||||
Date: Wed, 2 Feb 2022 20:47:02 +0000
|
||||
Subject: [PATCH] Use getmntent/setmntent for reading mounts
|
||||
|
||||
Since fields in the mtab and fstab files are separated by
|
||||
whitespace, octal escapes are used to represent the characters
|
||||
space (\040), tab (\011), newline (\012), and backslash (\\) in
|
||||
those files when they occur in one of the four strings in a
|
||||
mntent structure. The routines addmntent() and getmntent() will
|
||||
convert from string representation to escaped representation and
|
||||
back. When converting from escaped representation, the sequence
|
||||
\134 is also converted to a backslash.
|
||||
---
|
||||
lib/driver/gnu_linux.c | 20 ++++++++++----------
|
||||
1 file changed, 10 insertions(+), 10 deletions(-)
|
||||
|
||||
diff --git a/lib/driver/gnu_linux.c b/lib/driver/gnu_linux.c
|
||||
index 6a6aa4dd..dddf333c 100644
|
||||
--- a/lib/driver/gnu_linux.c
|
||||
+++ b/lib/driver/gnu_linux.c
|
||||
@@ -672,13 +672,13 @@ static int is_mounted (const char * device, char * target) {
|
||||
char real_device_1[PATH_MAX];
|
||||
char real_device_2[PATH_MAX];
|
||||
|
||||
- char file_device[PATH_MAX];
|
||||
- char file_target[PATH_MAX];
|
||||
+ struct mntent *fs;
|
||||
+
|
||||
+ fp = setmntent("/proc/mounts", "r");
|
||||
|
||||
- fp = fopen ( "/proc/mounts", "r");
|
||||
/* Older systems just have /etc/mtab */
|
||||
if(!fp)
|
||||
- fp = fopen ( "/etc/mtab", "r");
|
||||
+ fp = setmntent("/etc/mtab", "r");
|
||||
|
||||
/* Neither /proc/mounts nor /etc/mtab could be opened, give up here */
|
||||
if(!fp) return 0;
|
||||
@@ -691,19 +691,19 @@ static int is_mounted (const char * device, char * target) {
|
||||
|
||||
/* Read entries */
|
||||
|
||||
- while ( fscanf(fp, "%s %s %*s %*s %*d %*d\n", file_device, file_target) != EOF ) {
|
||||
- if (NULL == cdio_realpath(file_device, real_device_2)) {
|
||||
+ while ((fs = getmntent(fp)) != NULL) {
|
||||
+ if (NULL == cdio_realpath(fs->mnt_fsname, real_device_2)) {
|
||||
cdio_debug("Problems resolving device %s: %s\n",
|
||||
- file_device, strerror(errno));
|
||||
+ fs->mnt_fsname, strerror(errno));
|
||||
}
|
||||
if(!strcmp(real_device_1, real_device_2)) {
|
||||
- strcpy(target, file_target);
|
||||
- fclose(fp);
|
||||
+ strcpy(target, fs->mnt_dir);
|
||||
+ endmntent(fp);
|
||||
return 1;
|
||||
}
|
||||
|
||||
}
|
||||
- fclose(fp);
|
||||
+ endmntent(fp);
|
||||
return 0;
|
||||
}
|
||||
|
||||
--
|
||||
2.30.2
|
||||
|
@ -2,8 +2,8 @@
|
||||
# Copyright (C) 2022-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="mimalloc"
|
||||
PKG_VERSION="2.1.9"
|
||||
PKG_SHA256="dd8ff701691f19bf4e225d42ef0d3d5e6ca0e03498ee4f044a0402e4697e4a20"
|
||||
PKG_VERSION="3.0.1"
|
||||
PKG_SHA256="6a514ae31254b43e06e2a89fe1cbc9c447fdbf26edc6f794f3eb722f36e28261"
|
||||
PKG_LICENSE="MIT"
|
||||
PKG_SITE="https://github.com/microsoft/mimalloc"
|
||||
PKG_URL="https://github.com/microsoft/mimalloc/archive/refs/tags/v${PKG_VERSION}.tar.gz"
|
||||
|
@ -2,8 +2,8 @@
|
||||
# Copyright (C) 2022-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="mold"
|
||||
PKG_VERSION="2.35.1"
|
||||
PKG_SHA256="912b90afe7fde03e53db08d85a62c7b03a57417e54afc72c08e2fa07cab421ff"
|
||||
PKG_VERSION="2.36.0"
|
||||
PKG_SHA256="3f57fe75535500ecce7a80fa1ba33675830b7d7deb1e5ee9a737e2bc43cdb1c7"
|
||||
PKG_LICENSE="MIT"
|
||||
PKG_SITE="https://github.com/rui314/mold"
|
||||
PKG_URL="https://github.com/rui314/mold/archive/refs/tags/v${PKG_VERSION}.tar.gz"
|
||||
|
@ -3,8 +3,8 @@
|
||||
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="pango"
|
||||
PKG_VERSION="1.55.5"
|
||||
PKG_SHA256="e396126ea08203cbd8ef12638e6222e2e1fd8aa9cac6743072fedc5f2d820dd8"
|
||||
PKG_VERSION="1.56.0"
|
||||
PKG_SHA256="1fb98b338ee6f7cf8ef96153b7d242f4568fe60f9b7434524eca630a57bd538b"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://www.pango.org/"
|
||||
PKG_URL="https://download.gnome.org/sources/pango/${PKG_VERSION:0:4}/pango-${PKG_VERSION}.tar.xz"
|
||||
|
@ -2,8 +2,8 @@
|
||||
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="kernel-firmware"
|
||||
PKG_VERSION="20241210"
|
||||
PKG_SHA256="2bb035708576d076f97d4196a1c22e0a4d33fbb0210d05428d0bf4f243e99af5"
|
||||
PKG_VERSION="20250109"
|
||||
PKG_SHA256="a12cb38f4793394bf56c6702be29b6e4f09deca0714943bba98a492030651570"
|
||||
PKG_LICENSE="other"
|
||||
PKG_SITE="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/"
|
||||
PKG_URL="https://cdn.kernel.org/pub/linux/kernel/firmware/linux-firmware-${PKG_VERSION}.tar.xz"
|
||||
|
@ -3,8 +3,8 @@
|
||||
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="setuptools"
|
||||
PKG_VERSION="75.7.0"
|
||||
PKG_SHA256="886ff7b16cd342f1d1defc16fc98c9ce3fde69e087a4e1983d7ab634e5f41f4f"
|
||||
PKG_VERSION="75.8.0"
|
||||
PKG_SHA256="c5afc8f407c626b8313a86e10311dd3f661c6cd9c09d4bf8c15c0e11f9f2b0e6"
|
||||
PKG_LICENSE="OSS"
|
||||
PKG_SITE="https://pypi.org/project/setuptools"
|
||||
PKG_URL="https://files.pythonhosted.org/packages/source/${PKG_NAME:0:1}/${PKG_NAME}/${PKG_NAME,,}-${PKG_VERSION}.tar.gz"
|
||||
|
Loading…
x
Reference in New Issue
Block a user