All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Sandeen <sandeen-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Ryusuke Konishi <ryusuke-sG5X7nlA6pw@public.gmane.org>
Cc: users-JrjvKiOkagjYtjvyW6yDsg@public.gmane.org
Subject: Re: remove chown from makefiles too?
Date: Thu, 30 Jul 2009 12:48:04 -0500	[thread overview]
Message-ID: <4A71DCD4.5010502@redhat.com> (raw)
In-Reply-To: <20090731.014518.56564034.ryusuke-sG5X7nlA6pw@public.gmane.org>

Ryusuke Konishi wrote:
> On Thu, 30 Jul 2009 11:25:52 -0500, Eric Sandeen <sandeen-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
>> Ryusuke Konishi wrote:
>>> Hi,
>>> On Thu, 30 Jul 2009 09:59:09 -0500, Eric Sandeen <sandeen-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
>> ...
>>
>>>> I don't think there's any reason for the chown; can this just be removed?
>>> Well, I see.
>>>
>>> I will once remove the chown and normalize it unless the removal makes
>>> inconvenience to someone.
>>>
>>> Thank you for the comment.
>>>
>>> Ryusuke Konishi
>> thanks - on a similar topic, the Makefile in lib/ wants to run ldconfig,
>> I think it's a similar problem for non-root builds.
>>
>> For now I've just worked around these problems in the Fedora build.
> 
> Yes, It's been in my mind.
> 
> Here I attach the patch to remove these install-exec-hooks.
> 
> After some tests, I will push it to the git tree in two separate
> patches.
> 
> Thanks,
> Ryusuke Konishi

Looks good to me.

Reviewed-by: Eric Sandeen <sandeen-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

if you like.  :)

Thanks,
-Eric

> diff --git a/lib/Makefile.am b/lib/Makefile.am
> index 131702b..1dbe74f 100644
> --- a/lib/Makefile.am
> +++ b/lib/Makefile.am
> @@ -23,6 +23,3 @@ libnilfs_la_CFLAGS = -Wall
>  libnilfs_la_CPPFLAGS = -I$(top_srcdir)/include
>  libnilfs_la_LDFLAGS = -version-info $(VERSIONINFO)
>  libnilfs_la_LIBADD = libnilfsmisc.la
> -
> -install-exec-hook:
> -	$(LDCONFIG) $(DESTDIR)$(libdir)
> diff --git a/sbin/cleanerd/Makefile.am b/sbin/cleanerd/Makefile.am
> index edde74e..6fac7ff 100644
> --- a/sbin/cleanerd/Makefile.am
> +++ b/sbin/cleanerd/Makefile.am
> @@ -14,9 +14,3 @@ nilfs_cleanerd_CPPFLAGS = -I$(top_srcdir)/include \
>  nilfs_cleanerd_LDADD = $(top_builddir)/lib/libnilfs.la
>  
>  dist_sysconf_DATA = nilfs_cleanerd.conf
> -
> -install-exec-hook:
> -	list='$(sbin_PROGRAMS)'; \
> -	for p in $$list; do \
> -		chown root $(DESTDIR)$(sbindir)/$$p$(EXEEXT); \
> -	done
> diff --git a/sbin/mkfs/Makefile.am b/sbin/mkfs/Makefile.am
> index bae054a..3fd1288 100644
> --- a/sbin/mkfs/Makefile.am
> +++ b/sbin/mkfs/Makefile.am
> @@ -10,9 +10,3 @@ mkfs_nilfs2_SOURCES = mkfs.c bitops.c ../../lib/crc32.c mkfs.h
>  mkfs_nilfs2_CFLAGS = -Wall
>  mkfs_nilfs2_CPPFLAGS = -I$(top_srcdir)/include
>  mkfs_nilfs2_LDADD = -luuid
> -
> -install-exec-hook:
> -	list='$(sbin_PROGRAMS)'; \
> -	for p in $$list; do \
> -		chown root $(DESTDIR)$(sbindir)/$$p$(EXEEXT); \
> -	done
> diff --git a/sbin/mount/Makefile.am b/sbin/mount/Makefile.am
> index 9aea415..0f8d55f 100644
> --- a/sbin/mount/Makefile.am
> +++ b/sbin/mount/Makefile.am
> @@ -20,9 +20,3 @@ mount_nilfs2_LDADD = $(top_builddir)/lib/libnilfsmisc.la
>  
>  umount_nilfs2_SOURCES = umount.nilfs2.c $(COMMONSOURCES) $(COMMONHEADERS)
>  umount_nilfs2_LDADD = $(top_builddir)/lib/libnilfsmisc.la
> -
> -install-exec-hook:
> -	list='$(sbin_PROGRAMS)'; \
> -	for p in $$list; do \
> -		chown root $(DESTDIR)$(sbindir)/$$p$(EXEEXT); \
> -	done

      parent reply	other threads:[~2009-07-30 17:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-30 14:59 remove chown from makefiles too? Eric Sandeen
     [not found] ` <4A71B53D.7070205-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-07-30 15:53   ` Ryusuke Konishi
     [not found]     ` <20090731.005317.12928769.ryusuke-sG5X7nlA6pw@public.gmane.org>
2009-07-30 16:25       ` Eric Sandeen
     [not found]         ` <4A71C990.3060804-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-07-30 16:45           ` Ryusuke Konishi
     [not found]             ` <20090731.014518.56564034.ryusuke-sG5X7nlA6pw@public.gmane.org>
2009-07-30 17:48               ` Eric Sandeen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A71DCD4.5010502@redhat.com \
    --to=sandeen-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=ryusuke-sG5X7nlA6pw@public.gmane.org \
    --cc=users-JrjvKiOkagjYtjvyW6yDsg@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.