gentoo-ebuilds/app-accessibility/edbrowse/files/edbrowse-3.8.12-userflags_quickjs.patch
Nicolas PARLANT 61940017be
app-accessibility/edbrowse: add 3.8.12
update SRC_URI (redirect)

update license according to LICENSE :
> In summary: GPL + MIT public license + CC0 1.0,
> + curl license if edbrowse is packaged with curl.

deps :
remove htmltidy, no longer needed since 3.8.3
remove ed (can't find why it was added with 3.8.2.1 ebuild)
add missing openssl (removed with a 'bump' 3.7.4)

tools/quickjobfixup is no longer required since 3.8.4

patches :
the patch for edbrowse is merged
update the patch for quickjs (flags/path)

use append-atomic-flags as a workaround for musl

docs :
add local before vars
add README

add a basic test

Closes: https://bugs.gentoo.org/946062
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/43155
Closes: https://github.com/gentoo/gentoo/pull/43155
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-26 06:01:27 +01:00

31 lines
885 B
Diff

Remove -O2 and -g cflags
Remove CC and AR hardcoded
HOST_CC is not used for the object we want
--- a/quickjs/Makefile 2025-07-09 12:39:19.000000000 -0000
+++ a/quickjs/Makefile 2025-07-25 13:53:30.173279954 -0000
@@ -126,13 +126,13 @@
AR=cosmoar
else
HOST_CC=gcc
- CC=$(CROSS_PREFIX)gcc
- CFLAGS+=-g -Wall -MMD -MF $(OBJDIR)/$(@F).d
+ CC ?= $(CROSS_PREFIX)gcc
+ CFLAGS+=-Wall -MMD -MF $(OBJDIR)/$(@F).d
CFLAGS += -Wno-array-bounds -Wno-format-truncation -Wno-infinite-recursion
ifdef CONFIG_LTO
AR=$(CROSS_PREFIX)gcc-ar
else
- AR=$(CROSS_PREFIX)ar
+ AR ?= $(CROSS_PREFIX)ar
endif
endif
STRIP?=$(CROSS_PREFIX)strip
@@ -160,7 +160,7 @@
CFLAGS+=$(DEFINES)
CFLAGS_DEBUG=$(CFLAGS) -O0
CFLAGS_SMALL=$(CFLAGS) -Os
-CFLAGS_OPT=$(CFLAGS) -O2
+CFLAGS_OPT=$(CFLAGS)
CFLAGS_NOLTO:=$(CFLAGS_OPT)
ifdef CONFIG_COSMO
LDFLAGS+=-s # better to strip by default