Package Details: psp-newlib 4.4.0-1

Git Clone URL: https://aur.archlinux.org/psp-newlib.git (read-only, click to copy)
Package Base: psp-newlib
Description: A fork of newlib for the PSP (psp)
Upstream URL: https://github.com/pspdev/newlib
Licenses: GPL
Submitter: xantares
Maintainer: xantares
Last Packager: xantares
Votes: 1
Popularity: 0.000000
First Submitted: 2014-03-26 16:35 (UTC)
Last Updated: 2024-01-24 20:03 (UTC)

Dependencies (3)

Sources (1)

Latest Comments

bpierre commented on 2021-11-22 11:21 (UTC)

Does not build successfully, I had to apply this patch:

 PKGBUILD        | 12 ++++++++++--
 fix_build.patch | 32 ++++++++++++++++++++++++++++++++
 2 files changed, 42 insertions(+), 2 deletions(-)

diff --git c/PKGBUILD i/PKGBUILD
index 805b547..477a07f 100644
--- c/PKGBUILD
+++ i/PKGBUILD
@@ -8,8 +8,16 @@ license=('GPL')
 groups=('psp')
 makedepends=('psp-gcc-base' 'psp-binutils' 'psp-sdk-base')
 options=('!buildflags' '!strip' 'staticlibs')
-source=("https://github.com/pspdev/newlib/archive/newlib-${pkgver//./_}-PSP.zip")
-sha256sums=('SKIP')
+source=("https://github.com/pspdev/newlib/archive/newlib-${pkgver//./_}-PSP.zip"
+        fix_build.patch)
+sha256sums=('SKIP'
+            'c9028feda455b4bfbb12c71f79d72b4a89b2d79d7799afa1bfc8dcbb68206375')
+
+prepare()
+{
+  cd "$srcdir/newlib-newlib-${pkgver//./_}-PSP"
+  patch -p1 -i "$srcdir/fix_build.patch"
+}

 build()
 {
diff --git c/fix_build.patch i/fix_build.patch
new file mode 100644
index 0000000..0b1d0b8
--- /dev/null
+++ i/fix_build.patch
@@ -0,0 +1,32 @@
+ newlib/libc/sys/psp/libcglue.c | 6 +++---
+ newlib/libc/sys/psp/netdb.c    | 1 +
+ 2 files changed, 4 insertions(+), 3 deletions(-)
+
+diff --git i/newlib/libc/sys/psp/libcglue.c w/newlib/libc/sys/psp/libcglue.c
+index fa00b4966..d64ba4fa0 100644
+--- i/newlib/libc/sys/psp/libcglue.c
++++ w/newlib/libc/sys/psp/libcglue.c
+@@ -677,9 +677,9 @@ int _stat(const char *filename, struct stat *buf)
+       return __psp_set_errno(ret);
+   }
+   
+-  buf->st_ctime = psp_to_epoch_time(psp_stat.st_ctime);
+-  buf->st_atime = psp_to_epoch_time(psp_stat.st_atime);
+-  buf->st_mtime = psp_to_epoch_time(psp_stat.st_mtime);
++  buf->st_ctime = psp_to_epoch_time(psp_stat.sce_st_ctime);
++  buf->st_atime = psp_to_epoch_time(psp_stat.sce_st_atime);
++  buf->st_mtime = psp_to_epoch_time(psp_stat.sce_st_mtime);
+ 
+   buf->st_mode = (psp_stat.st_mode & 0xfff) |
+              ((FIO_S_ISLNK(psp_stat.st_mode))?(S_IFLNK):(0)) |
+diff --git i/newlib/libc/sys/psp/netdb.c w/newlib/libc/sys/psp/netdb.c
+index 58e07d750..6dbc3bbbf 100644
+--- i/newlib/libc/sys/psp/netdb.c
++++ w/newlib/libc/sys/psp/netdb.c
+@@ -1,5 +1,6 @@
+ /* Simple gethostbyname and gethostbyaddr replacements using the resolver lib */
+ #include <stdio.h>
++#include <string.h>
+ #include <netdb.h>
+ #include <netinet/in.h>
+ #include <arpa/inet.h>

Koren commented on 2017-11-02 14:47 (UTC) (edited on 2017-11-02 14:49 (UTC) by Koren)

The package does not build anymore: ``` ==> Validating source files with md5sums... newlib-1.20.0.tar.gz ... Passed newlib-1.20.0-PSP.patch ... FAILED ``` md5 for the second file should be updated to `93d9055414f910c321fd5c33cea8584e`

jsh6789 commented on 2015-02-10 11:31 (UTC)

Source URL changed to ftp://sourceware.org/pub/newlib/newlib-1.20.0.tar.gz