Magellan Linux

Contents of /trunk/mage/usr/lib/mage/mage.rc.global.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3186 - (show annotations) (download)
Mon Jul 31 09:37:31 2023 UTC (9 months, 1 week ago) by niro
File size: 8455 byte(s)
-updated build flags to state of the art settings
1 # mage.rc.global - global configuration file for mage
2 # $Id$
3 #
4 # !! Do not edit this file, it will be overwritten on update. !!
5 # !! Use /etc/mage.rc instead to override any settings. !!
6 #
7
8 ## Default locations
9 PKGDIR="/var/cache/mage/packages"
10 SRCPKGDIR="/var/cache/mage/packages/sources"
11 BUILDDIR="/var/tmp/magebuild"
12 INSTALLDB="/var/db/mage"
13 MAGEDIR="/usr/mage"
14 MLIBDIR="/usr/lib/mage"
15 VIRTUALDB_DEFAULTS="/etc/mage-profile/virtuals.defaults"
16 VIRTUALDB_FILE="${INSTALLDB}/virtuals"
17 SOURCEDIR="/var/cache/mage/sources"
18 BINDIR="${BUILDDIR}/builded"
19 SMAGESCRIPTSDIR="/var/cache/mage/smage"
20 SMAGELOGDIR="/var/log/smage"
21
22 # Set default install root to /
23 : ${MROOT=""}
24
25 # Set default user mage.rc
26 : ${MAGERC="/etc/mage.rc"}
27
28 # Distribution settings
29 # Internal default: MAGE_DISTRIBUTION=stable
30 # stable | testing | unstable
31 : ${MAGE_DISTRIBUTION="stable"}
32
33 # Default options
34 : ${MAGE_UNINSTALL_TIMEOUT="3"}
35
36 # Use MAGE_FEATURE 'regentree' to enable on-the-fly regeneration of the mage tree.
37 # MAGE_TREE_DEST must be also set. You should set it to the same value as MAGEDIR.
38 MAGE_TREE_DEST="${MAGEDIR}"
39
40 # ABI specific libdir
41 ABI_X86_LIBDIR="@@ABI_X86_LIBDIR@@"
42 ABI_X86_64_LIBDIR="@@ABI_X86_64_LIBDIR@@"
43 ABI_DEFAULT_LIBDIR="@@ABI_DEFAULT_LIBDIR@@"
44
45 # ABI specific CHOST
46 ABI_X86_CHOST="@@ABI_X86_CHOST@@"
47 ABI_X86_64_CHOST="@@ABI_X86_64_CHOST@@"
48 ABI_DEFAULT_CHOST="@@ABI_DEFAULT_CHOST@@"
49
50 # Arch specific options and build flags
51 ARCH="@@ARCH@@"
52 CHOST="${ABI_DEFAULT_CHOST}"
53 CPPFLAGS=""
54 CFLAGS="-march=@@MARCH@@ -mtune=@@MTUNE@@ -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection"
55 CXXFLAGS="${CFLAGS} -Wp,-D_GLIBCXX_ASSERTIONS"
56 LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
57 LTOFLAGS="flto=auto"
58 #RUSTFLAGS="-C opt-level=2"
59 MAKEOPTS="-j2"
60
61 # cross-compile host
62 # set this only if you want to crosscompile
63 # you need also a cross-compile toolchain installed
64 #CTARGET="i486-pc-linux-gnu"
65
66 # Strip options
67 STRIP_DYN_LIB="--strip-unneeded"
68 STRIP_DYN_BIN="--strip-all"
69 STRIP_STATIC_LIB="--strip-debug"
70
71 # Extension defaults
72 # Do not modify these settings unless you know what you are doing
73 PKGSUFFIX="mpk"
74 SRCPKGSUFFIX="mpks"
75 MAGESUFFIX="mage"
76 SMAGESUFFIX="smage2"
77
78 # Purge targets
79 # Array with all files which shall be removed from every package on build-time
80 # Do not touch these settings if you don't know what you are doing
81 PURGE_TARGETS=( usr/share/info/dir usr/share/info/dir.gz )
82
83 # Distcc specific settings
84 #DISTCC_HOSTS=""
85 DISTCC_DIR="${BUILDDIR}/.distcc"
86 DISTCC_VERBOSE="0"
87 DISTCC_LOG="/var/log/distcc.log"
88
89 # Default mirrors and download options
90 MIRRORS="http://magellan-linux.de/magellan"
91 GNU_MIRRORS="https://ftp.gnu.org/pub/gnu ftp://ftp.cs.tu-berlin.de/pub/gnu"
92 SOURCEFORGE_MIRRORS="http://downloads.sf.net http://garr.dl.sourceforge.net/sourceforge http://dfn.dl.sourceforge.net/sourceforge http://mesh.dl.sourceforge.net/sourceforge http://belnet.dl.sourceforge.net/sourceforge "
93 GNOME_MIRRORS="http://ftp.gnome.org/pub/gnome/sources/ ftp://ftp.gnome.org/pub/gnome/sources/"
94 KDE_MIRRORS="ftp://ftp.kde.org/pub/kde/stable ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/ftp.kde.org/pub/kde/stable"
95 RSYNC="rsync://magellan-linux.de/mage-ix86"
96 SMAGE2RSYNC="rsync://magellan-linux.de/smage-cvs"
97 PACKAGES_SERVER_PATH="packages/${ARCH}"
98
99 # Default fetch options for rsync
100 RSYNC_FETCH_OPTIONS="--recursive --links --perms --times --devices --timeout=600 --verbose --compress --progress --stats --delete --delete-after"
101 # Default fetch options for wget
102 WGET_FETCH_OPTIONS="--passive-ftp --tries 3 --continue --progress bar"
103 # Default update method for the package database - 'rsync' or 'tarball' method can be selected
104 MAGE_UPDATE_METHOD="tarball"
105
106 # All supported global features in mage/smage:
107 # You can negate any feature with a ! in front
108 # Please use the MAGE_FEATURES array to override these settings in local mage.rc
109 #
110 # autosvc|!autosvc
111 # * Automatically start/stop/restarts services on installation
112 # buildlog|!buildlog
113 # * Enables logging of smage builds
114 # * Currently for src_pepare, src_compile, src_install functions only
115 # * For developers only
116 # ccache|!ccache
117 # * Enable ccache support in smage
118 # * ccache must be installed to use this feature
119 # * For developers only
120 # check|!check
121 # * Runs the check function src_check() after completing src_compile()
122 # * For developers only
123 # compressdoc|!compressdoc
124 # * Enables compression of man, info and other doc files for minimizing diskspace usage
125 # * For developers only
126 # debug|!debug
127 # * Enables or disables debug mode
128 # * Do not touch this feature if you don't know what you are doing
129 # * The debug mode may break things like resolving dependencies
130 # * For developers only
131 # distcc|!distcc
132 # * Enable distcc support in smage
133 # * distcc must be installed to use this feature
134 # * For developers only
135 # icecc|!icecc
136 # * Enable icecc support in smage
137 # * icecream must be installed to use this feature
138 # * For developers only
139 # kernelsrcunpack|!kernelsrcunpack
140 # * Automatically unpacks any kernel-source tarballs to /usr/src
141 # libtool|!libtool
142 # * Includes .la libtool archives in builded packages, to remove them set !libtool
143 # * For developers only
144 # linuxsymlink|!linuxsymlink
145 # * Automatically updates the /usr/src/linux symlink to the installed kernel-sources version
146 # * Requires the kernelsrcunpack feature to be activated
147 # pkgbuild|!pkgbuild
148 # * Enables or disables the package build process
149 # * !pkgbuild feature is only intended to be used for special-cases,
150 # * like virtuals and not to be a global feature. Use this with care.
151 # * Only disable this feature, if you know what you are doing!
152 # * For developers only
153 # pkgdistrotag|!pkgdistrotag
154 # * Appends the distribution codename-tag to the builded packages
155 # * Do not touch this feature, for internal use only!!
156 # * For developers only
157 # purge|!purge
158 # * Purges files specified by PURGE_TARGETS array from every package build
159 # * Do not touch this feature if you don't know what you are doing
160 # * For developers only
161 # qalint|!qalint
162 # * Quality assurance checks will be run while building a package
163 # * Magellan lint utilities must be installed to use this feature
164 # * Only enable this feature for QA purposes only,
165 # * pkgbuild may fail even on non-fatal errors and warnings
166 # * For developers only
167 # regentree|!regentree
168 # * Automatically import packages in the mage-tree after building with smage
169 # * The target mage-tree can be defined with the MAGE_TREE_DEST variable
170 # * For developers only
171 # resume|!resume
172 # * resumes a build from the last successful step
173 # * Do not touch this feature, for internal use only!!
174 # * For developers only
175 # srcpkgbuild|!srcpkgbuild
176 # * Enable this to create source-tarballs on-the-fly when building packages
177 # * For developers only
178 # srcpkgtarball|!srcpkgtarball
179 # * Let smage build the package from a src tarball .mpks
180 # * Do not touch this feature, for internal use only!!
181 # static|!static
182 # * Let mconfigure() enable or disable compilation of static libraries
183 # * For developers only
184 # stepbystep|!stepbystep
185 # * Enables step-by-step execution of the smage-file for debugging
186 # * Currently for src_pepare(), src_compile(), src_check(), src_install() functions
187 # * For developers only
188 # strip|!strip
189 # * Enables stripping to remove debugging symbols of resulting binaries
190 # * For developers only
191 # verbose|!verbose
192 # * Enables or disables verbose mode
193 #
194 # To individually change these features within a smage file, you can use the msetfeature() function
195 #
196 MAGE_FEATURES_GLOBAL=( "autosvc" "buildlog" "ccache" "check" "compressdoc" "!debug" "!distcc" "!icecc" "kernelsrcunpack" "!libtool" "linuxsymlink" "pkgbuild" "!pkgdistrotag" "purge" "!qalint" "regentree" "!resume" "!srcpkgbuild" "!srcpkgtarball" "!static" "!stepbystep" "strip" "!verbose" )