[new_pkg] file ->

This commit is contained in:
Developer 2024-12-14 00:17:52 +00:00
parent 6ab709cef3
commit 9e23e4fe3f
3 changed files with 61 additions and 5 deletions

22
main/file/.PKGINFO Normal file
View File

@ -0,0 +1,22 @@
# Generated by makepkg 7.0.0
# using fakeroot version 1.36
pkgname = file
pkgbase = file
xdata = pkgtype=pkg
pkgver = 5.46-2
pkgdesc = File type identification utility
url = https://www.darwinsys.com/file/
builddate = 1734135470
packager = Tuxcore <dev@tuxcore.org>
size = 10582196
arch = x86_64
license = custom
provides = libmagic.so=1-64
depend = glibc
depend = zlib
depend = xz
depend = bzip2
depend = libseccomp
depend = libseccomp.so=2-64
depend = zstd
depend = libzstd.so=1-64

View File

@ -0,0 +1,31 @@
From b3384a1fbfa1fee99986e5750ab8e700de4f24ad Mon Sep 17 00:00:00 2001
From: Christos Zoulas <christos@zoulas.com>
Date: Thu, 5 Dec 2024 18:35:40 +0000
Subject: [PATCH] PR/579: net147: Fix stack overrun.
---
src/readelf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/readelf.c b/src/readelf.c
index fe4cf5413..d209d86df 100644
--- a/src/readelf.c
+++ b/src/readelf.c
@@ -27,7 +27,7 @@
#include "file.h"
#ifndef lint
-FILE_RCSID("@(#)$File: readelf.c,v 1.196 2024/11/11 15:49:11 christos Exp $")
+FILE_RCSID("@(#)$File: readelf.c,v 1.197 2024/12/05 18:35:40 christos Exp $")
#endif
#ifdef BUILTIN_ELF
@@ -1726,7 +1726,7 @@ dophn_exec(struct magic_set *ms, int clazz, int swap, int fd, off_t off,
Elf64_Phdr ph64;
const char *linking_style;
unsigned char nbuf[NBUFSIZE];
- char interp[128];
+ char interp[NBUFSIZE];
ssize_t bufsize;
size_t offset, align, need = 0;
int pie = 0, dynamic = 0;

View File

@ -1,7 +1,7 @@
# Packager = Tuxcore <dev@tuxcore.org>
pkgname=file
pkgver=5.45
pkgrel=1
pkgver=5.46
pkgrel=2
pkgdesc='File type identification utility'
arch=('x86_64')
license=('custom')
@ -9,9 +9,12 @@ url='https://www.darwinsys.com/file/'
depends=('glibc' 'zlib' 'xz' 'bzip2' 'libseccomp' 'libseccomp.so' 'zstd' 'libzstd.so')
provides=('libmagic.so')
options=('!emptydirs')
source=("https://astron.com/pub/$pkgname/$pkgname-$pkgver.tar.gz"{,.asc})
sha256sums=('fc97f51029bb0e2c9f4e3bffefdaf678f0e039ee872b9de5c002a6d09c784d82'
'SKIP')
source=("https://astron.com/pub/$pkgname/$pkgname-$pkgver.tar.gz"{,.asc}
'0001-PR-579-net147-Fix-stack-overrun.patch')
validpgpkeys=('BE04995BA8F90ED0C0C176C471112AB16CB33B3A') # Christos Zoulas
sha256sums=('c9cc77c7c560c543135edc555af609d5619dbef011997e988ce40a3d75d86088'
'SKIP'
'2db041dcadaf8500a8e10d914890963f27a5b716e97f0baf839e01f7c3d8b576')
prepare() {
cd $pkgname-$pkgver