~ubuntu-branches/ubuntu/vivid/samba/vivid

« back to all changes in this revision

Viewing changes to buildtools/wafsamba/tru64cc.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2011-12-21 13:18:04 UTC
  • mfrom: (0.39.21 sid)
  • Revision ID: package-import@ubuntu.com-20111221131804-xtlr39wx6njehxxr
Tags: 2:3.6.1-3ubuntu1
* Merge from Debian testing.  Remaining changes:
  + debian/patches/VERSION.patch:
    - set SAMBA_VERSION_SUFFIX to Ubuntu.
  + debian/patches/error-trans.fix-276472:
    - Add the translation of Unix Error code -ENOTSUP to NT Error Code
    - NT_STATUS_NOT_SUPPORTED to prevent the Permission denied error.
  + debian/smb.conf:
    - add "(Samba, Ubuntu)" to server string.
    - comment out the default [homes] share, and add a comment about
      "valid users = %S" to show users how to restrict access to
      \\server\username to only username.
    - Set 'usershare allow guests', so that usershare admins are 
      allowed to create public shares in addition to authenticated
      ones.
    - add map to guest = Bad user, maps bad username to guest access.
  + debian/samba-common.config:
    - Do not change priority to high if dhclient3 is installed.
    - Use priority medium instead of high for the workgroup question.
  + debian/control:
    - Don't build against or suggest ctdb.
    - Add dependency on samba-common-bin to samba.
  + Add ufw integration:
    - Created debian/samba.ufw.profile
    - debian/rules, debian/samba.dirs, debian/samba.files: install
      profile
    - debian/control: have samba suggest ufw
  + Add apport hook:
    - Created debian/source_samba.py.
    - debian/rules, debian/samba.dirs, debian/samba-common-bin.files: install
  + Switch to upstart:
    - Add debian/samba.{nmbd,smbd}.upstart.
  + debian/samba.logrotate, debian/samba-common.dhcp, debian/samba.if-up:
    - Make them upstart compatible
  + debian/samba.postinst: 
    - Avoid scary pdbedit warnings on first import.
  + debian/samba-common.postinst: Add more informative error message for
    the case where smb.conf was manually deleted
  + debian/patches/fix-debuglevel-name-conflict.patch: don't use 'debug_level'
    as a global variable name in an NSS module 
  + Dropped:
    - debian/patches/error-trans.fix-276472
    - debian/patches/fix-debuglevel-name-conflict.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
# compiler definition for tru64/OSF1 cc compiler
 
3
# based on suncc.py from waf
 
4
 
 
5
import os, optparse
 
6
import Utils, Options, Configure
 
7
import ccroot, ar
 
8
from Configure import conftest
 
9
 
 
10
from compiler_cc import c_compiler
 
11
 
 
12
c_compiler['osf1V'] = ['gcc', 'tru64cc']
 
13
 
 
14
@conftest
 
15
def find_tru64cc(conf):
 
16
        v = conf.env
 
17
        cc = None
 
18
        if v['CC']: cc = v['CC']
 
19
        elif 'CC' in conf.environ: cc = conf.environ['CC']
 
20
        if not cc: cc = conf.find_program('cc', var='CC')
 
21
        if not cc: conf.fatal('tru64cc was not found')
 
22
        cc = conf.cmd_to_list(cc)
 
23
 
 
24
        try:
 
25
                if not Utils.cmd_output(cc + ['-V']):
 
26
                        conf.fatal('tru64cc %r was not found' % cc)
 
27
        except ValueError:
 
28
                conf.fatal('tru64cc -V could not be executed')
 
29
 
 
30
        v['CC']  = cc
 
31
        v['CC_NAME'] = 'tru64'
 
32
 
 
33
@conftest
 
34
def tru64cc_common_flags(conf):
 
35
        v = conf.env
 
36
 
 
37
        v['CC_SRC_F']            = ''
 
38
        v['CC_TGT_F']            = ['-c', '-o', '']
 
39
        v['CPPPATH_ST']          = '-I%s' # template for adding include paths
 
40
 
 
41
        # linker
 
42
        if not v['LINK_CC']: v['LINK_CC'] = v['CC']
 
43
        v['CCLNK_SRC_F']         = ''
 
44
        v['CCLNK_TGT_F']         = ['-o', '']
 
45
 
 
46
        v['LIB_ST']              = '-l%s' # template for adding libs
 
47
        v['LIBPATH_ST']          = '-L%s' # template for adding libpaths
 
48
        v['STATICLIB_ST']        = '-l%s'
 
49
        v['STATICLIBPATH_ST']    = '-L%s'
 
50
        v['CCDEFINES_ST']        = '-D%s'
 
51
 
 
52
#       v['SONAME_ST']           = '-Wl,-h -Wl,%s'
 
53
#       v['SHLIB_MARKER']        = '-Bdynamic'
 
54
#       v['STATICLIB_MARKER']    = '-Bstatic'
 
55
 
 
56
        # program
 
57
        v['program_PATTERN']     = '%s'
 
58
 
 
59
        # shared library
 
60
#       v['shlib_CCFLAGS']       = ['-Kpic', '-DPIC']
 
61
        v['shlib_LINKFLAGS']     = ['-shared']
 
62
        v['shlib_PATTERN']       = 'lib%s.so'
 
63
 
 
64
        # static lib
 
65
#       v['staticlib_LINKFLAGS'] = ['-Bstatic']
 
66
#       v['staticlib_PATTERN']   = 'lib%s.a'
 
67
 
 
68
detect = '''
 
69
find_tru64cc
 
70
find_cpp
 
71
find_ar
 
72
tru64cc_common_flags
 
73
cc_load_tools
 
74
cc_add_flags
 
75
link_add_flags
 
76
'''
 
77