On Wed, Feb 13, 2008 at 11:41:20PM +0100, Markus Lude wrote:
> Hello,
> today I built the new xpdf packages and tried to update:
>
> $ make update
> ===> Updating for xpdf-3.02pl2p1
> Not installed, no update
yes, because the new package is textproc/xpdf,-main and the previous was
textproc/xpdf. Try running make -n update to see what happens.
At least that's how i understand how ports framework works.
But pkg_add -ui works.
$PKG_PATH=/usr/ports/packages/i386/all sudo pkg_add -ui xpdf
Candidates for updating xpdf-3.02pl2 -> xpdf-3.02pl2p2
...
Running the equivalent of pkg_add -r xpdf-3.02pl2p2
xpdf-utils-3.02pl2 (extracting): complete
xpdf-3.02pl2 (deleting): complete
xpdf-utils-3.02pl2 (installing): complete
xpdf-3.02pl2p2 (replacing xpdf-3.02pl2): complete
> ===> Updating for xpdf-utils-3.02pl2
> Not installed, no update
> $ pkg_info | grep xpdf
> xpdf-3.02pl2p0 PDF viewer for X11
>
> If I remove the installed one and try to install the new one I get
> strange output:
>
> $ sudo pkg_delete xpdf
> xpdf-3.02pl2p0: complete
> Clean shared items: complete
> $ make install
> ===> xpdf-3.02pl2p1 depends on: ghostscript-fonts-* - found
> ===> xpdf-3.02pl2p1 depends on: xpdf-utils-3.02pl2 - not found
> ===> Verifying install for xpdf-utils-3.02pl2 in textproc/xpdf
> ===> xpdf-3.02pl2p1 depends on: xpdf-utils-3.02pl2 - not found
> ===> Verifying install for xpdf-utils-3.02pl2 in textproc/xpdf
> ...
> and so on
>
> I could first explicitly install the -utils package, which works.
> But it woudl be nice if upgrading would work too. I currently don't see
> where it goes wrong.
>
> Any suggestions or hints?
the make install issue can be fixed by the attached patch (i missed a
-utils in RUN_DEPENDS):
$make install
===> xpdf-3.02pl2p2 depends on: xpdf-utils-3.02pl2 - not found
===> Verifying install for xpdf-utils-3.02pl2 in textproc/xpdf
===> Installing xpdf-utils-3.02pl2 from /usr/ports/packages/i386/all/
Can't install xpdf-utils-3.02pl2 because of conflicts (xpdf-3.02pl2)
/usr/sbin/pkg_add: xpdf-utils-3.02pl2:Fatal error
<== this is normal, because xpdf-utils conflicts with previous xpdf
package.
$sudo pkg_delete xpdf-3.02pl2
xpdf-3.02pl2: complete
$make install
===> xpdf-3.02pl2p2 depends on: xpdf-utils-3.02pl2 - not found
===> Verifying install for xpdf-utils-3.02pl2 in textproc/xpdf
===> Installing xpdf-utils-3.02pl2 from /usr/ports/packages/i386/all/
xpdf-utils-3.02pl2: complete
===> Returning to build of xpdf-3.02pl2p2
===> xpdf-3.02pl2p2 depends on: xpdf-utils-3.02pl2 - found
===> Verifying specs: t1.>=3 Xm.>=2 c m pthread stdc++ z ICE SM X11
Xext Xp Xpm Xt freetype
===> found t1.6.0 Xm.4.0 c.43.0 m.2.3 pthread.9.0 stdc++.44.0 z.4.1
ICE.8.1 SM.8.0 X11.11.1 Xext.10.0 Xp.10.0 Xpm.8.0 Xt.10.0 freetype.16.0
===> Installing xpdf-3.02pl2p2 from /usr/ports/packages/i386/all/
xpdf-3.02pl2p2: complete
Hope this fixes your issue.
Landry
Index: Makefile
===================================================================
RCS file: /cvs/ports/textproc/xpdf/Makefile,v
retrieving revision 1.59
diff -u -p -u -r1.59 Makefile
--- Makefile 13 Feb 2008 16:18:33 -0000 1.59
+++ Makefile 14 Feb 2008 08:12:46 -0000
@@ -4,7 +4,7 @@ COMMENT-main= PDF viewer for X11
COMMENT-utils= PDF conversion tools
DISTNAME= xpdf-3.02
-PKGNAME-main= xpdf-3.02pl2p1
+PKGNAME-main= xpdf-3.02pl2p2
PKGNAME-utils= xpdf-utils-3.02pl2
CATEGORIES= textproc x11
@@ -39,7 +39,7 @@ LIB_DEPENDS-utils=
LIB_DEPENDS-main= t1.>=3::devel/t1lib ${LIB_DEPENDS}
RUN_DEPENDS-utils= ::print/ghostscript/gnu-fonts
RUN_DEPENDS-main= ${RUN_DEPENDS-utils} \
- :${FULLPKGNAME-utils}:textproc/xpdf
+ :${FULLPKGNAME-utils}:textproc/xpdf,-utils
WANTLIB-utils= c m pthread stdc++ z
WANTLIB-main= ${WANTLIB-utils} ICE SM X11 Xext Xp Xpm Xt freetype