summaryrefslogtreecommitdiff
path: root/databases/sqlite3/files/patch-main.mk
blob: 74065dcf6d5a43216dd111d464ee2568d25283a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- main.mk.orig	2025-06-28 14:24:16 UTC
+++ main.mk
@@ -140,6 +140,7 @@ libdir      ?= $(exec_prefix)/lib
 exec_prefix ?= $(prefix)
 bindir      ?= $(exec_prefix)/bin
 libdir      ?= $(exec_prefix)/lib
+libdatadir  ?= $(exec_prefix)/libdata
 # This makefile does not use any of:
 # sbindir        ?= $(exec_prefix)/sbin
 # sysconfdir     ?= /etc
@@ -469,7 +470,7 @@ install-dir.include = $(DESTDIR)$(includedir)
 install-dir.bin = $(DESTDIR)$(bindir)
 install-dir.lib = $(DESTDIR)$(libdir)
 install-dir.include = $(DESTDIR)$(includedir)
-install-dir.pkgconfig = $(DESTDIR)$(libdir)/pkgconfig
+install-dir.pkgconfig = $(DESTDIR)$(libdatadir)/pkgconfig
 install-dir.man1 = $(DESTDIR)$(mandir)/man1
 install-dir.all = $(install-dir.bin) $(install-dir.include) \
   $(install-dir.lib) $(install-dir.man1) \
@@ -1810,7 +1811,7 @@ tcltest:	./testfixture$(T.exe)
 # The veryquick.test TCL tests.
 #
 tcltest:	./testfixture$(T.exe)
-	./testfixture$(T.exe) $(TOP)/test/veryquick.test $(TESTOPTS)
+	mkdir $(TOP)/testdir && touch $(TOP)/test-out.txt && chown nobody $(TOP)/testdir $(TOP)/test-out.txt && su -m nobody -c "./testfixture$(T.exe) $(TOP)/test/veryquick.test $(TESTOPTS)"
 
 #
 # Runs all the same tests cases as the "tcltest" target but uses