[Bug 232292] pkgbase seems to have problems with certain hardlinks

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Oct 15 15:54:36 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232292

            Bug ID: 232292
           Summary: pkgbase seems to have problems with certain hardlinks
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: bz at FreeBSD.org

In a few places in the world build infrastructure we have a target, such as:

lib/libpam/pam.d/Makefile:

     26 .if ${MK_FTP} != "no"
     27 CONFGROUPS+=    FTP
     28 FTP+=   ftpd
     29 FTPPACKAGE+=    ftp
     30
     31 afterinstallconfig:
     32         ${INSTALL_LINK} ${TAG_ARGS} ${DESTDIR}${CONFDIR}/ftpd
${DESTDIR}${CONFDIR}/ftp
     33 .endif


The problem seems that this hardlink is a not getting a ",config" in the
TAG_ARGS automatically, and later on seems to create problems when creating
packages:

pkg: Plist error, @config /etc/pam.d/ftpd: not a regular file
pkg: Plist error, @config /root/.cshrc: not a regular file
pkg: Plist error, @config /root/.profile: not a regular file

% grep pam.d METALOG | grep ftp
./etc/pam.d/ftpd type=file uname=root gname=wheel mode=0644 size=528
tags=package=runtime,config
./etc/pam.d/ftp type=file uname=root gname=wheel mode=0555 size=528
tags=package=runtime

% grep pam.d *.plist | grep ftp
runtime.plist:@(root,wheel,0555,) /etc/pam.d/ftp
runtime.plist:@config(root,wheel,0644,) /etc/pam.d/ftpd

I am not yet sure how this will translate into the hardlink re-created properly
when the package will be installed?

PS: MLINKS seem to be fine for some reason probably because they are handled in
the infrastructure, but not manually in the application/library specific
Makefiles manually?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list