Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 376198 Details for
Bug 470884
dev-libs/elfutils: build fails on uclibc
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix ar.c to use the FUTIMES macro
elfutils-0.158-utimes-fallback.patch (text/plain), 1.17 KB, created by
Alex Guzman
on 2014-05-02 11:19:06 UTC
(
hide
)
Description:
Fix ar.c to use the FUTIMES macro
Filename:
MIME Type:
Creator:
Alex Guzman
Created:
2014-05-02 11:19:06 UTC
Size:
1.17 KB
patch
obsolete
>commit 59c17bb0ccccf65099c539197b0b8ac2853cb780 >Author: Daniel Guzman <daniel@guzman.io> >Date: Fri May 2 02:42:02 2014 +0000 > > [PATCH] Fix ar.c to use FUTIMES macro > > Seems like upstream made a check for FUTIMES > (elfutils-0.158-portability.patch) and added it to strip.c, > but ar.c doesn't have it. Add it there too. > > Signed-off-by: Daniel Guzman <daniel@guzman.io> >--- > src/ar.c | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/src/ar.c b/src/ar.c >index 512d114..b0753de 100644 >--- a/src/ar.c >+++ b/src/ar.c >@@ -49,6 +49,11 @@ > > #include "arlib.h" > >+#ifdef HAVE_FUTIMES >+# define FUTIMES(fd, fname, tvp) futimes (fd, tvp) >+#else >+# define FUTIMES(fd, fname, tvp) utimes (fname, tvp) >+#endif > > /* Name and version of program. */ > static void print_version (FILE *stream, struct argp_state *state); >@@ -693,7 +698,7 @@ do_oper_extract (int oper, const char *arfname, char **argv, int argc, > tv[1].tv_sec = arhdr->ar_date; > tv[1].tv_usec = 0; > >- if (unlikely (futimes (xfd, tv) != 0)) >+ if (unlikely (FUTIMES (xfd, arhdr->ar_name, tv) != 0)) > { > error (0, errno, > gettext ("cannot change modification time of %s"),
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 470884
:
348828
|
348830
|
348832
|
348908
|
349604
|
349608
|
350476
|
350478
|
350480
|
350482
|
350484
|
350486
|
376194
|
376196
| 376198 |
459426
|
459428
|
459430
|
459432
|
459434