Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Oct 2018 15:54:34 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 232292] pkgbase seems to have problems with certain hardlinks
Message-ID:  <bug-232292-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232292

            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@FreeBSD.org
          Reporter: bz@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} !=3D "no"
     27 CONFGROUPS+=3D    FTP
     28 FTP+=3D   ftpd
     29 FTPPACKAGE+=3D    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=3Dfile uname=3Droot gname=3Dwheel mode=3D0644 size=3D=
528
tags=3Dpackage=3Druntime,config
./etc/pam.d/ftp type=3Dfile uname=3Droot gname=3Dwheel mode=3D0555 size=3D5=
28
tags=3Dpackage=3Druntime

% 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 prop=
erly
when the package will be installed?

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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-232292-227>