Re: Hidden dependency for print/ptouch-driver

2020-08-03 Thread Kurt Mosiejczuk
On Mon, Aug 03, 2020 at 10:17:23AM +0200, Antoine Jacoutot wrote:

> > > > Did you 'make port-lib-depends-check'?

> > superhell$ make port-lib-depends-check
> > superhell$

> > make lib-depends-check does question if it is needed in LIB_DEPENDS. So is 
> > it
> > a BUILD_DEPENDS only?

> Thanks, I added the BDEP with an explanation.

Cool. Thanks.

--Kurt



Re: Hidden dependency for print/ptouch-driver

2020-08-03 Thread Stuart Henderson
On 2020/08/02 19:33, Antoine Jacoutot wrote:
> On Sun, Aug 02, 2020 at 07:25:08PM +0200, Antoine Jacoutot wrote:
> > On Sun, Aug 02, 2020 at 01:05:51PM -0400, Kurt Mosiejczuk wrote:
> > > Had a failure of print/ptouch-driver on the current sparc64 build.
> > > 
> > > ptexplain.c: In function 'main':
> > > ptexplain.c:813: error: 'HAVE_LIBPNG' undeclared (first use in this 
> > > function)
> > > ptexplain.c:813: error: (Each undeclared identifier is reported only once
> > > ptexplain.c:813: error: for each function it appears in.)
> > > gmake[1]: *** [Makefile:531: ptexplain.o] Error 1
> > > 
> > > Adding graphics/png to LIB_DEPENDS fixes it.
> > > 
> > > ok?
> > 
> > Not quite: LIB_DEPENDS without a corresponding is wrong.
> 
> corresponding *WANTLIB*

"make package" will complain too (something something "not needed")



Re: Hidden dependency for print/ptouch-driver

2020-08-03 Thread Antoine Jacoutot
On Sun, Aug 02, 2020 at 01:35:09PM -0400, Kurt Mosiejczuk wrote:
> On Sun, Aug 02, 2020 at 07:33:32PM +0200, Antoine Jacoutot wrote:
> 
> > > > Adding graphics/png to LIB_DEPENDS fixes it.
> 
> > > > ok?
> 
> > > Not quite: LIB_DEPENDS without a corresponding is wrong.
> 
> > corresponding *WANTLIB*
> 
> > > Did you 'make port-lib-depends-check'?
> 
> superhell$ make port-lib-depends-check
> superhell$
> 
> make lib-depends-check does question if it is needed in LIB_DEPENDS. So is it
> a BUILD_DEPENDS only?

Thanks, I added the BDEP with an explanation.

-- 
Antoine



Re: Hidden dependency for print/ptouch-driver

2020-08-02 Thread Kurt Mosiejczuk
On Sun, Aug 02, 2020 at 07:33:32PM +0200, Antoine Jacoutot wrote:

> > > Adding graphics/png to LIB_DEPENDS fixes it.

> > > ok?

> > Not quite: LIB_DEPENDS without a corresponding is wrong.

> corresponding *WANTLIB*

> > Did you 'make port-lib-depends-check'?

superhell$ make port-lib-depends-check
superhell$

make lib-depends-check does question if it is needed in LIB_DEPENDS. So is it
a BUILD_DEPENDS only?

--Kurt



Re: Hidden dependency for print/ptouch-driver

2020-08-02 Thread Antoine Jacoutot
On Sun, Aug 02, 2020 at 07:25:08PM +0200, Antoine Jacoutot wrote:
> On Sun, Aug 02, 2020 at 01:05:51PM -0400, Kurt Mosiejczuk wrote:
> > Had a failure of print/ptouch-driver on the current sparc64 build.
> > 
> > ptexplain.c: In function 'main':
> > ptexplain.c:813: error: 'HAVE_LIBPNG' undeclared (first use in this 
> > function)
> > ptexplain.c:813: error: (Each undeclared identifier is reported only once
> > ptexplain.c:813: error: for each function it appears in.)
> > gmake[1]: *** [Makefile:531: ptexplain.o] Error 1
> > 
> > Adding graphics/png to LIB_DEPENDS fixes it.
> > 
> > ok?
> 
> Not quite: LIB_DEPENDS without a corresponding is wrong.

corresponding *WANTLIB*


> Did you 'make port-lib-depends-check'?
> 
> 
> > Index: Makefile
> > ===
> > RCS file: /cvs/ports/print/ptouch-driver/Makefile,v
> > retrieving revision 1.10
> > diff -u -p -r1.10 Makefile
> > --- Makefile28 May 2020 08:47:38 -  1.10
> > +++ Makefile2 Aug 2020 17:04:13 -
> > @@ -6,6 +6,7 @@ GH_TAGNAME= v1.5.1
> >  GH_ACCOUNT=philpem
> >  GH_PROJECT=printer-driver-ptouch
> >  DISTNAME=  ptouch-driver-${GH_TAGNAME:S/v//}
> > +REVISION=  0
> >  
> >  WRKDIST=   ${WRKDIR}/ptouch-driver-${GH_TAGNAME:S/v//}
> >  
> > @@ -22,7 +23,8 @@ MASTER_SITES= https://github.com/philpe
> >  
> >  BUILD_DEPENDS= textproc/p5-XML-LibXML
> >  
> > -LIB_DEPENDS=   print/cups,-libs
> > +LIB_DEPENDS=   graphics/png \
> > +   print/cups,-libs
> >  
> >  # foomatic-rip(1), foomatic-db{,-engine}
> >  RUN_DEPENDS += print/cups-filters
> > 
> 
> -- 
> Antoine
> 

-- 
Antoine



Re: Hidden dependency for print/ptouch-driver

2020-08-02 Thread Antoine Jacoutot
On Sun, Aug 02, 2020 at 01:05:51PM -0400, Kurt Mosiejczuk wrote:
> Had a failure of print/ptouch-driver on the current sparc64 build.
> 
> ptexplain.c: In function 'main':
> ptexplain.c:813: error: 'HAVE_LIBPNG' undeclared (first use in this function)
> ptexplain.c:813: error: (Each undeclared identifier is reported only once
> ptexplain.c:813: error: for each function it appears in.)
> gmake[1]: *** [Makefile:531: ptexplain.o] Error 1
> 
> Adding graphics/png to LIB_DEPENDS fixes it.
> 
> ok?

Not quite: LIB_DEPENDS without a corresponding is wrong.
Did you 'make port-lib-depends-check'?


> Index: Makefile
> ===
> RCS file: /cvs/ports/print/ptouch-driver/Makefile,v
> retrieving revision 1.10
> diff -u -p -r1.10 Makefile
> --- Makefile  28 May 2020 08:47:38 -  1.10
> +++ Makefile  2 Aug 2020 17:04:13 -
> @@ -6,6 +6,7 @@ GH_TAGNAME=   v1.5.1
>  GH_ACCOUNT=  philpem
>  GH_PROJECT=  printer-driver-ptouch
>  DISTNAME=ptouch-driver-${GH_TAGNAME:S/v//}
> +REVISION=0
>  
>  WRKDIST= ${WRKDIR}/ptouch-driver-${GH_TAGNAME:S/v//}
>  
> @@ -22,7 +23,8 @@ MASTER_SITES=   https://github.com/philpe
>  
>  BUILD_DEPENDS=   textproc/p5-XML-LibXML
>  
> -LIB_DEPENDS= print/cups,-libs
> +LIB_DEPENDS= graphics/png \
> + print/cups,-libs
>  
>  # foomatic-rip(1), foomatic-db{,-engine}
>  RUN_DEPENDS +=   print/cups-filters
> 

-- 
Antoine