debian/rules: Second attempt to fix Debian/Ubuntu dependencies, this time by providing the compatibility symlinks in the main package.

This commit is contained in:
Sebastian Lackner 2015-01-11 13:42:15 +01:00
parent 7850f8bd74
commit b56948f392
2 changed files with 13 additions and 22 deletions

12
debian/control vendored
View File

@ -247,9 +247,7 @@ Description: The Staging Edition is a special build of the popular Wine software
Package: wine-compholio
Architecture: i386 amd64
Depends: wine-staging, ${misc:Depends},
wine-compholio-i386 (= ${binary:Version}) [i386 amd64],
wine-compholio-amd64 (= ${binary:Version}) [amd64],
Depends: wine-staging, ${misc:Depends}
Priority: extra
Section: oldlibs
Description: Transitional dummy package
@ -273,9 +271,7 @@ Description: Transitional dummy package
Package: wine-compholio-dev
Architecture: i386 amd64
Depends: wine-staging-dev, ${misc:Depends},
wine-compholio-i386 (= ${binary:Version}) [i386 amd64],
wine-compholio-amd64 (= ${binary:Version}) [amd64],
Depends: wine-staging-dev, ${misc:Depends}
Priority: extra
Section: oldlibs
Description: Transitional dummy package
@ -283,9 +279,7 @@ Description: Transitional dummy package
Package: wine-compholio-dbg
Architecture: i386 amd64
Depends: wine-staging-dbg, ${misc:Depends},
wine-compholio-i386 (= ${binary:Version}) [i386 amd64],
wine-compholio-amd64 (= ${binary:Version}) [amd64],
Depends: wine-staging-dbg, ${misc:Depends}
Priority: extra
Section: oldlibs
Description: Transitional dummy package

23
debian/rules vendored
View File

@ -60,19 +60,16 @@ override_dh_install:
ln -s "/opt/wine-staging/bin/$$_file" "debian/wine-compholio/opt/wine-compholio/bin/$$_file"; \
done
if [ -e debian/wine-staging-i386 ]; then \
mkdir -p debian/wine-compholio-i386/opt/wine-compholio/bin; \
for _file in $$(ls "debian/wine-staging-i386/opt/wine-staging/bin"); do \
ln -s "/opt/wine-staging/bin/$$_file" "debian/wine-compholio-i386/opt/wine-compholio/bin/$$_file"; \
done \
fi
if [ -e debian/wine-staging-amd64 ]; then \
mkdir -p debian/wine-compholio-amd64/opt/wine-compholio/bin; \
for _file in $$(ls "debian/wine-staging-amd64/opt/wine-staging/bin"); do \
ln -s "/opt/wine-staging/bin/$$_file" "debian/wine-compholio-amd64/opt/wine-compholio/bin/$$_file"; \
done \
fi
# Architecture specific compatibility symlinks
ifeq ($(DEB_HOST_ARCH),amd64)
for _file in wine wine-preloader wine64 wine64-preloader; do \
ln -s "/opt/wine-staging/bin/$$_file" "debian/wine-compholio/opt/wine-compholio/bin/$$_file"; \
done
else
for _file in wine wine-preloader; do \
ln -s "/opt/wine-staging/bin/$$_file" "debian/wine-compholio/opt/wine-compholio/bin/$$_file"; \
done
endif
override_dh_strip:
dh_strip -Xwine-pthread -Xwine-kthread --dbg-package=wine-staging-dbg