Bug 176842

Summary: sysutils/moreutils: can't apply patch (make patch error)
Product: Ports & Packages Reporter: Lukasz Wasikowski <lukasz>
Component: Individual Port(s)Assignee: Po-Chuan Hsieh <sunpoet>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Lukasz Wasikowski 2013-03-11 09:20:00 UTC
moreutils cannot be installed if MANPAGES knob is turned off. With MANPAGES set to on port can be installed.

How-To-Repeat: [/usr/ports/sysutils/moreutils]
# make showconfig
===> The following configuration options are available for moreutils-0.47:
     MANPAGES=off: Build and/or install manual pages
===> Use 'make config' to modify these settings

[/usr/ports/sysutils/moreutils]
# make patch
===>  Found saved configuration for moreutils-0.47
===>   moreutils-0.47 depends on file: /usr/local/sbin/pkg - found
===>  Extracting for moreutils-0.47
=> SHA256 Checksum OK for moreutils_0.47.tar.gz.
===>   moreutils-0.47 depends on file: /usr/local/bin/perl5.14.2 - found
===>  Patching for moreutils-0.47
===>   moreutils-0.47 depends on file: /usr/local/bin/perl5.14.2 - found
===>  Applying FreeBSD patches for moreutils-0.47
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpvx] source_file target_file
       cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpvx] source_file ... target_directory
*** [post-patch] Error code 64

Stop in /usr/ports/sysutils/moreutils.
*** [patch] Error code 1

Stop in /usr/ports/sysutils/moreutils.
Comment 1 Lukasz Wasikowski 2013-03-11 09:21:26 UTC
I forgot to put it in ports-bugs, please move it there. TIA.

-- 
best regards,
Lukasz Wasikowski
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2013-03-11 10:39:13 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-ports-bugs

ports PR.
Comment 3 Edwin Groothuis freebsd_committer freebsd_triage 2013-03-11 10:39:32 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sunpoet

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-03-24 06:17:01 UTC
Author: sunpoet
Date: Sun Mar 24 06:16:50 2013
New Revision: 315104
URL: http://svnweb.freebsd.org/changeset/ports/315104

Log:
  - Fix build with MANPAGES off
  
  PR:		ports/176842
  Submitted by:	Lukasz Wasikowski <lukasz@wasikowski.net>

Modified:
  head/sysutils/moreutils/Makefile

Modified: head/sysutils/moreutils/Makefile
==============================================================================
--- head/sysutils/moreutils/Makefile	Sun Mar 24 06:14:36 2013	(r315103)
+++ head/sysutils/moreutils/Makefile	Sun Mar 24 06:16:50 2013	(r315104)
@@ -56,7 +56,9 @@ MAN1=		chronic.1 \
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|share/xml/docbook/schema/dtd/|local/share/xml/docbook/|' ${WRKSRC}/*.docbook
+.if ${PORT_OPTIONS:MMANPAGES}
 	@cd ${FILESDIR}/ && ${CP} ${CANNED_MAN1} ${WRKSRC}/
+.endif
 
 post-install:
 .if ${PORT_OPTIONS:MMANPAGES}
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 5 Po-Chuan Hsieh freebsd_committer freebsd_triage 2013-03-24 06:18:13 UTC
State Changed
From-To: open->closed

Fixed. Thanks!