osd_login: add --disable-osdlogin for configure osd_login
Subsystems (2)
PATCH 3/3 osd_login: add --disable-osdlogin for configure osd_login
Eino reports,
Configure using the following command
./configure --prefix=/home/username/installs/tmp --exec-prefix=/home/username/installs/tmp
When running "make install" most of the packages are put under /home/username/installs/tmp, but for some reason the install script tries to put osd_login under /sbin, which results in an error:
Making install in osd_login
make[2]: Entering directory /home/username/installs/nfs-utils-1.3.2/utils/osd_login' make[3]: Entering directory /home/username/installs/nfs-utils-1.3.2/utils/osd_login'
/usr/bin/mkdir -p '/sbin'
/usr/bin/install -c osd_login '/sbin'
/usr/bin/install: cannot remove ‘/sbin/osd_login’: Permission denied make[3]: *** [install-dist_sbinSCRIPTS] Error 1
--- configure.ac | 7 +++++++ utils/Makefile.am | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-)
configure.ac +7 -0
@@ -216,6 +216,13 @@ AC_ARG_ENABLE(nfsdcltrack, enable_nfsdcltrack=$enableval, enable_nfsdcltrack="yes") +AC_ARG_ENABLE(osdlogin, + [AC_HELP_STRING([--disable-osdlogin], + [disable osd_login scripts @<:@default=no@:>@])], + enable_osdlogin=$enableval, + enable_osdlogin="yes") + AM_CONDITIONAL(CONFIG_OSD_LOGIN, [test "$enable_osdlogin" = "yes" ]) + dnl Check for TI-RPC library and headers AC_LIBTIRPC
utils/Makefile.am +4 -1
@@ -25,6 +25,10 @@ if CONFIG_NFSDCLTRACK OPTDIRS += nfsdcltrack endif +if CONFIG_OSD_LOGIN +OPTDIRS += osd_login +endif + SUBDIRS = \ exportfs \ mountd \
@@ -32,7 +36,6 @@ SUBDIRS = \ nfsstat \ showmount \ statd \ - osd_login \ $(OPTDIRS) MAINTAINERCLEANFILES = Makefile.in
Signature · 1 line
2.3.5
Quoted 15 lines · Kinglong Mee
Eino reports,
Configure using the following command./configure --prefix=/home/username/installs/tmp --exec-prefix=/home/username/installs/tmpWhen running "make install" most of the packages are put under
/home/username/installs/tmp, but for some reason the install script tries to putosd_loginunder /sbin, which results in an error:Making install in
osd_login
make[2]: Entering directory/home/username/installs/nfs-utils-1.3.2/utils/osd_login' make[3]: Entering directory/home/username/installs/nfs-utils-1.3.2/utils/osd_login'
/usr/bin/mkdir-p '/sbin'
/usr/bin/install-cosd_login'/sbin'
/usr/bin/install: cannot remove ‘/sbin/osd_login’: Permission denied make[3]: *** [install-dist_sbinSCRIPTS] Error 1
Quoted 2 lines
Reported-by Eino Juhani Oltedal <[email protected]>Signed-off-by Kinglong Mee <[email protected]>
I changed this just a bit... Instead of disabling it, I change it to enable the installation which is 'no' by default.
Committed...
steved.
Quoted 47 lines
--- configure.ac | 7 +++++++ utils/Makefile.am | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-)configure.ac +7
-0@@ -216,6 +216,13 @@ AC_ARG_ENABLE(nfsdcltrack, enable_nfsdcltrack=$enableval, enable_nfsdcltrack="yes") +AC_ARG_ENABLE(osdlogin, + [AC_HELP_STRING([--disable-osdlogin], + [disable osd_login scripts @<:@default=no@:>@])], + enable_osdlogin=$enableval, + enable_osdlogin="yes") + AM_CONDITIONAL(CONFIG_OSD_LOGIN, [test "$enable_osdlogin" = "yes" ]) + dnl Check for TI-RPC library and headers AC_LIBTIRPCutils/Makefile.am +4
-1@@ -25,6 +25,10 @@ if CONFIG_NFSDCLTRACK OPTDIRS += nfsdcltrack endif +if CONFIG_OSD_LOGIN +OPTDIRS += osd_login +endif + SUBDIRS = \ exportfs \ mountd \@@ -32,7 +36,6 @@ SUBDIRS = \ nfsstat \ showmount \ statd \ - osd_login \ $(OPTDIRS) MAINTAINERCLEANFILES = Makefile.in
Quoted 70 lines · Steve Dickson
Quoted 15 lines · Kinglong Mee
Eino reports,
Configure using the following command./configure --prefix=/home/username/installs/tmp --exec-prefix=/home/username/installs/tmpWhen running "make install" most of the packages are put under
/home/username/installs/tmp, but for some reason the install script tries to putosd_loginunder /sbin, which results in an error:Making install in
osd_login
make[2]: Entering directory/home/username/installs/nfs-utils-1.3.2/utils/osd_login' make[3]: Entering directory/home/username/installs/nfs-utils-1.3.2/utils/osd_login'
/usr/bin/mkdir-p '/sbin'
/usr/bin/install-cosd_login'/sbin'
/usr/bin/install: cannot remove ‘/sbin/osd_login’: Permission denied make[3]: *** [install-dist_sbinSCRIPTS] Error 1Quoted 2 lines
Reported-by Eino Juhani Oltedal <[email protected]>Signed-off-by Kinglong Mee <[email protected]>I changed this just a bit... Instead of disabling it, I change it to enable the installation which is 'no' by default.
Committed...
steved.
Quoted 45 lines
--- configure.ac | 7 +++++++ utils/Makefile.am | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-)configure.ac +7
-0@@ -216,6 +216,13 @@ AC_ARG_ENABLE(nfsdcltrack, enable_nfsdcltrack=$enableval, enable_nfsdcltrack="yes") +AC_ARG_ENABLE(osdlogin, + [AC_HELP_STRING([--disable-osdlogin], + [disable osd_login scripts @<:@default=no@:>@])], + enable_osdlogin=$enableval, + enable_osdlogin="yes") + AM_CONDITIONAL(CONFIG_OSD_LOGIN, [test "$enable_osdlogin" = "yes" ]) + dnl Check for TI-RPC library and headers AC_LIBTIRPCutils/Makefile.am +4
-1@@ -25,6 +25,10 @@ if CONFIG_NFSDCLTRACK OPTDIRS += nfsdcltrack endif +if CONFIG_OSD_LOGIN +OPTDIRS += osd_login +endif + SUBDIRS = \ exportfs \ mountd \@@ -32,7 +36,6 @@ SUBDIRS = \ nfsstat \ showmount \ statd \ - osd_login \ $(OPTDIRS)
Quoted 1 line
utils/Makefile.am SUBDIRS = \ · line 41
Quoted 1 line
utils/Makefile.am +0
-0MAINTAINERCLEANFILES = Makefile.in
Miss updating of utils/Makefile.am in your tree.
thanks,
Kinglong Mee
Hello,
Quoted 3 lines · Kinglong Mee
Miss updating of utils/Makefile.am in your tree.
Are you saying something is missing??
steved.
Quoted 7 lines · Steve Dickson
Hello,
Quoted 3 lines · Kinglong Mee
Miss updating of utils/Makefile.am in your tree.
Are you saying something is missing??
Yes,
the old patch also update utils/Makefile.am,
otherwise adding --enable-osdlogin is useless.
utils/Makefile.am +4 -1
@@ -25,6 +25,10 @@ if CONFIG_NFSDCLTRACK OPTDIRS += nfsdcltrack endif +if CONFIG_OSD_LOGIN +OPTDIRS += osd_login +endif + SUBDIRS = \ exportfs \ mountd \
@@ -32,7 +36,6 @@ SUBDIRS = \ nfsstat \ showmount \ statd \ - osd_login \ $(OPTDIRS) MAINTAINERCLEANFILES = Makefile.in
-- 2.3.5