~ubuntu-branches/ubuntu/wily/clamav/wily-proposed

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/utils/buildit/GNUmakefile

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman, Sebastian Andrzej Siewior, Andreas Cadhalpun, Scott Kitterman, Javier Fernández-Sanguino
  • Date: 2015-01-28 00:25:13 UTC
  • mfrom: (0.48.14 sid)
  • Revision ID: package-import@ubuntu.com-20150128002513-lil2oi74cooy4lzr
Tags: 0.98.6+dfsg-1
[ Sebastian Andrzej Siewior ]
* update "fix-ssize_t-size_t-off_t-printf-modifier", include of misc.h was
  missing but was pulled in via the systemd patch.
* Don't leak return codes from libmspack to clamav API. (Closes: #774686).

[ Andreas Cadhalpun ]
* Add patch to avoid emitting incremental progress messages when not
  outputting to a terminal. (Closes: #767350)
* Update lintian-overrides for unused-file-paragraph-in-dep5-copyright.
* clamav-base.postinst: always chown /var/log/clamav and /var/lib/clamav
  to clamav:clamav, not only on fresh installations. (Closes: #775400)
* Adapt the clamav-daemon and clamav-freshclam logrotate scripts,
  so that they correctly work under systemd.
* Move the PidFile variable from the clamd/freshclam configuration files
  to the init scripts. This makes the init scripts more robust against
  misconfiguration and avoids error messages with systemd. (Closes: #767353)
* debian/copyright: drop files from Files-Excluded only present in github
  tarballs
* Drop Workaround-a-bug-in-libc-on-Hurd.patch, because hurd got fixed.
  (see #752237)
* debian/rules: Remove useless --with-system-tommath --without-included-ltdl
  configure options.

[ Scott Kitterman ]
* Stop stripping llvm when repacking the tarball as the system llvm on some
  releases is too old to use
* New upstream bugfix release
  - Library shared object revisions.
  - Includes a patch from Sebastian Andrzej Siewior making ClamAV pid files
    compatible with systemd.
  - Fix a heap out of bounds condition with crafted Yoda's crypter files.
    This issue was discovered by Felix Groebert of the Google Security Team.
  - Fix a heap out of bounds condition with crafted mew packer files. This
    issue was discovered by Felix Groebert of the Google Security Team.
  - Fix a heap out of bounds condition with crafted upx packer files. This
    issue was discovered by Kevin Szkudlapski of Quarkslab.
  - Fix a heap out of bounds condition with crafted upack packer files. This
    issue was discovered by Sebastian Andrzej Siewior. CVE-2014-9328.
  - Compensate a crash due to incorrect compiler optimization when handling
    crafted petite packer files. This issue was discovered by Sebastian
    Andrzej Siewior.
* Update lintian override for embedded zlib to match new so version

[ Javier Fernández-Sanguino ]
* Updated Spanish Debconf template translation (Closes: #773563)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# LLVM LOCAL file build machinery
 
2
# LLVM Compiler Makefile for use by buildit.  
 
3
#
 
4
# This makefile is intended only for use with B&I buildit. For "normal" builds
 
5
# use the conventional top-level makefile.
 
6
#
 
7
# You can specify TARGETS=ppc (or i386) on the buildit command line to limit the
 
8
# build to just one target. The default is for ppc and i386. The compiler
 
9
# targetted at this host gets built anyway, but not installed unless it's listed
 
10
# in TARGETS.
 
11
 
 
12
# Include the set of standard Apple makefile definitions.
 
13
ifndef CoreOSMakefiles
 
14
CoreOSMakefiles = $(MAKEFILEPATH)/CoreOS
 
15
endif
 
16
include $(CoreOSMakefiles)/Standard/Standard.make
 
17
 
 
18
# Enable Apple extensions to (gnu)make.
 
19
USE_APPLE_PB_SUPPORT = all
 
20
 
 
21
RC_ARCHS := ppc i386
 
22
HOSTS = $(RC_ARCHS)
 
23
targets = echo $(RC_ARCHS)
 
24
TARGETS := $(shell $(targets))
 
25
 
 
26
SRCROOT = .
 
27
 
 
28
SRC = $(shell cd $(SRCROOT) && pwd | sed s,/private,,)
 
29
OBJROOT = $(SRC)/obj
 
30
SYMROOT = $(OBJROOT)/../sym
 
31
DSTROOT = $(OBJROOT)/../dst
 
32
 
 
33
#######################################################################
 
34
 
 
35
PREFIX = /Developer/usr/local
 
36
 
 
37
# Unless assertions are forced on in the GMAKE command line, disable them.
 
38
ifndef ENABLE_ASSERTIONS
 
39
ENABLE_ASSERTIONS := no
 
40
endif
 
41
 
 
42
# Default is optimized build.
 
43
ifeq ($(LLVM_DEBUG),1)
 
44
LLVM_OPTIMIZED := no
 
45
else
 
46
LLVM_OPTIMIZED := yes
 
47
endif
 
48
 
 
49
# Default to not install libLTO.dylib.
 
50
INSTALL_LIBLTO := no
 
51
 
 
52
# Default to do a native build, not a cross-build for an ARM host or simulator.
 
53
ARM_HOSTED_BUILD := no
 
54
IOS_SIM_BUILD := no
 
55
 
 
56
ifndef RC_ProjectSourceVersion
 
57
RC_ProjectSourceVersion = 9999
 
58
endif
 
59
 
 
60
ifndef RC_ProjectSourceSubversion
 
61
RC_ProjectSourceSubversion = 0
 
62
endif
 
63
 
 
64
# NOTE : Always put version numbers at the end because they are optional.
 
65
install: $(OBJROOT) $(SYMROOT) $(DSTROOT)
 
66
        cd $(OBJROOT) && \
 
67
          $(SRC)/utils/buildit/build_llvm "$(RC_ARCHS)" "$(TARGETS)" \
 
68
            $(SRC) $(PREFIX) $(DSTROOT) $(SYMROOT) \
 
69
            $(ENABLE_ASSERTIONS) $(LLVM_OPTIMIZED) $(INSTALL_LIBLTO) \
 
70
            $(ARM_HOSTED_BUILD) $(IOS_SIM_BUILD) \
 
71
            $(RC_ProjectSourceVersion) $(RC_ProjectSourceSubversion) 
 
72
 
 
73
EmbeddedHosted:
 
74
        $(MAKE) ARM_HOSTED_BUILD=yes PREFIX=/usr/local install
 
75
 
 
76
# When building for the iOS simulator, MACOSX_DEPLOYMENT_TARGET is not set
 
77
# by default, but it needs to be set when building tools that run on the host
 
78
# (e.g., tblgen), so set it here.
 
79
EmbeddedSim:
 
80
        export MACOSX_DEPLOYMENT_TARGET=`sw_vers -productVersion`; \
 
81
        $(MAKE) IOS_SIM_BUILD=yes PREFIX=$(SDKROOT)/usr/local install
 
82
 
 
83
# installhdrs does nothing, because the headers aren't useful until
 
84
# the compiler is installed.
 
85
installhdrs:
 
86
 
 
87
# We build and install in one shell script.
 
88
build: 
 
89
 
 
90
installsrc:
 
91
        @echo
 
92
        @echo ++++++++++++++++++++++
 
93
        @echo + Installing sources +
 
94
        @echo ++++++++++++++++++++++
 
95
        @echo
 
96
        if [ $(SRCROOT) != . ]; then \
 
97
          $(PAX) -rw . $(SRCROOT); \
 
98
        fi
 
99
        find -d "$(SRCROOT)" \( -type d -a -name .svn -o \
 
100
                                -type f -a -name .DS_Store -o \
 
101
                                -name \*~ -o -name .\#\* \) \
 
102
          -exec rm -rf {} \;
 
103
        rm -rf "$(SRCROOT)/test"
 
104
 
 
105
#######################################################################
 
106
 
 
107
clean:
 
108
        @echo
 
109
        @echo ++++++++++++
 
110
        @echo + Cleaning +
 
111
        @echo ++++++++++++
 
112
        @echo
 
113
        @if [ -d $(OBJROOT) -a "$(OBJROOT)" != / ]; then \
 
114
          echo '*** DELETING ' $(OBJROOT); \
 
115
          rm -rf $(OBJROOT); \
 
116
        fi
 
117
        @if [ -d $(SYMROOT) -a "$(SYMROOT)" != / ]; then \
 
118
          echo '*** DELETING ' $(SYMROOT); \
 
119
          rm -rf $(SYMROOT); \
 
120
        fi
 
121
        @if [ -d $(DSTROOT) -a "$(DSTROOT)" != / ]; then \
 
122
          echo '*** DELETING ' $(DSTROOT); \
 
123
          rm -rf $(DSTROOT); \
 
124
        fi
 
125
 
 
126
#######################################################################
 
127
 
 
128
$(OBJROOT) $(SYMROOT) $(DSTROOT):
 
129
        mkdir -p $@
 
130
 
 
131
.PHONY: install installsrc clean EmbeddedHosted EmbeddedSim