This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 5/5] PowerPC: Move remaining, nptl/sysdeps/unix/sysv/linux/powerpc/ files.
- From: Adhemerval Zanella <azanella at linux dot vnet dot ibm dot com>
- To: Roland McGrath <roland at hack dot frob dot com>
- Cc: "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Sun, 25 May 2014 19:30:56 -0300
- Subject: Re: [PATCH 5/5] PowerPC: Move remaining, nptl/sysdeps/unix/sysv/linux/powerpc/ files.
- Authentication-results: sourceware.org; auth=none
- References: <537F4CC7 dot 6040202 at linux dot vnet dot ibm dot com> <20140523220615 dot 5E66B2C3B74 at topped-with-meat dot com>
On 23-05-2014 19:06, Roland McGrath wrote:
> When you are posting a change that is largely verbatim file moves, and
> especially if you aren't expecting people to apply the patch themselves
> with 'patch' (because you supplied a git branch, or because you advise
> people they'll have to use 'git apply'), using 'git diff --renames' makes
> the diff a lot easier to review.
Thanks for tip, I'll use later.
>
>> * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved ...
>> * sysdeps/unix/sysv/linux/powerpc/nptl/Makefile: ... here.
> Not helpful. At the end of the day, there should not be a
> sysdeps/unix/sysv/linux/powerpc/nptl/ subdirectory at all. You need to
> merge the nptl/.../Makefile contents into the existing
> sysdeps/unix/sysv/linux/powerpc/Makefile instead. Note that they
> really should have an 'ifeq ($(subdir),nptl)' conditional that the
> old Makefile was missing.
Indeed, thanks for spotting it. I'll update the patch with this modification
to remove sysdep/.../nptl/Makefile
diff --git a/sysdeps/unix/sysv/linux/powerpc/Makefile b/sysdeps/unix/sysv/linux/powerpc/Makefile
index 395342f..28f7165 100644
--- a/sysdeps/unix/sysv/linux/powerpc/Makefile
+++ b/sysdeps/unix/sysv/linux/powerpc/Makefile
@@ -31,3 +31,7 @@ sysdep_headers += bits/ppc.h
sysdep_routines += get_timebase_freq
tests += test-gettimebasefreq
endif
+
+ifeq ($(subdir),nptl)
+libpthread-routines += sysdep
+endif
diff --git a/sysdeps/unix/sysv/linux/powerpc/nptl/Makefile b/sysdeps/unix/sysv/linux/powerpc/nptl/Makefile
deleted file mode 100644
index e98c9bd..0000000
--- a/sysdeps/unix/sysv/linux/powerpc/nptl/Makefile
+++ /dev/null
@@ -1,2 +0,0 @@
-# pull in __syscall_error routine
-libpthread-routines += sysdep
> The rest looks fine off hand.
>
>
> Thanks,
> Roland
>