~ubuntu-branches/ubuntu/quantal/util-linux/quantal

« back to all changes in this revision

Viewing changes to fdisk/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2011-06-20 22:31:50 UTC
  • mfrom: (1.6.3 upstream) (4.5.1 sid)
  • Revision ID: james.westby@ubuntu.com-20110620223150-lz8wrv0946ihcz3z
Tags: 2.19.1-2ubuntu1
* Merge from Debian unstable, remaining changes:
  - Build for multiarch.
  - Add pre-depends on multiarch-support.
  - configure.ac: don't try to be clever about extracting a path name from
    $libdir to append to /usr in a way that's not overridable; instead,
    reuse the built-in configurable libexecdir.
  - Fix up the .pc.in files to know about libexecdir, so our substitutions
    don't leave us with unusable pkg-config files.
  - Install custom blkid.conf to use /dev/.blkid.tab since we don't
    expect device names to survive a reboot
  - Mention mountall(8) in fstab(5) manpages, along with its special
    options.
  - Since upstart is required in Ubuntu, the hwclock.sh init script is not
    called on startup and the hwclockfirst.sh init script is removed.
  - Drop depends on initscripts for the above.
  - Replace hwclock udev rule with an Upstart job.
  - For the case where mount is called with a directory to mount, look
    that directory up in mountall's /lib/init/fstab if we couldn't find
    it mentioned anywhere else.  This means "mount /proc", "mount /sys",
    etc. work.
  - mount.8 points to the cifs-utils package, not the obsolete smbfs one. 
* Dropped changes:
  - mount.preinst: lsb_release has been fixed in lucid and above to be
    usable without configuration, so we don't have to diverge from Debian
    here anymore.
* Changes merged upstream:
  - sfdisk support for '+' with '-N'
  - mount/umount.c: fix a segfault on umount with empty mtab entry
  - Fix arbitrary unmount with fuse security issue

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
EXTRA_DIST = README.fdisk README.cfdisk sfdisk.examples partitiontype.c
4
4
 
5
5
fdisk_common = i386_sys_types.c common.h gpt.c gpt.h \
6
 
        ../lib/blkdev.c ../lib/wholedisk.c
 
6
        $(top_srcdir)/lib/blkdev.c $(top_srcdir)/lib/wholedisk.c \
 
7
        $(top_srcdir)/lib/mbsalign.c
7
8
 
8
9
if LINUX
9
 
fdisk_common += ../lib/linux_version.c
 
10
fdisk_common += $(top_srcdir)/lib/linux_version.c
10
11
endif
11
12
 
12
13
if !ARCH_M68K
16
17
fdisk_SOURCES = fdisk.c fdiskbsdlabel.c fdisksgilabel.c \
17
18
        fdisksunlabel.c fdiskaixlabel.c fdiskmaclabel.c partname.c \
18
19
        fdisk.h fdisksunlabel.h fdisksgilabel.h fdiskaixlabel.h \
19
 
        fdiskbsdlabel.h fdiskmaclabel.h $(fdisk_common)
 
20
        fdiskbsdlabel.h fdiskmaclabel.h $(fdisk_common) \
 
21
        $(top_srcdir)/lib/canonicalize.c
20
22
 
21
 
cflags_fdisk = $(AM_CFLAGS)
22
 
ldadd_fdisk =
 
23
cflags_blkid = $(AM_CFLAGS)
 
24
ldadd_blkid =
23
25
 
24
26
if BUILD_LIBBLKID
25
27
# only in-tree libblkid has topology support
26
 
ldadd_fdisk += $(ul_libblkid_la)
27
 
cflags_fdisk += -I$(ul_libblkid_incdir)
 
28
ldadd_blkid += $(ul_libblkid_la)
 
29
cflags_blkid += -I$(ul_libblkid_incdir)
28
30
endif
29
31
 
30
32
if HAVE_STATIC_FDISK
31
33
sbin_PROGRAMS += fdisk.static
32
34
fdisk_static_SOURCES = $(fdisk_SOURCES)
33
35
fdisk_static_LDFLAGS = -all-static
34
 
fdisk_static_CFLAGS = $(cflags_fdisk)
35
 
fdisk_static_LDADD = $(ldadd_fdisk)
 
36
fdisk_static_CFLAGS = $(cflags_blkid)
 
37
fdisk_static_LDADD = $(ldadd_blkid)
36
38
endif
37
39
 
38
 
fdisk_CFLAGS = $(cflags_fdisk)
39
 
fdisk_LDADD = $(ldadd_fdisk)
40
 
 
 
40
fdisk_CFLAGS = $(cflags_blkid)
 
41
fdisk_LDADD = $(ldadd_blkid)
41
42
 
42
43
if !ARCH_SPARC
43
44
 
44
45
sbin_PROGRAMS += sfdisk
45
46
dist_man_MANS += sfdisk.8
46
 
sfdisk_SOURCES = sfdisk.c partname.c $(fdisk_common)
 
47
sfdisk_SOURCES = sfdisk.c partname.c $(fdisk_common) \
 
48
        $(top_srcdir)/lib/canonicalize.c
47
49
 
48
50
if HAVE_STATIC_SFDISK
49
51
sbin_PROGRAMS += sfdisk.static
55
57
sbin_PROGRAMS += cfdisk
56
58
dist_man_MANS += cfdisk.8
57
59
cfdisk_SOURCES = cfdisk.c $(fdisk_common)
58
 
cfdisk_LDADD = -lslang
 
60
cfdisk_CFLAGS = $(cflags_blkid)
 
61
cfdisk_LDADD = -lslang $(ldadd_blkid)
59
62
else
60
63
if HAVE_NCURSES
61
64
sbin_PROGRAMS += cfdisk
62
65
dist_man_MANS += cfdisk.8
63
66
cfdisk_SOURCES = cfdisk.c $(fdisk_common)
64
 
cfdisk_LDADD = @NCURSES_LIBS@
 
67
cfdisk_CFLAGS = $(cflags_blkid)
 
68
cfdisk_LDADD = @NCURSES_LIBS@ $(ldadd_blkid)
65
69
endif
66
70
endif
67
71