Bug 114878 - misc/compat4x: Fails to remove schg flag in pre-clean
Summary: misc/compat4x: Fails to remove schg flag in pre-clean
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: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-25 05:30 UTC by Scot Hetzel
Modified: 2007-07-26 18:20 UTC (History)
0 users

See Also:


Attachments
file.diff (490 bytes, patch)
2007-07-25 05:30 UTC, Scot Hetzel
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Scot Hetzel 2007-07-25 05:30:01 UTC
After 'make clean' in the port's directory deletion of the workdir fails because work/compat4x/var/empty has schg flag set.

PR 112899 was submitted in an attempt to solve this problem, but it failed due to WRKSRC is set /usr/ports/misc/compat4x/work/usr/lib/compat, and it is performing the chflags on the wrong directory.

Fix: Apply the attached patch.

Patch attached with submission follows:
How-To-Repeat: hp010# cd /usr/ports/missc/compat4x
hp010# make build
:
hp010# make clean
===>  Cleaning for compat4x-i386-5.3_9
rm: /usr/ports/misc/compat4x/work/var/empty: Operation not permitted
rm: /usr/ports/misc/compat4x/work/var: Directory not empty
rm: /usr/ports/misc/compat4x/work: Directory not empty
*** Error code 1

Stop in /usr/ports/misc/compat4x.
*** Error code 1

Stop in /usr/ports/misc/compat4x.
Comment 1 Rong-En Fan freebsd_committer freebsd_triage 2007-07-26 18:19:30 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 2 dfilter service freebsd_committer freebsd_triage 2007-07-26 18:19:30 UTC
rafan       2007-07-26 17:19:24 UTC

  FreeBSD ports repository

  Modified files:
    misc/compat4x        Makefile 
  Log:
  - Correctly fix schg flag and make clean problem. It is ${WRKDIR}/var/empty
    that has the flag set and that directory is not under ${WRKSRC}
  
  PR:             ports/114878
  Submitted by:   Scot Hetzel <swhetzel at gmail.com
  
  Revision  Changes    Path
  1.35      +1 -1      ports/misc/compat4x/Makefile
_______________________________________________
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"