Bug 230179 - textproc/luaexpat: fails test script on lua 5.3
Summary: textproc/luaexpat: fails test script on lua 5.3
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: David Thiel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-30 07:23 UTC by Andrew "RhodiumToad" Gierth
Modified: 2018-07-30 21:44 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (lx)


Attachments
Makefile patch (622 bytes, patch)
2018-07-30 07:23 UTC, Andrew "RhodiumToad" Gierth
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew "RhodiumToad" Gierth 2018-07-30 07:23:59 UTC
Created attachment 195622 [details]
Makefile patch

The supposed "fix" for luaexpat in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224644 is incorrect, and this is easily demonstrated by running the test.lua script included in the module source.

The most reasonable fix seems to be this (in addition to removing the incorrect LUA_32BITS):

MAKE_ARGS+= COMMON_CFLAGS="-Wall"

(i.e. removing options -g -O2 -ansi -pedantic -fPIC -DPIC from the makefile; -fPIC is added back from CFLAGS already, and debug/optimization flags are likewise supposed to come from the port CFLAGS.)

Another option that works would be to use -std=c99, but I think the above method is better (and I have checked that the test script runs ok on lua 5.1 and 5.2 still).

Patch attached. (I also added a LICENSE=MIT - see the doc/us/license.html in the distribution)
Comment 1 Andrew "RhodiumToad" Gierth 2018-07-30 07:27:33 UTC
(In reply to andrew from comment #0)

oops, forgot to increment PORTREVISION

should I post a new patch or is it not worth it?
Comment 2 David Thiel freebsd_committer freebsd_triage 2018-07-30 19:36:32 UTC
No worries, I'll submit it with the portrevision bump.
Comment 3 commit-hook freebsd_committer freebsd_triage 2018-07-30 21:43:47 UTC
A commit references this bug:

Author: lx
Date: Mon Jul 30 21:43:31 UTC 2018
New revision: 475915
URL: https://svnweb.freebsd.org/changeset/ports/475915

Log:
  Better fix for INT build failures.

  PR:		230179
  Submitted by:	andrew@tao11.riddles.org.uk

Changes:
  head/textproc/luaexpat/Makefile
Comment 4 David Thiel freebsd_committer freebsd_triage 2018-07-30 21:44:21 UTC
Committed, thanks!