From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-iy0-f171.google.com ([209.85.210.171]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1QqXkW-0007qw-QE for openembedded-core@lists.openembedded.org; Mon, 08 Aug 2011 23:52:41 +0200 Received: by iyf13 with SMTP id 13so11804639iyf.16 for ; Mon, 08 Aug 2011 14:48:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; bh=3csykWXL0DLj9am3tcZxv1JP6OwUBlEmyId7XVXpZP8=; b=FVSfYVKmOPpHovbeOUYvI9VkelQxm8RitJc6nk52ItZ4NQ5Mp6AOwdqvWAfv23KI4X TNVtnG0B6Vqqkhqqwm+ADCCTvflYGrjAdbMpAm2Nwv6fRD2kMJTDaa6EV+xWYC12ZFHa Ykt4jQj9ZgoJrK1CH+ZtRSWWiyPdJeZ8/D6k4= Received: by 10.231.55.76 with SMTP id t12mr6263175ibg.28.1312840091608; Mon, 08 Aug 2011 14:48:11 -0700 (PDT) Received: from localhost.localdomain (99-57-141-118.lightspeed.sntcca.sbcglobal.net [99.57.141.118]) by mx.google.com with ESMTPS id n18sm2817929ibg.35.2011.08.08.14.48.10 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 08 Aug 2011 14:48:10 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Mon, 8 Aug 2011 14:48:28 -0700 Message-Id: <1312840108-10685-1-git-send-email-raj.khem@gmail.com> X-Mailer: git-send-email 1.7.0.4 Subject: [PATCH] uclibc_0.9.32: Sync mount.h from eglibc X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Aug 2011 21:52:41 -0000 mount.h has few more defines that are being used by newer applications such as systemd Signed-off-by: Khem Raj --- .../uclibc/uclibc-0.9.32/mount.h-update.patch | 85 ++++++++++++++++++++ meta/recipes-core/uclibc/uclibc_0.9.32.bb | 3 +- 2 files changed, 87 insertions(+), 1 deletions(-) create mode 100644 meta/recipes-core/uclibc/uclibc-0.9.32/mount.h-update.patch diff --git a/meta/recipes-core/uclibc/uclibc-0.9.32/mount.h-update.patch b/meta/recipes-core/uclibc/uclibc-0.9.32/mount.h-update.patch new file mode 100644 index 0000000..3508e0e --- /dev/null +++ b/meta/recipes-core/uclibc/uclibc-0.9.32/mount.h-update.patch @@ -0,0 +1,85 @@ +Sync mount.h from glibc this is needed to get missing defines +that some apps e.g. systemd are depending on + +Signed-off-by: Khem Raj + +Upstream-Status: Pending + +Index: git/include/sys/mount.h +=================================================================== +--- git.orig/include/sys/mount.h 2011-07-21 14:37:27.134255747 -0700 ++++ git/include/sys/mount.h 2011-07-21 14:39:53.844470932 -0700 +@@ -1,5 +1,5 @@ + /* Header file for mounting/unmount Linux filesystems. +- Copyright (C) 1996,1997,1998,1999,2000,2004 Free Software Foundation, Inc. ++ Copyright (C) 1996-2000, 2004, 2010 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or +@@ -47,23 +47,46 @@ + #define MS_REMOUNT MS_REMOUNT + MS_MANDLOCK = 64, /* Allow mandatory locks on an FS. */ + #define MS_MANDLOCK MS_MANDLOCK +- S_WRITE = 128, /* Write on file/directory/symlink. */ +-#define S_WRITE S_WRITE +- S_APPEND = 256, /* Append-only file. */ +-#define S_APPEND S_APPEND +- S_IMMUTABLE = 512, /* Immutable file. */ +-#define S_IMMUTABLE S_IMMUTABLE ++ MS_DIRSYNC = 128, /* Directory modifications are synchronous. */ ++#define MS_DIRSYNC MS_DIRSYNC + MS_NOATIME = 1024, /* Do not update access times. */ + #define MS_NOATIME MS_NOATIME + MS_NODIRATIME = 2048, /* Do not update directory access times. */ + #define MS_NODIRATIME MS_NODIRATIME + MS_BIND = 4096, /* Bind directory at different place. */ + #define MS_BIND MS_BIND ++ MS_MOVE = 8192, ++#define MS_MOVE MS_MOVE ++ MS_REC = 16384, ++#define MS_REC MS_REC ++ MS_SILENT = 32768, ++#define MS_SILENT MS_SILENT ++ MS_POSIXACL = 1 << 16, /* VFS does not apply the umask. */ ++#define MS_POSIXACL MS_POSIXACL ++ MS_UNBINDABLE = 1 << 17, /* Change to unbindable. */ ++#define MS_UNBINDABLE MS_UNBINDABLE ++ MS_PRIVATE = 1 << 18, /* Change to private. */ ++#define MS_PRIVATE MS_PRIVATE ++ MS_SLAVE = 1 << 19, /* Change to slave. */ ++#define MS_SLAVE MS_SLAVE ++ MS_SHARED = 1 << 20, /* Change to shared. */ ++#define MS_SHARED MS_SHARED ++ MS_RELATIME = 1 << 21, /* Update atime relative to mtime/ctime. */ ++#define MS_RELATIME MS_RELATIME ++ MS_KERNMOUNT = 1 << 22, /* This is a kern_mount call. */ ++#define MS_KERNMOUNT MS_KERNMOUNT ++ MS_I_VERSION = 1 << 23, /* Update inode I_version field. */ ++#define MS_I_VERSION MS_I_VERSION ++ MS_STRICTATIME = 1 << 24, /* Always perform atime updates. */ ++#define MS_STRICTATIME MS_STRICTATIME ++ MS_ACTIVE = 1 << 30, ++#define MS_ACTIVE MS_ACTIVE ++ MS_NOUSER = 1 << 31 ++#define MS_NOUSER MS_NOUSER + }; + + /* Flags that can be altered by MS_REMOUNT */ +-#define MS_RMT_MASK (MS_RDONLY|MS_SYNCHRONOUS|MS_MANDLOCK|MS_NOATIME \ +- |MS_NODIRATIME) ++#define MS_RMT_MASK (MS_RDONLY|MS_SYNCHRONOUS|MS_MANDLOCK|MS_I_VERSION) + + + /* Magic mount flag number. Has to be or-ed to the flag values. */ +@@ -100,8 +123,10 @@ + #define MNT_FORCE MNT_FORCE + MNT_DETACH = 2, /* Just detach from the tree. */ + #define MNT_DETACH MNT_DETACH +- MNT_EXPIRE = 4 /* Mark for expiry. */ ++ MNT_EXPIRE = 4, /* Mark for expiry. */ + #define MNT_EXPIRE MNT_EXPIRE ++ UMOUNT_NOFOLLOW = 8 /* Don't follow symlink on umount. */ ++#define UMOUNT_NOFOLLOW UMOUNT_NOFOLLOW + }; + + diff --git a/meta/recipes-core/uclibc/uclibc_0.9.32.bb b/meta/recipes-core/uclibc/uclibc_0.9.32.bb index 8dcb260..235b436 100644 --- a/meta/recipes-core/uclibc/uclibc_0.9.32.bb +++ b/meta/recipes-core/uclibc/uclibc_0.9.32.bb @@ -1,7 +1,7 @@ SRCREV="9152c4d67c763fde5712e2d181d92c0d7e1e2ab9" require uclibc.inc -PR = "${INC_PR}.2" +PR = "${INC_PR}.3" PROVIDES += "virtual/${TARGET_PREFIX}libc-for-gcc" SRC_URI = "git://uclibc.org/uClibc.git;branch=${PV};protocol=git \ @@ -29,5 +29,6 @@ SRC_URI = "git://uclibc.org/uClibc.git;branch=${PV};protocol=git \ file://uclibc-execvpe.patch \ file://uclibc_scheduler_update.patch \ file://sync_file_range2.patch \ + file://mount.h-update.patch \ " S = "${WORKDIR}/git" -- 1.7.4.1