pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/appstream



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Tue Dec  3 10:35:56 UTC 2024

Modified Files:
        pkgsrc/devel/appstream: distinfo
Added Files:
        pkgsrc/devel/appstream/patches: patch-src_as-system-info.c

Log Message:
appstream: Add reasonable default for total mem.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/devel/appstream/distinfo
cvs rdiff -u -r0 -r1.4 \
    pkgsrc/devel/appstream/patches/patch-src_as-system-info.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/appstream/distinfo
diff -u pkgsrc/devel/appstream/distinfo:1.5 pkgsrc/devel/appstream/distinfo:1.6
--- pkgsrc/devel/appstream/distinfo:1.5 Mon Aug  5 09:25:09 2024
+++ pkgsrc/devel/appstream/distinfo     Tue Dec  3 10:35:55 2024
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.5 2024/08/05 09:25:09 wiz Exp $
+$NetBSD: distinfo,v 1.6 2024/12/03 10:35:55 jperkin Exp $
 
 BLAKE2s (appstream-1.0.3.tar.gz) = 7462c8e84f9e8dfa131e4fbb70296a0416bcdb698a8984d5b9d0ce3535e7d604
 SHA512 (appstream-1.0.3.tar.gz) = 8438c1c4368d1322a69f88238ded31126cdfa2750cd611d8040245e90b7802c92bb6978ea8aba680fe70c744e4a1bfe3ef9cc10628682e5d2165994183bbd815
 Size (appstream-1.0.3.tar.gz) = 3963596 bytes
+SHA1 (patch-src_as-system-info.c) = 4be564f1967cab897f171b76b77cfd40afb45945

Added files:

Index: pkgsrc/devel/appstream/patches/patch-src_as-system-info.c
diff -u /dev/null pkgsrc/devel/appstream/patches/patch-src_as-system-info.c:1.4
--- /dev/null   Tue Dec  3 10:35:56 2024
+++ pkgsrc/devel/appstream/patches/patch-src_as-system-info.c   Tue Dec  3 10:35:55 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_as-system-info.c,v 1.4 2024/12/03 10:35:55 jperkin Exp $
+
+Provide a reasonable fallback for retrieving total memory.
+
+--- src/as-system-info.c.orig  2024-12-03 10:27:19.242982022 +0000
++++ src/as-system-info.c
+@@ -499,7 +499,7 @@ as_get_physical_memory_total (void)
+       GlobalMemoryStatusEx (&statex);
+       return statex.ullTotalPhys / (1024 * 1024);
+ #else
+-#error "Implementation of as_get_physical_memory_total() missing for this OS."
++      return sysconf(_SC_PHYS_PAGES) * sysconf(_SC_PAGESIZE);
+ #endif
+ }
+ 



Home | Main Index | Thread Index | Old Index