pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/47475: update pkgsrc/x11/xfd to 1.1.1 in order to build on solaris



>Number:         47475
>Category:       pkg
>Synopsis:       update pkgsrc/x11/xfd to 1.1.1 in order to build on solaris
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 20 12:15:09 +0000 2013
>Originator:     Richard PALO
>Release:        pkgsrc trunk
>Organization:
>Environment:
SunOS devzoneX 5.11 oi_151a7 i86pc i386 i86pc Solaris

>Description:
As with dragonfly, solaris needs to add LDFLAGS+= -lXmu -lXrender
(at least on modular xorg)
to avoid the following:


gcc  -O -I/opt/pkg/include -I/opt/pkg/include/freetype2 -I/usr/include  
-L/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2 
-Wl,-R/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2 -L/opt/pkg/gcc47/lib 
-Wl,-R/opt/pkg/gcc47/lib -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -L/usr/lib 
-Wl,-R/usr/lib -o xfd  xfd-grid.o xfd-xfd.o -Wl,-R/opt/pkg/lib -L/opt/pkg/lib 
-lXaw7 -lXt -lX11   -Wl,-R/opt/pkg/lib -L/opt/pkg/lib -lfreetype -lfontconfig 
-lXft 
Undefined                       first referenced
 symbol                             in file
XmuCvtStringToLong                  xfd-grid.o  (symbol belongs to implicit 
dependency /tmp/pkgsrc/x11/xfd/work/.buildlink/lib/libXmu.so.6)
XRenderParseColor                   xfd-grid.o  (symbol belongs to implicit 
dependency /tmp/pkgsrc/x11/xfd/work/.buildlink/lib/libXrender.so.1)
ld: fatal: symbol referencing errors. No output written to xfd
collect2: error: ld returned 1 exit status
*** Error code 1

Stop.

>How-To-Repeat:

>Fix:
I noticed upstream has fixed this so tested first 1.1.0 and 1.1.1
Both seem to work okay, so I propose to upgrade to 1.1.1.
Also, I explicitly added dependencies to libXrender and libXmu for completeness 
(at least with respect to the problem experienced).

It would be useful to have dragonfly confirm that this works, as perhaps as 
well a native x11 build...

Here is my proposed upgrade patch:

richard@devzoneX:~/src/pkgsrc/x11/xfd$ cvs diff
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/x11/xfd/Makefile,v
retrieving revision 1.8
diff -u -r1.8 Makefile
--- Makefile    29 Oct 2012 05:07:10 -0000      1.8
+++ Makefile    20 Jan 2013 12:06:25 -0000
@@ -1,8 +1,8 @@
 # $NetBSD: Makefile,v 1.8 2012/10/29 05:07:10 asau Exp $
 #
 
-DISTNAME=      xfd-1.0.1
-PKGREVISION=   3
+DISTNAME=      xfd-1.1.1
+PKGREVISION=   
 CATEGORIES=    x11
 MASTER_SITES=  ${MASTER_SITE_XORG:=app/}
 EXTRACT_SUFX=  .tar.bz2
@@ -17,8 +17,8 @@
 CONFIGURE_ENV+=                APP_MAN_SUFFIX=1
 MAKE_FLAGS+=           appdefaultdir=${PREFIX}/lib/X11/app-defaults
 
-LDFLAGS.DragonFly+=    -lXmu -lXrender
-
 .include "../../x11/libXft/buildlink3.mk"
 .include "../../x11/libXaw/buildlink3.mk"
+.include "../../x11/libXmu/buildlink3.mk"
+.include "../../x11/libXrender/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/x11/xfd/distinfo,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 distinfo
--- distinfo    19 May 2008 22:15:55 -0000      1.1.1.1
+++ distinfo    20 Jan 2013 12:06:25 -0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.1.1.1 2008/05/19 22:15:55 taca Exp $
+$NetBSD$
 
-SHA1 (xfd-1.0.1.tar.bz2) = 4b4987d8c8d41b29c0475474261f1aaea7d5efcb
-RMD160 (xfd-1.0.1.tar.bz2) = 2bd5f75790e09e72eb3e7745d03ced0e411a3ad0
-Size (xfd-1.0.1.tar.bz2) = 88927 bytes
+SHA1 (xfd-1.1.1.tar.bz2) = b8662c6c6821f1f82995bcb98bb986b56716b787
+RMD160 (xfd-1.1.1.tar.bz2) = 2470161a2083535a15ca82a746236cfda7d0f9ee
+Size (xfd-1.1.1.tar.bz2) = 130547 bytes



Home | Main Index | Thread Index | Old Index