print/cups{,15}: Don't make ${CUPS_CONFDIR} with INSTALLATION_DIRS. ${CUPS_CONFDIR} (${PKG_SYSCONFDIR}) may be located outside of ${PREFIX}, which causes a installation failure due to the checks added in mk/install/install.mk. Remove ${CUPS_CONFDIR} from INSTALLATION_DIRS since it is created by the package install script at PRE-INSTALL time. Fixes pkg/52481 reported by Hauke Fath.diff -r1.248 -r1.249 pkgsrc/print/cups/Makefile
(jlam)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.248 2017/08/01 14:59:04 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.249 2017/08/20 23:55:54 jlam Exp $ | |
2 | 2 | |||
3 | DISTNAME= cups-2.2.3-source | 3 | DISTNAME= cups-2.2.3-source | |
4 | PKGNAME= ${DISTNAME:S/-source//} | 4 | PKGNAME= ${DISTNAME:S/-source//} | |
5 | PKGREVISION= 2 | 5 | PKGREVISION= 2 | |
6 | CATEGORIES= print | 6 | CATEGORIES= print | |
7 | MASTER_SITES= ${MASTER_SITE_GITHUB:=apple/} | 7 | MASTER_SITES= ${MASTER_SITE_GITHUB:=apple/} | |
8 | 8 | |||
9 | MAINTAINER= sbd@NetBSD.org | 9 | MAINTAINER= sbd@NetBSD.org | |
10 | HOMEPAGE= https://www.cups.org/ | 10 | HOMEPAGE= https://www.cups.org/ | |
11 | COMMENT= Common UNIX Printing System | 11 | COMMENT= Common UNIX Printing System | |
12 | LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2 | 12 | LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2 | |
13 | 13 | |||
14 | GITHUB_RELEASE= v${PKGVERSION_NOREV} | 14 | GITHUB_RELEASE= v${PKGVERSION_NOREV} | |
@@ -121,27 +121,27 @@ SUBST_CLASSES+= rpathfix | @@ -121,27 +121,27 @@ SUBST_CLASSES+= rpathfix | |||
121 | SUBST_FILES.rpathfix= cups-config.in | 121 | SUBST_FILES.rpathfix= cups-config.in | |
122 | SUBST_MESSAGE.rpathfix= Adding rpath to cups-config. | 122 | SUBST_MESSAGE.rpathfix= Adding rpath to cups-config. | |
123 | SUBST_SED.rpathfix= -e 's|@EXPORT_LDFLAGS@|${COMPILER_RPATH_FLAG}${PREFIX}/lib|g' | 123 | SUBST_SED.rpathfix= -e 's|@EXPORT_LDFLAGS@|${COMPILER_RPATH_FLAG}${PREFIX}/lib|g' | |
124 | SUBST_STAGE.rpathfix= post-patch | 124 | SUBST_STAGE.rpathfix= post-patch | |
125 | 125 | |||
126 | .if !empty(OPSYS:MNetBSD) && !empty(MACHINE_ARCH:Mpowerpc) | 126 | .if !empty(OPSYS:MNetBSD) && !empty(MACHINE_ARCH:Mpowerpc) | |
127 | SUBST_CLASSES+= piefix | 127 | SUBST_CLASSES+= piefix | |
128 | SUBST_FILES.piefix= Makedefs.in | 128 | SUBST_FILES.piefix= Makedefs.in | |
129 | SUBST_MESSAGE.piefix= Removing PIE flags | 129 | SUBST_MESSAGE.piefix= Removing PIE flags | |
130 | SUBST_SED.piefix= -e 's|@PIEFLAGS@||g' | 130 | SUBST_SED.piefix= -e 's|@PIEFLAGS@||g' | |
131 | SUBST_STAGE.piefix= post-patch | 131 | SUBST_STAGE.piefix= post-patch | |
132 | .endif | 132 | .endif | |
133 | 133 | |||
134 | INSTALLATION_DIRS= ${DOCDIR} ${EGDIR} ${MIMEDIR} ${CUPS_CONFDIR} | 134 | INSTALLATION_DIRS= ${DOCDIR} ${EGDIR} ${MIMEDIR} | |
135 | INSTALL_ENV+= DSTROOT=${DESTDIR} | 135 | INSTALL_ENV+= DSTROOT=${DESTDIR} | |
136 | 136 | |||
137 | pre-configure: | 137 | pre-configure: | |
138 | .if !empty(CUPS_SYSTEM_GROUPS:M${CUPS_GROUP}) | 138 | .if !empty(CUPS_SYSTEM_GROUPS:M${CUPS_GROUP}) | |
139 | ${ERROR_MSG} "CUPS_SYSTEM_GROUPS may not contain the CUPS_GROUP" | 139 | ${ERROR_MSG} "CUPS_SYSTEM_GROUPS may not contain the CUPS_GROUP" | |
140 | exit 1 | 140 | exit 1 | |
141 | .endif | 141 | .endif | |
142 | cd ${WRKSRC} && aclocal && autoconf | 142 | cd ${WRKSRC} && aclocal && autoconf | |
143 | 143 | |||
144 | post-extract: | 144 | post-extract: | |
145 | ${CP} ${FILESDIR}/cups.pam ${WRKDIR}/cups.pam | 145 | ${CP} ${FILESDIR}/cups.pam ${WRKDIR}/cups.pam | |
146 | 146 | |||
147 | post-install: | 147 | post-install: |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.19 2017/08/01 14:59:04 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.20 2017/08/20 23:55:54 jlam Exp $ | |
2 | # | 2 | # | |
3 | # The CUPS author is very good about taking back changes into the main | 3 | # The CUPS author is very good about taking back changes into the main | |
4 | # CUPS distribution. The correct place to send patches or bug-fixes is: | 4 | # CUPS distribution. The correct place to send patches or bug-fixes is: | |
5 | # cups-bugs@cups.org. | 5 | # cups-bugs@cups.org. | |
6 | 6 | |||
7 | DISTNAME= cups-${DIST_VERS}-source | 7 | DISTNAME= cups-${DIST_VERS}-source | |
8 | PKGNAME= cups-${DIST_VERS:S/-/./g} | 8 | PKGNAME= cups-${DIST_VERS:S/-/./g} | |
9 | BASE_VERS= 1.5.4 | 9 | BASE_VERS= 1.5.4 | |
10 | DIST_VERS= ${BASE_VERS} | 10 | DIST_VERS= ${BASE_VERS} | |
11 | PKGREVISION= 16 | 11 | PKGREVISION= 16 | |
12 | 12 | |||
13 | # Fix for https://www.cups.org/str.php?L4609 | 13 | # Fix for https://www.cups.org/str.php?L4609 | |
14 | PATCH_SITES= https://www.cups.org/strfiles.php/3482/ | 14 | PATCH_SITES= https://www.cups.org/strfiles.php/3482/ | |
@@ -149,27 +149,27 @@ SUBST_CLASSES+= rpathfix | @@ -149,27 +149,27 @@ SUBST_CLASSES+= rpathfix | |||
149 | SUBST_FILES.rpathfix= cups-config.in | 149 | SUBST_FILES.rpathfix= cups-config.in | |
150 | SUBST_MESSAGE.rpathfix= Adding rpath to cups-config. | 150 | SUBST_MESSAGE.rpathfix= Adding rpath to cups-config. | |
151 | SUBST_SED.rpathfix= -e 's|@EXPORT_LDFLAGS@|${COMPILER_RPATH_FLAG}${PREFIX}/lib|g' | 151 | SUBST_SED.rpathfix= -e 's|@EXPORT_LDFLAGS@|${COMPILER_RPATH_FLAG}${PREFIX}/lib|g' | |
152 | SUBST_STAGE.rpathfix= post-patch | 152 | SUBST_STAGE.rpathfix= post-patch | |
153 | 153 | |||
154 | .if !empty(OPSYS:MNetBSD) && !empty(MACHINE_ARCH:Mpowerpc) | 154 | .if !empty(OPSYS:MNetBSD) && !empty(MACHINE_ARCH:Mpowerpc) | |
155 | SUBST_CLASSES+= piefix | 155 | SUBST_CLASSES+= piefix | |
156 | SUBST_FILES.piefix= Makedefs.in | 156 | SUBST_FILES.piefix= Makedefs.in | |
157 | SUBST_MESSAGE.piefix= Removing PIE flags | 157 | SUBST_MESSAGE.piefix= Removing PIE flags | |
158 | SUBST_SED.piefix= -e 's|@PIEFLAGS@||g' | 158 | SUBST_SED.piefix= -e 's|@PIEFLAGS@||g' | |
159 | SUBST_STAGE.piefix= post-patch | 159 | SUBST_STAGE.piefix= post-patch | |
160 | .endif | 160 | .endif | |
161 | 161 | |||
162 | INSTALLATION_DIRS= ${DOCDIR} ${EGDIR} ${MIMEDIR} ${CUPS_CONFDIR} | 162 | INSTALLATION_DIRS= ${DOCDIR} ${EGDIR} ${MIMEDIR} | |
163 | INSTALL_ENV+= DSTROOT=${DESTDIR} | 163 | INSTALL_ENV+= DSTROOT=${DESTDIR} | |
164 | 164 | |||
165 | pre-configure: | 165 | pre-configure: | |
166 | .if !empty(CUPS_SYSTEM_GROUPS:M${CUPS_GROUP}) | 166 | .if !empty(CUPS_SYSTEM_GROUPS:M${CUPS_GROUP}) | |
167 | ${ERROR_MSG} "CUPS_SYSTEM_GROUPS may not contain the CUPS_GROUP" | 167 | ${ERROR_MSG} "CUPS_SYSTEM_GROUPS may not contain the CUPS_GROUP" | |
168 | exit 1 | 168 | exit 1 | |
169 | .endif | 169 | .endif | |
170 | cd ${WRKSRC} && aclocal && autoconf | 170 | cd ${WRKSRC} && aclocal && autoconf | |
171 | 171 | |||
172 | post-extract: | 172 | post-extract: | |
173 | ${CP} ${FILESDIR}/cups.pam ${WRKDIR}/cups.pam | 173 | ${CP} ${FILESDIR}/cups.pam ${WRKDIR}/cups.pam | |
174 | 174 | |||
175 | post-install: | 175 | post-install: |