diff options
author | Kevin Tian <kevin.tian@intel.com> | 2010-06-22 11:33:06 +0800 |
---|---|---|
committer | Saul Wold <Saul.Wold@intel.com> | 2010-07-02 10:35:11 -0700 |
commit | 6b81c6dbb55d57a0f8d96ee5e3f5d1e6148850b1 (patch) | |
tree | 529a9eeec848c4c258c7282f394a1d1d02fca999 /meta/packages/sudo/files/nonrootinstall.patch | |
parent | 14df5714866dcb1b0b93fc9e30dffb4931127de9 (diff) | |
download | openembedded-core-6b81c6dbb55d57a0f8d96ee5e3f5d1e6148850b1.tar.gz openembedded-core-6b81c6dbb55d57a0f8d96ee5e3f5d1e6148850b1.tar.bz2 openembedded-core-6b81c6dbb55d57a0f8d96ee5e3f5d1e6148850b1.zip |
sudo: upgrade to 1.7.2p7
Old 1.6.8p12 is quite old, even w/o source available now (only cached in pokylinux).
[Patches-Poky]
KEEP _autofoo.patch_: deal with bunch of autotool warnings/errors, more about
underquotes. In 1.7.2p7, those error conditions disappear.
But the underquotes fix is still valid to remove a bunch
of autoconf warnings
REMOVE _autofoo1.patch_: copy of autofoo.patch. no one uses it. REMOVE.
KEEP _noexec-link.patch_: use "-module" to avoid libtool complaining about not
starting with "lib". Add comment to the patch file.
DISABLE _nostrip.patch_: it's wrong to strip target binaries on build host. Borrow
from OE to use 'sed' instead of patch, but keept it for
remind to upstream
REMOVE _nonrootinstall.patch_: handle mode/owner population at install. It's not
requried at all since there's pkg_postinst to handle
it at right stage
Other misc stuff:
- update metadata information
- no need to use ${S} in 1.7.2p7
- fix idention
- use sed to disable strip
- changes from OE:
* disable PAM as our pam doesn't include necessary config files and plugs
* no need to special sudo_cv_uid_t_len tweak in the recipe. It's already there
in poky site files for a long time
* move sudo_cv_func_unsetenv_void to meta/site/common. Stdlib.h is common across
architectures in our libc headers, which conforms to POSIX standard
(borrow from openembedded 1.7.2p4)
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Diffstat (limited to 'meta/packages/sudo/files/nonrootinstall.patch')
-rw-r--r-- | meta/packages/sudo/files/nonrootinstall.patch | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/meta/packages/sudo/files/nonrootinstall.patch b/meta/packages/sudo/files/nonrootinstall.patch deleted file mode 100644 index db174b373f..0000000000 --- a/meta/packages/sudo/files/nonrootinstall.patch +++ /dev/null @@ -1,56 +0,0 @@ - -# -# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher -# - -Index: sudo-1.6.8p5/Makefile.in -=================================================================== ---- sudo-1.6.8p5.orig/Makefile.in 2004-11-25 12:27:00.000000000 -0500 -+++ sudo-1.6.8p5/Makefile.in 2005-01-21 18:02:00.447440568 -0500 -@@ -81,10 +81,16 @@ - mandirform = $(mandir)/$(mantype)$(mansectform) - - # User and group ids the installed files should be "owned" by -+ifeq ($(DESTDIR),) -+install_owncmd = -o $(install_uid) -g $(install_gid) -+endif - install_uid = 0 - install_gid = 0 - - # User, group, and mode the sudoers file should be "owned" by (configure) -+ifeq ($(DESTDIR),) -+sudoers_owncmd = -o $(sudoers_uid) -g $(sudoers_gid) -+endif - sudoers_uid = @SUDOERS_UID@ - sudoers_gid = @SUDOERS_GID@ - sudoers_mode = @SUDOERS_MODE@ -@@ -301,12 +307,11 @@ - $(DESTDIR)$(noexecdir) - - install-binaries: $(PROGS) -- $(INSTALL) -O $(install_uid) -G $(install_gid) -M 4111 -s sudo $(DESTDIR)$(sudodir)/sudo -+ $(INSTALL) $(install_owncmd) -m 4555 -s sudo $(DESTDIR)$(sudodir)/sudo -+ $(INSTALL) $(install_owncmd) -m 0555 -s visudo $(DESTDIR)$(visudodir)/visudo - rm -f $(DESTDIR)$(sudodir)/sudoedit - ln $(DESTDIR)$(sudodir)/sudo $(DESTDIR)$(sudodir)/sudoedit - -- $(INSTALL) -O $(install_uid) -G $(install_gid) -M 0111 -s visudo $(DESTDIR)$(visudodir)/visudo -- - install-noexec: sudo_noexec.la - $(LIBTOOL) --mode=install $(INSTALL) sudo_noexec.la $(DESTDIR)$(noexecdir) - -@@ -319,11 +324,11 @@ - $(srcdir)/sudoers $(DESTDIR)$(sudoersdir)/sudoers - - install-man: -- $(INSTALL) -O $(install_uid) -G $(install_gid) -M 0444 @mansrcdir@/sudo.$(mantype) $(DESTDIR)$(mandirsu)/sudo.$(mansectsu) -+ $(INSTALL) $(install_owncmd) -m 0444 @mansrcdir@/sudo.$(mantype) $(DESTDIR)$(mandirsu)/sudo.$(mansectsu) - @rm -f $(DESTDIR)$(mandirsu)/sudoedit.$(mansectsu) - ln $(DESTDIR)$(mandirsu)/sudo.$(mansectsu) $(DESTDIR)$(mandirsu)/sudoedit.$(mansectsu) -- $(INSTALL) -O $(install_uid) -G $(install_gid) -M 0444 @mansrcdir@/visudo.$(mantype) $(DESTDIR)$(mandirsu)/visudo.$(mansectsu) -- $(INSTALL) -O $(install_uid) -G $(install_gid) -M 0444 @mansrcdir@/sudoers.$(mantype) $(DESTDIR)$(mandirform)/sudoers.$(mansectform) -+ $(INSTALL) $(install_owncmd) -m 0444 @mansrcdir@/visudo.$(mantype) $(DESTDIR)$(mandirsu)/visudo.$(mansectsu) -+ $(INSTALL) $(install_owncmd) -m 0444 @mansrcdir@/sudoers.$(mantype) $(DESTDIR)$(mandirform)/sudoers.$(mansectform) - @MAN_POSTINSTALL@ - - check: |