Bug 204848 - ports-mgmt/poudriere: Fails with (rm: illegal option -- x) during cleanup
Summary: ports-mgmt/poudriere: Fails with (rm: illegal option -- x) during cleanup
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Bryan Drewery
URL:
Keywords: needs-patch, needs-qa
Depends on:
Blocks:
 
Reported: 2015-11-27 14:43 UTC by Yani Karydis
Modified: 2015-11-30 17:31 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yani Karydis 2015-11-27 14:43:49 UTC
Hello,

Poudriere fails with the error below during cleanup on FreeBSD 9.3. It's due to the "-x" parameter passed to "rm" which was introduced in FreeBSD 10. Is it possible to remove this parameter on FreeBSD 9.0?

[00:00:00] ====>> Creating the reference jail...rm: illegal option -- x
usage: rm [-f | -i] [-dIPRrvW] file ...
       unlink file
[00:00:08] ====>> Cleaning up
[00:00:08] ====>> Umounting file systems
rm: illegal option -- x
usage: rm [-f | -i] [-dIPRrvW] file ...
       unlink file
rm: illegal option -- x
usage: rm [-f | -i] [-dIPRrvW] file ...
       unlink file
Comment 1 Bryan Drewery freebsd_committer freebsd_triage 2015-11-27 20:30:06 UTC
Woops. I'll get a fix out today for it.
Comment 2 Bryan Drewery freebsd_committer freebsd_triage 2015-11-30 17:27:36 UTC
Fixed:

Author: bdrewery
Date: Mon Nov 30 17:26:50 2015
New Revision: 402690
URL: https://svnweb.freebsd.org/changeset/ports/402690

Log:
  Revert usage of -x for rm(1) for now due to 9.x not having it.

Added:
  head/ports-mgmt/poudriere-devel/files/
  head/ports-mgmt/poudriere-devel/files/patch-src_share_poudriere_common.sh   (contents, props changed)
  head/ports-mgmt/poudriere-devel/files/patch-src_share_poudriere_include_fs.sh   (contents, props changed)
  head/ports-mgmt/poudriere/files/
  head/ports-mgmt/poudriere/files/patch-src_share_poudriere_common.sh   (contents, props changed)
  head/ports-mgmt/poudriere/files/patch-src_share_poudriere_include_fs.sh   (contents, props changed)
Modified:
  head/ports-mgmt/poudriere-devel/Makefile
  head/ports-mgmt/poudriere/Makefile
Comment 3 Yani Karydis 2015-11-30 17:31:29 UTC
That's great, many thanks.