[Bug 238051] graphics/drm-current-kmod ${OSVERSION} gets wrong __FreeBSD_version (does not use param.h from ${SRC_BASE})

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed May 22 15:16:33 UTC 2019


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

            Bug ID: 238051
           Summary: graphics/drm-current-kmod ${OSVERSION} gets wrong
                    __FreeBSD_version (does not use param.h from
                    ${SRC_BASE})
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: jmd at freebsd.org
          Reporter: emaste at freebsd.org
          Assignee: jmd at freebsd.org
             Flags: maintainer-feedback?(jmd at freebsd.org)

I tried building drm-current-kmod with SRC_BASE=/home/emaste/src/freebsd (which
is the kernel I installed and am running); the rest of my userland has not yet
been updated (and so /usr/include/sys/param.h has an older __FreeBSD_version).
The kmod build failed with the "not supported on older CURRENT" error. I
commented out the check:

.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300029
IGNORE=                not supported on older CURRENT (${OSVERSION}), no kernel
support
.endif

built the module, and it works correctly.

% sysctl kern.osreldate
kern.osreldate: 1300029
% grep 'propagated to newvers' /home/emaste/src/freebsd/sys/sys/param.h
/usr/include/sys/param.h 
/home/emaste/src/freebsd/sys/sys/param.h:#define __FreeBSD_version 1300029    
/* Master, propagated to newvers */
/usr/include/sys/param.h:#define __FreeBSD_version 1300003      /* Master,
propagated to newvers */

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


More information about the freebsd-ports-bugs mailing list