Bug 196454 - sysutils/lsof allow build on 10/stable and head on arm.
Summary: sysutils/lsof allow build on 10/stable and head on arm.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm Any
: --- Affects Only Me
Assignee: Thomas Zander
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-03 00:57 UTC by Larry Rosenman
Modified: 2015-01-05 09:34 UTC (History)
3 users (show)

See Also:


Attachments
patch to remove broken for arm (577 bytes, patch)
2015-01-03 00:57 UTC, Larry Rosenman
no flags Details | Diff
poudriere log for 110 (39.42 KB, text/plain)
2015-01-03 01:00 UTC, Larry Rosenman
no flags Details
poudriere log for 10/stable (38.10 KB, text/plain)
2015-01-03 01:00 UTC, Larry Rosenman
no flags Details
added Sean's fix for handling below 10/stable (437 bytes, patch)
2015-01-03 02:04 UTC, Larry Rosenman
no flags Details | Diff
put OSVERSION checks in for arm (524 bytes, patch)
2015-01-03 22:08 UTC, Larry Rosenman
no flags Details | Diff
make arm and armv6 ARCH checks (549 bytes, patch)
2015-01-04 16:26 UTC, Larry Rosenman
no flags Details | Diff
add armv6hf to the list. I hope that's all the arm* archs (573 bytes, patch)
2015-01-04 19:15 UTC, Larry Rosenman
no flags Details | Diff
use a better way to get all arm archs (526 bytes, patch)
2015-01-04 20:52 UTC, Larry Rosenman
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Larry Rosenman freebsd_committer freebsd_triage 2015-01-03 00:57:51 UTC
Created attachment 151230 [details]
patch to remove broken for arm

update the port to unbreak on arm for 10 & 11
Comment 1 Larry Rosenman freebsd_committer freebsd_triage 2015-01-03 01:00:18 UTC
Created attachment 151231 [details]
poudriere log for 110
Comment 2 Larry Rosenman freebsd_committer freebsd_triage 2015-01-03 01:00:42 UTC
Created attachment 151232 [details]
poudriere log for 10/stable
Comment 3 Sean Bruno freebsd_committer freebsd_triage 2015-01-03 01:59:19 UTC
Comment on attachment 151230 [details]
patch to remove broken for arm

Looks like this is the "pattern" to do this.

.if ${ARCH} == "arm" && ${OSVERSION} < 1000000
BROKEN=  Not supported on ARM platform below release 10.0
.endif
Comment 4 Larry Rosenman freebsd_committer freebsd_triage 2015-01-03 02:04:38 UTC
Created attachment 151233 [details]
added Sean's fix for handling below 10/stable
Comment 5 Larry Rosenman freebsd_committer freebsd_triage 2015-01-03 03:08:07 UTC
Thanks to Ian Lapore <ian@FreeBSD.org> and Baptiste Daroussin <bapt@FreeBSD.org> for the infrastructure work here. 

Ian fixed the compile issue, and Baptists fixed 10/stable builds on 11/current. 

Much appreciated.
Comment 6 Thomas Zander freebsd_committer freebsd_triage 2015-01-03 17:31:21 UTC
Sorry, but I think this is not really a suitable solution. If a fix made it into the base system in a certain revision that allows compilation e.g. on 10/stable, we need a suitable OSVERSION bump for that.
As of now, with the current condition

.if ${ARCH} == "arm" && ${OSVERSION} < 1000000
BROKEN=  Not supported on ARM platform below release 10.0
.endif

it happily tries to build in my 10/stable arm jail (r276179), but of course fails.
Comment 7 Larry Rosenman freebsd_committer freebsd_triage 2015-01-03 17:33:40 UTC
It works at:
p101armv6 10.1-STABLE r276594  arm.armv6 svn+https 2015-01-02 17:33:46 /usr/local/poudriere/jails/p101armv6

bit I don't think(!) there's been a OSVERSION bump since ian@'s commit.
Comment 8 Thomas Zander freebsd_committer freebsd_triage 2015-01-03 17:46:39 UTC
IMHO an OSVERSION bump would be the right thing to do. If a OSVERSION condition in a port says "${OSVERSION} < 1000000", then a 10.0-RELEASE user can rightfully expect this to build on her machine.
Comment 9 Larry Rosenman freebsd_committer freebsd_triage 2015-01-03 17:47:40 UTC
I agree, can ian@ or sbruno@ bump both stable/10 and head OSVERSION?
Comment 10 Larry Rosenman freebsd_committer freebsd_triage 2015-01-03 18:53:38 UTC
looks like I can use 1100052 for head, but still need a stable/10 bump.
Comment 11 Ian Lepore freebsd_committer freebsd_triage 2015-01-03 20:30:52 UTC
Bumped to 1001505 in r276633.
Comment 12 Larry Rosenman freebsd_committer freebsd_triage 2015-01-03 22:08:20 UTC
Created attachment 151307 [details]
put OSVERSION checks in for arm

Please let me know if this has style bugs.   I can't seem to convince poudriere to NOT put TRYBROKEN. :(
Comment 13 Thomas Zander freebsd_committer freebsd_triage 2015-01-04 14:11:11 UTC
@Ian: Thanks for the OSVERSION bump in stable!

No style issues from my side. Happy to take the patch.

Just a low prio FYI: Personally, I would not use the test clauses for -current. It is not a supported release and is even expected to be broken from time to time.
Comment 14 Thomas Zander freebsd_committer freebsd_triage 2015-01-04 14:25:19 UTC
The remaining issue is a different one:

root@p101armv6-default:/usr/ports/sysutils/lsof # make -V ARCH
armv6

The test for ${ARCH} == "arm" will fail on armv6 jails or raspberry pi.
Comment 15 Larry Rosenman freebsd_committer freebsd_triage 2015-01-04 16:26:58 UTC
Created attachment 151328 [details]
make arm and armv6 ARCH checks
Comment 16 Larry Rosenman freebsd_committer freebsd_triage 2015-01-04 17:05:49 UTC
would it be better to use ${MACHINE} == arm?
Comment 17 Larry Rosenman freebsd_committer freebsd_triage 2015-01-04 18:03:20 UTC
looks like ${MACHINE} is NOT defined for the ports, so what I have in the latest patch should do it, unless there are other arm* ARCH's.
Comment 18 Larry Rosenman freebsd_committer freebsd_triage 2015-01-04 18:07:42 UTC
if you would rather not have the -CURRENT checks, feel free to remove them at the commit...
Comment 19 Larry Rosenman freebsd_committer freebsd_triage 2015-01-04 19:15:49 UTC
Created attachment 151338 [details]
add armv6hf to the list.  I hope that's all the arm* archs
Comment 20 Larry Rosenman freebsd_committer freebsd_triage 2015-01-04 20:52:09 UTC
Created attachment 151341 [details]
use a better way to get all arm archs

thanks to Ian@ for the hint
Comment 21 commit-hook freebsd_committer freebsd_triage 2015-01-05 09:30:32 UTC
A commit references this bug:

Author: riggs
Date: Mon Jan  5 09:29:59 UTC 2015
New revision: 376285
URL: https://svnweb.freebsd.org/changeset/ports/376285

Log:
  Mark broken on arm OSVERSIONS before a required change in base

  PR:		196454
  Submitted by:	ler@lerctr.org

Changes:
  head/sysutils/lsof/Makefile
Comment 22 Thomas Zander freebsd_committer freebsd_triage 2015-01-05 09:34:22 UTC
Committed, with corrections in the !empty statement. It does not like the curly braces.