On 5/21/08, Gerard <[EMAIL PROTECTED]> wrote: > I usually run 'portsdb -Uu' prior to updating my ports. Usually, some > sort of error or warning message is displayed. Not a fatal one, just > more of a warning. This is the one produced last night. > : > "/usr/ports/print/ghostscript-gpl-nox11/../ghostscript-gpl/Makefile", > line 132: warning: drivers incompatible with WITHOUT_X11 will be > removed automatically Warning: Duplicate INDEX entry: > ghostscript-gpl-8.62_2
The warning about WITHOUT_X11 can be ignored. The reason for the Duplicate INDEX entry is that both ports print/ghostscript-gpl and print/ghostscript-gpl-nox11 have the same pkg name: $ pwd /usr/ports/print/ghostscript-gpl $ make -V PKGNAME ghostscript-gpl-8.62_2 $ cd ../ghostscript-gpl-nox11 $ make -V PKGNAME "/usr/ports/print/ghostscript-gpl-nox11/../ghostscript-gpl/Makefile", line 132: warning: drivers incompatible with WITHOUT_X11 will be removed automatically ghostscript-gpl-8.62_2 The cause of PKGNAMESUFFIX not adding -nox11 for print/ghostscript-gpl-nox11 is due to both ports are using the same OPTIONSFILE, and the OPTIONSFILE has at least one of these defined: WITH_GS_x11 WITH_GS_x11alpha WITH_GS_x11cmyk WITH_GS_x11cmyk2 WITH_GS_x11cmyk4 WITH_GS_x11cmyk8 WITH_GS_x11gray2 WITH_GS_x11gray4 WITH_GS_x11mono WITH_GS_x11rg16x WITH_GS_x11rg32x hp010# pwd /usr/ports/print/ghostscript-gpl-nox11 hp010# make -V OPTIONSFILE /var/db/ports/ghostscript/options The attached patch fixes the WITHOUT_X11 case and has been sent as PR 123859: http://www.freebsd.org/cgi/query-pr.cgi?pr=123859 Scot
Index: Makefile =================================================================== RCS file: /home/ncvs/ports/print/ghostscript-gpl/Makefile,v retrieving revision 1.167 diff -u -r1.167 Makefile --- Makefile 8 May 2008 18:54:22 -0000 1.167 +++ Makefile 21 May 2008 12:32:07 -0000 @@ -117,7 +117,8 @@ . endif .endif -.if defined(WITH_GS_x11) \ +.if defined(WITHOUT_X11) +. if defined(WITH_GS_x11) \ || defined(WITH_GS_x11alpha) \ || defined(WITH_GS_x11cmyk) \ || defined(WITH_GS_x11cmyk2) \ @@ -128,7 +129,6 @@ || defined(WITH_GS_x11mono) \ || defined(WITH_GS_x11rg16x) \ || defined(WITH_GS_x11rg32x) -. if defined(WITHOUT_X11) . warning drivers incompatible with WITHOUT_X11 will be removed automatically . undef WITH_GS_x11 . undef WITH_GS_x11alpha @@ -142,13 +142,27 @@ . undef WITH_GS_x11rg16x . undef WITH_GS_x11rg32x . endif +PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-nox11 +CONFIGURE_ARGS+=--without-x +.else +. if defined(WITH_GS_x11) \ + || defined(WITH_GS_x11alpha) \ + || defined(WITH_GS_x11cmyk) \ + || defined(WITH_GS_x11cmyk2) \ + || defined(WITH_GS_x11cmyk4) \ + || defined(WITH_GS_x11cmyk8) \ + || defined(WITH_GS_x11gray2) \ + || defined(WITH_GS_x11gray4) \ + || defined(WITH_GS_x11mono) \ + || defined(WITH_GS_x11rg16x) \ + || defined(WITH_GS_x11rg32x) USE_XORG= xt xext CONFIGURE_ARGS+=--with-x \ --x-includes=${X11BASE}/include \ --x-libraries=${X11BASE}/lib -.else -PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-nox11 +. else CONFIGURE_ARGS+=--without-x +. endif .endif .if defined(WITH_GS_oprp) \
_______________________________________________ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"