Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Side by Side Diff: chrome/installer/linux/debian/build.sh

Issue 1769533003: Add multiarch specification to apt repo config. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2623
Patch Set: add fix from c9702882daa3175654319d844fee7d4c64ee468b Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/installer/linux/common/variables.include ('k') | chrome/installer/linux/rpm/build.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # 2 #
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # TODO(mmoss) This currently only works with official builds, since non-official 7 # TODO(mmoss) This currently only works with official builds, since non-official
8 # builds don't add the "${BUILDDIR}/installer/" files needed for packaging. 8 # builds don't add the "${BUILDDIR}/installer/" files needed for packaging.
9 9
10 set -e 10 set -e
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 VERSIONFULL="${VERSION}-${PACKAGE_RELEASE}" 229 VERSIONFULL="${VERSION}-${PACKAGE_RELEASE}"
230 230
231 if [ "$BRANDING" = "google_chrome" ]; then 231 if [ "$BRANDING" = "google_chrome" ]; then
232 source "${BUILDDIR}/installer/common/google-chrome.info" 232 source "${BUILDDIR}/installer/common/google-chrome.info"
233 else 233 else
234 source "${BUILDDIR}/installer/common/chromium-browser.info" 234 source "${BUILDDIR}/installer/common/chromium-browser.info"
235 fi 235 fi
236 eval $(sed -e "s/^\([^=]\+\)=\(.*\)$/export \1='\2'/" \ 236 eval $(sed -e "s/^\([^=]\+\)=\(.*\)$/export \1='\2'/" \
237 "${BUILDDIR}/installer/theme/BRANDING") 237 "${BUILDDIR}/installer/theme/BRANDING")
238 238
239 REPOCONFIG="deb http://dl.google.com/linux/chrome/deb/ stable main"
240 SSLREPOCONFIG="deb https://dl.google.com/linux/chrome/deb/ stable main"
241 verify_channel 239 verify_channel
242 240
243 # Some Debian packaging tools want these set. 241 # Some Debian packaging tools want these set.
244 export DEBFULLNAME="${MAINTNAME}" 242 export DEBFULLNAME="${MAINTNAME}"
245 export DEBEMAIL="${MAINTMAIL}" 243 export DEBEMAIL="${MAINTMAIL}"
246 244
247 # We'd like to eliminate more of these deps by relying on the 'lsb' package, but 245 # We'd like to eliminate more of these deps by relying on the 'lsb' package, but
248 # that brings in tons of unnecessary stuff, like an mta and rpm. Until that full 246 # that brings in tons of unnecessary stuff, like an mta and rpm. Until that full
249 # 'lsb' package is installed by default on DEB distros, we'll have to stick with 247 # 'lsb' package is installed by default on DEB distros, we'll have to stick with
250 # the LSB sub-packages, to avoid pulling in all that stuff that's not installed 248 # the LSB sub-packages, to avoid pulling in all that stuff that's not installed
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 COMMON_DEPS="${DPKG_SHLIB_DEPS}, ${ADDITION_DEPS}" 305 COMMON_DEPS="${DPKG_SHLIB_DEPS}, ${ADDITION_DEPS}"
308 COMMON_PREDEPS="dpkg (>= 1.14.0)" 306 COMMON_PREDEPS="dpkg (>= 1.14.0)"
309 307
310 308
311 # Make everything happen in the OUTPUTDIR. 309 # Make everything happen in the OUTPUTDIR.
312 cd "${OUTPUTDIR}" 310 cd "${OUTPUTDIR}"
313 311
314 case "$TARGETARCH" in 312 case "$TARGETARCH" in
315 ia32 ) 313 ia32 )
316 export ARCHITECTURE="i386" 314 export ARCHITECTURE="i386"
317 stage_install_debian
318 ;; 315 ;;
319 x64 ) 316 x64 )
320 export ARCHITECTURE="amd64" 317 export ARCHITECTURE="amd64"
321 stage_install_debian
322 ;; 318 ;;
323 * ) 319 * )
324 echo 320 echo
325 echo "ERROR: Don't know how to build DEBs for '$TARGETARCH'." 321 echo "ERROR: Don't know how to build DEBs for '$TARGETARCH'."
326 echo 322 echo
327 exit 1 323 exit 1
328 ;; 324 ;;
329 esac 325 esac
326 BASEREPOCONFIG="dl.google.com/linux/chrome/deb/ stable main"
327 # Only use the default REPOCONFIG if it's unset (e.g. verify_channel might have
328 # set it to an empty string)
329 REPOCONFIG="${REPOCONFIG-deb [arch=${ARCHITECTURE}] http://${BASEREPOCONFIG}}"
330 # Allowed configs include optional HTTPS support and explicit multiarch
331 # platforms.
332 REPOCONFIGREGEX="deb (\\\\[arch=[^]]*\\\\b${ARCHITECTURE}\\\\b[^]]*\\\\]"
333 REPOCONFIGREGEX+="[[:space:]]*)?https?://${BASEREPOCONFIG}"
334 stage_install_debian
330 335
331 do_package 336 do_package
OLDNEW
« no previous file with comments | « chrome/installer/linux/common/variables.include ('k') | chrome/installer/linux/rpm/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698