[Bug 209971] ports-mgmt/pkg fails to compile on FreeBSD 8.4 i386/amd64

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jun 2 17:23:02 UTC 2016


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

--- Comment #2 from freebsd at bengrimm.net ---
As much as I (logically) support that sentiment, the ports tree IS still
supported for FreeBSD 8, so ports should be made available to FreeBSD 8.

For now, making this change in libpkg/pkg_add.c fixed it for FreeBSD 8:

# ifdef _DARWIN_C_SOURCE
        tspec[0].tv_sec = aest->st_atimespec.tv_sec;
        tspec[0].tv_nsec = aest->st_atimespec.tv_nsec;
        tspec[1].tv_sec = aest->st_mtimespec.tv_sec;
        tspec[1].tv_nsec = aest->st_mtimespec.tv_nsec;
# else
        /* Portable unix version */
        tspec[0].tv_sec = aest->st_atime;
        tspec[0].tv_nsec = 0;
        tspec[1].tv_sec = aest->st_mtime;
        tspec[1].tv_nsec = 0;
# endif
#else
>>>        tspec[0].tv_sec = aest->st_atimespec.tv_sec;
>>>        tspec[0].tv_nsec = aest->st_atimespec.tv_nsec;
>>>        tspec[1].tv_sec = aest->st_mtimespec.tv_sec;
>>>        tspec[1].tv_nsec = aest->st_mtimespec.tv_nsec;
#endif

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


More information about the freebsd-pkg mailing list