|
1 | | -diff --git xbps-clean/bin/xbps-create/main.c xbps-workdir/bin/xbps-create/main.c |
2 | | -index 373e744..73ed280 100644 |
3 | | ---- xbps-clean/bin/xbps-create/main.c |
4 | | -+++ xbps-workdir/bin/xbps-create/main.c |
5 | | -@@ -41,7 +41,7 @@ |
6 | | - #include <libgen.h> |
7 | | - #include <locale.h> |
8 | | - #include <dirent.h> |
9 | | -- |
10 | | -+#include <limits.h> |
11 | | - #include <xbps.h> |
12 | | - #include "queue.h" |
13 | | - |
14 | 1 | diff --git xbps-clean/bin/xbps-install/util.c xbps-workdir/bin/xbps-install/util.c |
15 | 2 | index 7cabdd1..0182300 100644 |
16 | 3 | --- xbps-clean/bin/xbps-install/util.c |
@@ -46,21 +33,12 @@ index 57df730..a4109d0 100755 |
46 | 33 |
|
47 | 34 | echo "CC = $CC" >>$CONFIG_MK |
48 | 35 | echo "CFLAGS = -O2" >>$CONFIG_MK |
49 | | -@@ -275,7 +275,7 @@ fi |
50 | | - # |
51 | | - # Check for some compiler warning flags. |
52 | | - # |
53 | | --for f in all extra error shadow "format=2" missing-prototypes \ |
54 | | -+for f in all extra shadow "format=2" missing-prototypes \ |
55 | | - missing-declarations nested-externs vla overlength-strings \ |
56 | | - unsafe-loop-optimizations undef sign-compare \ |
57 | | - missing-include-dirs old-style-definition \ |
58 | 36 | @@ -677,7 +677,7 @@ fi |
59 | 37 | # pkg-config is required to know dependencies for static linking. |
60 | 38 | # |
61 | 39 | printf "Checking for pkg-config ... " |
62 | 40 | -PKGCONFIG_BIN=$(_which pkg-config) |
63 | | -+PKGCONFIG_BIN="x86_64-vinix-mlibc-pkg-config" |
| 41 | ++PKGCONFIG_BIN=$(_which ${HOST}-pkg-config) |
64 | 42 | if [ -z "$PKGCONFIG_BIN" ]; then |
65 | 43 | echo "not found, exiting." |
66 | 44 | exit 1 |
@@ -164,7 +142,7 @@ index 9890a84..ba3b073 100644 |
164 | 142 | +++ xbps-workdir/data/repod-main.conf |
165 | 143 | @@ -1 +1 @@ |
166 | 144 | -repository=https://a-hel-fi.m.voidlinux.org/current |
167 | | -+repository=https://localhost/repo/current |
| 145 | ++repository=https://example.com/repo/current |
168 | 146 | diff --git xbps-clean/lib/Makefile xbps-workdir/lib/Makefile |
169 | 147 | index 847bfdd..f80c0f6 100644 |
170 | 148 | --- xbps-clean/lib/Makefile |
@@ -215,27 +193,3 @@ index f7b9142..d68b8f8 100644 |
215 | 193 | #include <netinet/in.h> |
216 | 194 | #include <netinet/tcp.h> |
217 | 195 |
|
218 | | -diff --git xbps-clean/lib/portableproplib/prop_object.c xbps-workdir/lib/portableproplib/prop_object.c |
219 | | -index 50cd918..8295b44 100644 |
220 | | ---- xbps-clean/lib/portableproplib/prop_object.c |
221 | | -+++ xbps-workdir/lib/portableproplib/prop_object.c |
222 | | -@@ -956,14 +956,14 @@ _prop_object_internalize_map_file(const char *fname) |
223 | | - if ((sb.st_size & pgmask) == 0) |
224 | | - need_guard = true; |
225 | | - |
226 | | -- mf->poimf_xml = mmap(NULL, need_guard ? mf->poimf_mapsize + pgsize |
227 | | -- : mf->poimf_mapsize, |
228 | | -- PROT_READ, MAP_SHARED, fd, (off_t)0); |
229 | | -- (void) close(fd); |
230 | | -- if (mf->poimf_xml == MAP_FAILED) { |
231 | | -+ mf->poimf_xml = malloc(need_guard ? mf->poimf_mapsize + pgsize : mf->poimf_mapsize); |
232 | | -+ if (mf->poimf_xml == NULL) { |
233 | | - _PROP_FREE(mf, M_TEMP); |
234 | | - return (NULL); |
235 | | - } |
236 | | -+ ssize_t rsz = read(fd, mf->poimf_xml, need_guard ? mf->poimf_mapsize + pgsize : mf->poimf_mapsize); |
237 | | -+ (void) close(fd); |
238 | | -+ |
239 | | - (void)posix_madvise(mf->poimf_xml, mf->poimf_mapsize, POSIX_MADV_SEQUENTIAL); |
240 | | - |
241 | | - if (need_guard) { |
0 commit comments