diff options
author | Joshua Lock <josh@linux.intel.com> | 2010-06-02 14:47:53 +0100 |
---|---|---|
committer | Joshua Lock <josh@linux.intel.com> | 2010-06-02 16:14:54 +0100 |
commit | 17f3c548caf4adec37c3bbb139aa6b3900419794 (patch) | |
tree | e2b09325aa6efdb0c0be2906a5483544a1790b93 /meta/packages/util-linux/util-linux.inc | |
parent | c4476f7914145f7816868700f1ee1cb352056c21 (diff) | |
download | poky-17f3c548caf4adec37c3bbb139aa6b3900419794.tar.gz |
util-linux: bump to 2.17 based on OE recipe
Needed to increase version to one which includes libuuid and change do_install
for building a native version.
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'meta/packages/util-linux/util-linux.inc')
-rw-r--r-- | meta/packages/util-linux/util-linux.inc | 97 |
1 files changed, 55 insertions, 42 deletions
diff --git a/meta/packages/util-linux/util-linux.inc b/meta/packages/util-linux/util-linux.inc index 4e61a8cc27..733667a9c7 100644 --- a/meta/packages/util-linux/util-linux.inc +++ b/meta/packages/util-linux/util-linux.inc | |||
@@ -2,28 +2,26 @@ DESCRIPTION = "Util-linux is a suite of essential utilities for any Linux system | |||
2 | SECTION = "base" | 2 | SECTION = "base" |
3 | LICENSE = "GPL" | 3 | LICENSE = "GPL" |
4 | DEPENDS = "udev zlib ncurses virtual/libintl gettext" | 4 | DEPENDS = "udev zlib ncurses virtual/libintl gettext" |
5 | DEPENDS_virtclass-native = "zlib-native ncurses-native lzo-native gettext-native" | ||
5 | 6 | ||
6 | inherit autotools | 7 | inherit autotools |
7 | 8 | ||
8 | SRC_URI = "${KERNELORG_MIRROR}/pub/linux/utils/util-linux-ng/v2.15/util-linux-ng-${PV}.tar.bz2 \ | 9 | SRC_URI = "${KERNELORG_MIRROR}/pub/linux/utils/util-linux-ng/v${PV}/util-linux-ng-${PV}.tar.bz2 \ |
9 | file://MCONFIG \ | 10 | file://MCONFIG \ |
10 | file://make_include \ | ||
11 | file://swapargs.h \ | 11 | file://swapargs.h \ |
12 | file://fdiskbsdlabel_thumb.diff;patch=1 \ | 12 | file://defines.h \ |
13 | file://umount.diff;patch=1 \ | 13 | file://make_include \ |
14 | file://fix-make-c.patch;patch=1 \ | 14 | " |
15 | file://optional-uuid.patch;patch=1 \ | ||
16 | file://uuid.patch;patch=1 \ | ||
17 | file://defines.h" | ||
18 | # file://gcc34.patch;patch=1 \ | ||
19 | 15 | ||
20 | PACKAGES_prepend = "util-linux-fdisk util-linux-cfdisk util-linux-sfdisk util-linux-swaponoff util-linux-losetup util-linux-umount util-linux-mount util-linux-readprofile " | 16 | PACKAGES_prepend = "util-linux-fdisk util-linux-cfdisk util-linux-sfdisk util-linux-swaponoff util-linux-losetup util-linux-umount util-linux-mount util-linux-readprofile " |
21 | 17 | ||
18 | PACKAGES_virtclass-native = "" | ||
19 | |||
22 | S = "${WORKDIR}/util-linux-ng-${PV}" | 20 | S = "${WORKDIR}/util-linux-ng-${PV}" |
23 | 21 | ||
24 | EXTRA_OECONF = "--disable-use-tty-group --disable-makeinstall-chown --enable-elvtune --enable-init --enable-kill --enable-last \ | 22 | EXTRA_OECONF = "--disable-use-tty-group --disable-makeinstall-chown --enable-elvtune --enable-init --enable-kill --enable-last \ |
25 | --enable-mesg --enable-partx --enable-raw --enable-rdev --enable-reset \ | 23 | --enable-mesg --enable-partx --enable-raw --enable-rdev --enable-reset \ |
26 | --disable-login-utils --enable-write --enable-arch --enable-mount --with-fsprobe=builtin" | 24 | --disable-login-utils --enable-write --enable-arch --enable-mount --with-fsprobe=builtin --enable-libuuid --enable-libblkid --enable-fsck" |
27 | 25 | ||
28 | FILES_${PN}-doc += "/usr/share/misc/getopt/getopt-*.*" | 26 | FILES_${PN}-doc += "/usr/share/misc/getopt/getopt-*.*" |
29 | 27 | ||
@@ -39,6 +37,9 @@ FILES_util-linux-readprofile = "/usr/sbin/readprofile" | |||
39 | RRECOMMENDS_${PN} = "util-linux-fdisk util-linux-cfdisk util-linux-sfdisk util-linux-mount util-linux-readprofile " | 37 | RRECOMMENDS_${PN} = "util-linux-fdisk util-linux-cfdisk util-linux-sfdisk util-linux-mount util-linux-readprofile " |
40 | RDEPENDS_${PN} = "util-linux-umount util-linux-swaponoff util-linux-losetup" | 38 | RDEPENDS_${PN} = "util-linux-umount util-linux-swaponoff util-linux-losetup" |
41 | 39 | ||
40 | RRECOMMENDS_${PN}_virtclass-native = "" | ||
41 | RDEPENDS_${PN}_virtclass-native = "" | ||
42 | |||
42 | do_compile () { | 43 | do_compile () { |
43 | set -e | 44 | set -e |
44 | install ${WORKDIR}/MCONFIG ${S}/MCONFIG | 45 | install ${WORKDIR}/MCONFIG ${S}/MCONFIG |
@@ -81,38 +82,48 @@ do_install () { | |||
81 | 'OPT=${CFLAGS}' 'CC=${CC}' 'LD=${LD}' \ | 82 | 'OPT=${CFLAGS}' 'CC=${CC}' 'LD=${LD}' \ |
82 | 'LDFLAGS=${LDFLAGS}' 'DESTDIR=${D}' install | 83 | 'LDFLAGS=${LDFLAGS}' 'DESTDIR=${D}' install |
83 | 84 | ||
84 | install -d ${D}${base_bindir} | 85 | mkdir -p ${D}${base_bindir} |
85 | install -d ${D}${base_sbindir} | 86 | |
86 | test -f ${D}${sbindir}/pivot_root && \ | 87 | sbinprogs="agetty blockdev ctrlaltdel cfdisk vipw vigr" |
87 | mv ${D}${sbindir}/pivot_root ${D}${base_sbindir}/pivot_root.${PN} | 88 | sbinprogs_a="pivot_root hwclock mkswap shutdown mkfs.minix fsck.minix losetup swapon fdisk readprofile fsck blkid sln" |
88 | mv ${D}${bindir}/dmesg ${D}${base_bindir}/dmesg.${PN} | 89 | usrbinprogs_a="chfn chsh hexdump last logger mesg newgrp renice wall setsid chrt" |
89 | mv ${D}${bindir}/kill ${D}${base_bindir}/kill.${PN} | 90 | binprogs_a="dmesg kill more umount mount login reset" |
90 | mv ${D}${bindir}/more ${D}${base_bindir}/more.${PN} | 91 | |
91 | mv ${D}${sbindir}/hwclock ${D}${base_sbindir}/hwclock.${PN} | 92 | if [ "${base_sbindir}" != "${sbindir}" ]; then |
92 | mv ${D}${sbindir}/mkswap ${D}${base_sbindir}/mkswap.${PN} | 93 | mkdir -p ${D}${base_sbindir} |
93 | mv ${D}${sbindir}/shutdown ${D}${base_sbindir}/shutdown.${PN} | 94 | for p in $sbinprogs $sbinprogs_a; do |
94 | # mv ${D}${sbindir}/sln ${D}${base_sbindir}/sln.${PN} | 95 | if [ -f "${D}${sbindir}/$p" ]; then |
95 | mv ${D}${sbindir}/mkfs.minix ${D}${base_sbindir}/mkfs.minix.${PN} | 96 | mv "${D}${sbindir}/$p" "${D}${base_sbindir}/$p" |
96 | mv ${D}${sbindir}/fsck.minix ${D}${base_sbindir}/fsck.minix.${PN} | 97 | fi |
97 | mv ${D}${bindir}/hexdump ${D}${bindir}/hexdump.${PN} | 98 | done |
98 | mv ${D}${bindir}/last ${D}${bindir}/last.${PN} | 99 | fi |
99 | mv ${D}${bindir}/logger ${D}${bindir}/logger.${PN} | 100 | |
100 | mv ${D}${bindir}/mesg ${D}${bindir}/mesg.${PN} | 101 | if [ "${base_bindir}" != "${bindir}" ]; then |
101 | mv ${D}${bindir}/renice ${D}${bindir}/renice.${PN} | 102 | mkdir -p ${D}${base_bindir} |
102 | mv ${D}${bindir}/wall ${D}${bindir}/wall.${PN} | 103 | for p in $binprogs_a; do |
103 | 104 | if [ -f "${D}${bindir}/$p" ]; then | |
104 | mv ${D}${sbindir}/losetup ${D}${base_sbindir}/losetup.${PN} | 105 | mv "${D}${bindir}/$p" "${D}${base_bindir}/$p" |
105 | mv ${D}${sbindir}/swapon ${D}${base_sbindir}/swapon.${PN} | 106 | fi |
106 | mv ${D}${bindir}/umount ${D}${base_bindir}/umount.${PN} | 107 | done |
107 | mv ${D}${bindir}/mount ${D}${base_bindir}/mount.${PN} | 108 | fi |
108 | mv ${D}${sbindir}/fdisk ${D}${base_sbindir}/fdisk.${PN} | 109 | |
109 | 110 | for p in $usrbinprogs_a; do | |
110 | mv ${D}${sbindir}/agetty ${D}${base_sbindir}/ | 111 | if [ -f "${D}${bindir}/$p" ]; then |
111 | mv ${D}${sbindir}/blockdev ${D}${base_sbindir}/ | 112 | mv "${D}${bindir}/$p" "${D}${bindir}/$p.${PN}" |
112 | mv ${D}${sbindir}/cfdisk ${D}${base_sbindir}/ | 113 | fi |
113 | mv ${D}${sbindir}/ctrlaltdel ${D}${base_sbindir}/ | 114 | done |
114 | 115 | ||
115 | mv ${D}${sbindir}/readprofile ${D}${sbindir}/readprofile.${PN} | 116 | for p in $binprogs_a; do |
117 | if [ -f "${D}${base_bindir}/$p" ]; then | ||
118 | mv "${D}${base_bindir}/$p" "${D}${base_bindir}/$p.${PN}" | ||
119 | fi | ||
120 | done | ||
121 | |||
122 | for p in $sbinprogs_a; do | ||
123 | if [ -f "${D}${base_sbindir}/$p" ]; then | ||
124 | mv "${D}${base_sbindir}/$p" "${D}${base_sbindir}/$p.${PN}" | ||
125 | fi | ||
126 | done | ||
116 | 127 | ||
117 | install -d ${D}${sysconfdir}/default/ | 128 | install -d ${D}${sysconfdir}/default/ |
118 | echo 'MOUNTALL="-t nonfs,nosmbfs,noncpfs"' > ${D}${sysconfdir}/default/mountall | 129 | echo 'MOUNTALL="-t nonfs,nosmbfs,noncpfs"' > ${D}${sysconfdir}/default/mountall |
@@ -212,3 +223,5 @@ pkg_prerm_util-linux-swaponoff () { | |||
212 | update-alternatives --remove swapoff swapoff.${PN} | 223 | update-alternatives --remove swapoff swapoff.${PN} |
213 | update-alternatives --remove swapon swapon.${PN} | 224 | update-alternatives --remove swapon swapon.${PN} |
214 | } | 225 | } |
226 | |||
227 | BBCLASSEXTEND = "native" | ||