* remove chown from makefiles too?
@ 2009-07-30 14:59 Eric Sandeen
[not found] ` <4A71B53D.7070205-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Eric Sandeen @ 2009-07-30 14:59 UTC (permalink / raw)
To: NILFS Users mailing list
Hi, after the setuid bits got removed from the make install process,
this sort of thing is still left in several Makefiles:
install-exec-hook:
list='$(sbin_PROGRAMS)'; \
for p in $$list; do \
chown root $(DESTDIR)$(sbindir)/$$p$(EXEEXT); \
done
But this fails for a normal user installing into a chroot, as an
rpmbuild by a non-root user might do.
I don't think there's any reason for the chown; can this just be removed?
Thanks,
-Eric
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: remove chown from makefiles too?
[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>
0 siblings, 1 reply; 5+ messages in thread
From: Ryusuke Konishi @ 2009-07-30 15:53 UTC (permalink / raw)
To: users-JrjvKiOkagjYtjvyW6yDsg, sandeen-H+wXaHxf7aLQT0dZR+AlfA
Hi,
On Thu, 30 Jul 2009 09:59:09 -0500, Eric Sandeen <sandeen-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
> Hi, after the setuid bits got removed from the make install process,
> this sort of thing is still left in several Makefiles:
>
> install-exec-hook:
> list='$(sbin_PROGRAMS)'; \
> for p in $$list; do \
> chown root $(DESTDIR)$(sbindir)/$$p$(EXEEXT); \
> done
>
> But this fails for a normal user installing into a chroot, as an
> rpmbuild by a non-root user might do.
>
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: remove chown from makefiles too?
[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>
0 siblings, 1 reply; 5+ messages in thread
From: Eric Sandeen @ 2009-07-30 16:25 UTC (permalink / raw)
To: Ryusuke Konishi; +Cc: users-JrjvKiOkagjYtjvyW6yDsg
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.
Thanks,
-Eric
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: remove chown from makefiles too?
[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>
0 siblings, 1 reply; 5+ messages in thread
From: Ryusuke Konishi @ 2009-07-30 16:45 UTC (permalink / raw)
To: sandeen-H+wXaHxf7aLQT0dZR+AlfA; +Cc: users-JrjvKiOkagjYtjvyW6yDsg
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
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
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: remove chown from makefiles too?
[not found] ` <20090731.014518.56564034.ryusuke-sG5X7nlA6pw@public.gmane.org>
@ 2009-07-30 17:48 ` Eric Sandeen
0 siblings, 0 replies; 5+ messages in thread
From: Eric Sandeen @ 2009-07-30 17:48 UTC (permalink / raw)
To: Ryusuke Konishi; +Cc: users-JrjvKiOkagjYtjvyW6yDsg
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-07-30 17:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.