Bug 215769

Summary: emulators/linux_base-c7: Can't install package with linprocfs mounted
Product: Ports & Packages Reporter: Andrey Cherkashin <andoriyu>
Component: Individual Port(s)Assignee: Tijl Coosemans <tijl>
Status: Closed FIXED    
Severity: Affects Only Me CC: bapt, terry-freebsd, tijl
Priority: --- Flags: bugzilla: maintainer-feedback? (emulation)
Version: Latest   
Hardware: Any   
OS: Any   

Description Andrey Cherkashin 2017-01-04 18:46:43 UTC
I get this error during installation of emulators/linux_base-c7:
   Installing linux_base-c7-7.2.1511_3...                                                                                                                                                                                                                                                                                            
   pkg-static: Fail to set time on /compat/linux/proc: Operation not supported                                                                                                                                                                                                                                                

uname -a: 11.0-STABLE FreeBSD 11.0-STABLE #16 r310041

Running `umount linprocfs` prior installation avoids the problem.
Comment 1 Tijl Coosemans freebsd_committer freebsd_triage 2017-01-04 20:04:24 UTC
Bapt, you fixed a similar error in ports r425303.  That was about the mode.  This is about the timestamp.  Is pkg doing something wrong here?
Comment 2 commit-hook freebsd_committer freebsd_triage 2017-01-14 13:13:50 UTC
A commit references this bug:

Author: tijl
Date: Sat Jan 14 13:13:32 UTC 2017
New revision: 431465
URL: https://svnweb.freebsd.org/changeset/ports/431465

Log:
  Don't use @dir for directories that may have filesystems mounted.  It may
  not be possible to change their mode and timestamp like @dir tries to do.

  PR:		215769
  MFH:		2017Q1

Changes:
  head/emulators/linux_base-c6/Makefile
  head/emulators/linux_base-c6/pkg-plist.i386
  head/emulators/linux_base-c6/pkg-plist.x86_64
  head/emulators/linux_base-c7/Makefile
  head/emulators/linux_base-c7/pkg-plist.i386
  head/emulators/linux_base-c7/pkg-plist.x86_64
Comment 3 commit-hook freebsd_committer freebsd_triage 2017-01-15 10:40:19 UTC
A commit references this bug:

Author: tijl
Date: Sun Jan 15 10:39:55 UTC 2017
New revision: 431543
URL: https://svnweb.freebsd.org/changeset/ports/431543

Log:
  MFH: r431465

  Don't use @dir for directories that may have filesystems mounted.  It may
  not be possible to change their mode and timestamp like @dir tries to do.

  PR:		215769
  Approved by:	ports-secteam (junovitch)

Changes:
_U  branches/2017Q1/
  branches/2017Q1/emulators/linux_base-c6/Makefile
  branches/2017Q1/emulators/linux_base-c6/pkg-plist.i386
  branches/2017Q1/emulators/linux_base-c6/pkg-plist.x86_64
  branches/2017Q1/emulators/linux_base-c7/Makefile
  branches/2017Q1/emulators/linux_base-c7/pkg-plist.i386
  branches/2017Q1/emulators/linux_base-c7/pkg-plist.x86_64