Bug 136786 - Update port: textproc/luaexpat to build on amd64
Summary: Update port: textproc/luaexpat to build on amd64
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dmitry Marakasov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-15 13:10 UTC by Andrew Lewis
Modified: 2009-07-16 00:00 UTC (History)
0 users

See Also:


Attachments
file.diff (1.27 KB, patch)
2009-07-15 13:10 UTC, Andrew Lewis
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Lewis 2009-07-15 13:10:01 UTC
Patch to make textproc/luaexpat build on amd64 (Thankyou Kelly Hayes!)

Fix: Patch attached.

Patch attached with submission follows:
How-To-Repeat: textproc/luaexpat and net-im/prosody are marked ONLY_FOR_ARCHS=i386 and we are aiming to correct this
Comment 1 Dmitry Marakasov freebsd_committer freebsd_triage 2009-07-15 16:06:48 UTC
Responsible Changed
From-To: freebsd-ports-bugs->amdmi3

I'll take it.
Comment 2 Dmitry Marakasov 2009-07-15 20:04:03 UTC
> Synopsis: Update port: textproc/luaexpat to build on amd64
> 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=136786

What about some additions:

o Respect CC
o Check for actual lua version correctly (I think this was intended)

--- luaexpat.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/amdmi3/projects/freebsd/FreeBSD.cvs/ports/textproc/luaexpat/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- Makefile	14 Jul 2009 06:36:52 -0000	1.2
+++ Makefile	15 Jul 2009 19:00:56 -0000
@@ -16,17 +16,18 @@
 
 LIB_DEPENDS=	expat.6:${PORTSDIR}/textproc/expat2
 
-ONLY_FOR_ARCHS=	i386
-
 MAKEFILE=	makefile
 ALL_TARGET=	lib
 USE_LUA=	5.0-5.1
+LUA_PREMK=	yes
 WANT_LUA_VER=	5.1
 
 CFLAGS+=	-fPIC
 
-.if ${USE_LUA} == 5.0
+.include <bsd.port.pre.mk>
+
+.if ${LUA_VER} == 5.0
 BUILD_DEPENDS+=	${NONEXISTENT}:${PORTSDIR}/devel/lua50-compat51:build
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
Index: files/patch-config
===================================================================
RCS file: /home/amdmi3/projects/freebsd/FreeBSD.cvs/ports/textproc/luaexpat/files/patch-config,v
retrieving revision 1.1
diff -u -r1.1 patch-config
--- files/patch-config	14 Jul 2009 06:02:55 -0000	1.1
+++ files/patch-config	15 Jul 2009 18:46:59 -0000
@@ -1,5 +1,5 @@
---- config.orig	2006-06-08 20:41:48.000000000 +0000
-+++ config	2009-07-03 03:00:20.000000000 +0000
+--- config.orig	2006-06-09 00:41:48.000000000 +0400
++++ config	2009-07-15 22:46:59.000000000 +0400
 @@ -1,15 +1,15 @@
  # Installation directories
  # System's libraries directory (where binary libraries are installed)
@@ -30,3 +30,12 @@
  
  # Compilation parameters
  CWARNS = -Wall -pedantic \
+@@ -31,6 +31,6 @@
+         -Wshadow \
+         -Wwrite-strings
+ 
+-CFLAGS = $(CWARNS) -ansi -O2 -I$(LUA_INC) \
++CFLAGS += $(CWARNS) -ansi -O2 -I$(LUA_INC) \
+    -I$(COMPAT_DIR) -I$(EXPAT_INC)
+-CC = gcc
++CC? = gcc
--- luaexpat.patch ends here ---

-- 
Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
amdmi3@amdmi3.ru  ..:  jabber: amdmi3@jabber.ru    http://www.amdmi3.ru
Comment 3 Dmitry Marakasov freebsd_committer freebsd_triage 2009-07-15 21:19:24 UTC
State Changed
From-To: open->feedback

Awaiting submitters feedback
Comment 4 Andrew Lewis 2009-07-15 21:37:02 UTC
> o Respect CC

I had submitted a patch for this but I miscategorised it:
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/136789

>o Check for actual lua version correctly (I think this was intended)

Indeed.

Looks good, thankyou very much. :)
Comment 5 Dmitry Marakasov freebsd_committer freebsd_triage 2009-07-15 23:50:32 UTC
State Changed
From-To: feedback->open

Submitter has approved.
Comment 6 Dmitry Marakasov freebsd_committer freebsd_triage 2009-07-15 23:54:38 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 7 dfilter service freebsd_committer freebsd_triage 2009-07-15 23:54:42 UTC
amdmi3      2009-07-15 22:54:33 UTC

  FreeBSD ports repository

  Modified files:
    textproc/luaexpat    Makefile 
    textproc/luaexpat/files patch-config 
  Log:
  - Fix on amd64
  - Respect CC
  - Check for lua version correctly
  
  PR:             136786, 136789
  Submitted by:   Andrew Lewis <freeghb@gmail.com> (maintainer)
  
  Revision  Changes    Path
  1.3       +5 -4      ports/textproc/luaexpat/Makefile
  1.2       +11 -2     ports/textproc/luaexpat/files/patch-config
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"