~xorg-edgers/xorg-server/xorg-pkg-tools

« back to all changes in this revision

Viewing changes to lts-pkg-rename

  • Committer: Maarten Lankhorst
  • Date: 2015-03-19 08:37:10 UTC
  • Revision ID: maarten.lankhorst@canonical.com-20150319083710-e870tpvu3v5ufwlw
Kill off libegl1-mesa-drivers completely for vivid.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 
40
40
set -e
41
41
 
42
 
extraversion="~trusty"
43
 
lts_codename="trusty-proposed"
44
 
default_changelog_entry="Rebuild utopic package for lts-trusty for all archs. (LP: #1400626)"
 
42
extraversion="~~ppa3."
 
43
lts_codename="trusty"
 
44
default_changelog_entry="Initial ppa upload for lts-vivid."
45
45
 
46
46
if [ "$0" = "$(basename "$0")" ]; then
47
47
    basedir="$(dirname $(readlink -e $(which "$0")))"
258
258
        backport_arch="trusty"
259
259
        extraconflicts=""
260
260
    ;;
 
261
    lts-vivid)
 
262
        backport_arch="trusty"
 
263
        extraconflicts="xorg-renamed-package-lts-utopic,"
 
264
    ;;
261
265
    *)
262
266
        ERR "unknown release ${suffix}"
263
267
    ;;
284
288
msg "Processing the control file..."
285
289
 
286
290
if [ "${old_package}" = "mesa" ]; then
 
291
    if [ "${backport_arch}" != "precise" -a "${new_package}" != "mesa-lts-utopic" ]; then
 
292
        extrakill=",libegl1-mesa-drivers"
 
293
    else
 
294
        extrakill=""
 
295
    fi
 
296
 
287
297
    ${basedir}/dpkg-control \
288
298
        --source-suffix ${suffix} \
289
299
        --binary-suffix ${suffix} \
290
300
        --mapping-file ${rename_mapping_file} \
291
301
        --add-replaces --add-provides --add-conflicts \
292
302
        --extra-conflicts "${extraconflicts}" \
293
 
        --kill-binaries "libosmesa6,libosmesa6-dev,libgl1-mesa-dri-experimental,libgl1-mesa-dri-experimental-dbg" \
 
303
        --kill-binaries "libosmesa6,libosmesa6-dev,libgl1-mesa-dri-experimental,libgl1-mesa-dri-experimental-dbg${extrakill}" \
294
304
        > ${control}.new
295
305
elif [ "${old_package}" = "xorg-server" ]; then
296
306
    if [ "${backport_arch}" = "precise" ]; then
422
432
 
423
433
        sed -e 's/--enable-dri3/--disable-dri3/' \
424
434
            -i debian/rules.new
 
435
    elif [ "${backport_arch}" = "trusty" -a "${new_package}" != "mesa-lts-utopic" ]; then
 
436
        sed -e "s@libegl1-mesa, ${extraprovides}@& libegl1-mesa-drivers,@" -i debian/control.new
425
437
    fi
426
438
 
427
439
    files="$(ls debian/*-i686.*)"
440
452
 
441
453
    if grep -q libmir debian/control; then
442
454
        sed -e "/libmirclient-dev/d" \
 
455
            -e "/mir-client-platform-mesa-dev/d" \
443
456
            -i debian/control.new
444
457
        $dry sed -e /mir/d -i debian/patches/series
445
458
        $dry rm -f debian/patches/*mir*