Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions srcpkgs/fonts-roboto-ttf/template
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Template file for 'fonts-roboto-ttf'
pkgname=fonts-roboto-ttf
version=3.016
revision=1
revision=2
depends="font-util"
short_desc="Google's signature family of fonts"
maintainer="travankor <travankor@tuta.io>"
license="Apache-2.0"
license="OFL-1.1"
homepage="https://fonts.google.com/specimen/Roboto"
distfiles="https://github.com/googlefonts/roboto-3-classic/releases/download/v${version}/Roboto_v${version}.zip
https://github.com/googlefonts/RobotoMono/archive/refs/tags/v3.001.tar.gz"
Expand All @@ -16,6 +16,6 @@ provides="font:sans-serif-0_1 font:monospace-0_1"

do_install() {
vmkdir usr/share/fonts/roboto
vcopy hinted/*.ttf usr/share/fonts/roboto
vcopy hinted/static/*.ttf usr/share/fonts/roboto
vcopy RobotoMono*/fonts/otf/*.otf usr/share/fonts/roboto
}
15 changes: 15 additions & 0 deletions srcpkgs/libx86emu/patches/0003-lds-real-nasm3-prefix-order.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Update the 0003_lds_real golden reference for nasm >= 3.0, which
emits the address-size and operand-size prefixes in swapped order
(67 66 instead of 66 67). Same instruction, same length, identical
emulation result; only the memory dump of the code bytes differs.

--- a/test/0003_lds_real.done
+++ b/test/0003_lds_real.done
@@ -1,6 +1,6 @@
; - - memory
; 0 1 2 3 4 5 6 7 8 9 a b c d e f
-00001000: 66 67 c4 35 00 20 00 00 66 0f b4 3f 67 0f b5 29
+00001000: 67 66 c4 35 00 20 00 00 66 0f b4 3f 67 0f b5 29
00001010: f4
00002000: 70 8c 30 78 14 41
00002010: cb e3 c8 da 8c a3
2 changes: 2 additions & 0 deletions srcpkgs/libx86emu/template
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ homepage="https://github.com/wfeldt/libx86emu"
distfiles="https://github.com/wfeldt/libx86emu/archive/refs/tags/${version}.tar.gz"
checksum=03754aede79530baa0e862e1aad5527e9c1bd3371736b1ab5a2bc769e4a3d680

disable_parallel_check=yes

do_configure() {
rm git2log
echo ${version} > VERSION
Expand Down
29 changes: 29 additions & 0 deletions srcpkgs/nasm/patches/CVE-2026-6067.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
From 80ce049f35d3b194d5ba62e8e8e417a5211b35cb Mon Sep 17 00:00:00 2001
From: Nick Clifton <nickclifton@github.com>
Date: Mon, 29 Jun 2026 13:53:14 -0700
Subject: [PATCH] outobj: fix buffer overflow when too many segments in a group

The number of entries in a group was hard-coded, but not enforced.

Reported-by: <BreakingBad6@github.com>
Fixes: https://github.com/netwide-assembler/nasm/issues/203
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
---
output/outobj.c | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/output/outobj.c b/output/outobj.c
index 2059a0cac..e07a79931 100644
--- a/output/outobj.c
+++ b/output/outobj.c
@@ -1737,6 +1737,10 @@ obj_directive(enum directive directive, char *value)
*/
continue;
}
+ if (grp->nentries >= GROUP_MAX) {
+ nasm_nonfatal("too many segments in a group");
+ return DIRR_ERROR;
+ }
for (seg = seghead; seg; seg = seg->next)
if (!strcmp(seg->name, p))
break;
41 changes: 9 additions & 32 deletions srcpkgs/nasm/template
Original file line number Diff line number Diff line change
@@ -1,55 +1,32 @@
# Template file for 'nasm'
pkgname=nasm
version=2.16.03
version=3.02
revision=1
build_style=gnu-configure
make_build_target="all"
make_check_target="golden test"
checkdepends="perl"
hostmakedepends="groff perl perl-Font-TTF perl-IO-String perl-Sort-Versions
ghostscript fonts-roboto-ttf"
short_desc="80x86 assembler designed for portability and modularity"
maintainer="Rutpiv <roger_freitas@live.com>"
license="BSD-2-Clause"
homepage="https://www.nasm.us"
changelog="https://nasm.us/doc/nasmdocc.html"
distfiles="https://www.nasm.us/pub/nasm/releasebuilds/${version}/nasm-${version}.tar.xz"
checksum=1412a1c760bbd05db026b6c0d1657affd6631cd0a63cddb6f73cc6d4aa616148

build_options="doc"
desc_option_doc="Enable building documentation"
build_options_default="doc"

disable_parallel_check=yes

subpackages=" "

if [ "$build_option_doc" ]; then
subpackages="nasm-doc"
hostmakedepends="groff perl perl-Font-TTF perl-IO-String perl-Sort-Versions
ghostscript source-sans-pro liberation-fonts-ttf"
fi

pre_configure() {
if [ "$build_option_doc" ]; then
vsed -i doc/psfonts.ph -e "s;SourceSansPro;SourceSans3;g"
fi
}
checksum=87336eba53b4acfe917424ab5d500d2b0054d9f5148d35c2273ccf2cfb712f0d
# Tarballs ship no golden files; the harness generates
# them with the same binary, so the check is circular
make_check=no

post_build() {
if [ "$build_option_doc" ]; then
make doc
fi
make doc
}

post_install() {
if [ "$build_option_doc" ]; then
make -C doc DESTDIR="${DESTDIR}" docdir=/usr/share/doc/nasm install
fi
make -C doc DESTDIR="${DESTDIR}" docdir=/usr/share/doc/nasm install
vlicense LICENSE
}

nasm-doc_package() {
short_desc+=" - documentation"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/share/doc/nasm
vlicense LICENSE
Expand Down