mirror of https://gitee.com/openkylin/cups.git
parent
a15a99feab
commit
627cbd9ab9
|
@ -1,3 +1,10 @@
|
|||
cups (2.3.1-ok2) yangtze; urgency=medium
|
||||
|
||||
* debian/rules:
|
||||
+ fix openkylin vendor
|
||||
|
||||
-- luzhiping <luzhiping@kylinos.cn> Wed, 01 Jun 2022 10:57:48 +0800
|
||||
|
||||
cups (2.3.1-ok1) yangtze; urgency=medium
|
||||
|
||||
* Build for openKylin.
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
derives_from_ubuntu := $(shell (dpkg-vendor --derives-from Ubuntu && echo "yes") || echo "no")
|
||||
derives_from_openkylin := $(shell (dpkg-vendor --derives-from openKylin && echo "yes") || echo "no")
|
||||
|
||||
# Enabling PIE globally doesn't work, but ./configure already enables PIE
|
||||
# where necessary.
|
||||
|
@ -11,6 +12,10 @@ ifeq ($(shell dpkg-vendor --is Ubuntu && echo yes) $(DEB_HOST_ARCH), yes i386)
|
|||
skip_packages = -Ncups -Ncups-core-drivers
|
||||
endif
|
||||
|
||||
ifeq ($(shell dpkg-vendor --is openKylin && echo yes) $(DEB_HOST_ARCH), yes i386)
|
||||
skip_packages = -Ncups -Ncups-core-drivers
|
||||
endif
|
||||
|
||||
# The build system uses only DSOFLAGS but not LDFLAGS to build some libraries.
|
||||
# Add LDFLAGS to enable (hardening) build flags.
|
||||
export DSOFLAGS = $(shell dpkg-buildflags --get LDFLAGS)
|
||||
|
@ -27,7 +32,7 @@ CONFIG_LIBUSB=--enable-libusb
|
|||
endif
|
||||
|
||||
override_dh_auto_configure:
|
||||
ifeq ($(derives_from_ubuntu),yes)
|
||||
ifeq ($(filter yes,$(derives_from_ubuntu) $(derives_from_openkylin)),yes)
|
||||
set -e; if ! [ -e debian/patches-ubuntu/stamp-applied ]; then \
|
||||
echo '---- Applying Ubuntu specific patches'; \
|
||||
for p in debian/patches-ubuntu/*; do \
|
||||
|
|
Loading…
Reference in New Issue