Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-39285

srpm dtrace on Linux fails to look for sys/sdt.h header

    XMLWordPrintable

Details

    • Notable changes
    • Hide
      Source RPMs generated now correctly generate build dependencies for dependencies that are include headers without libraries only. An explicit check, and there build dependency addition of the dtrace headers is performed if ENABLE_DTRACE is a build configuration option.
      Show
      Source RPMs generated now correctly generate build dependencies for dependencies that are include headers without libraries only. An explicit check, and there build dependency addition of the dtrace headers is performed if ENABLE_DTRACE is a build configuration option.

    Description

      On linux, the dtrace executable creates source code that depends on the sys/sdt.h

      https://buildbot.mariadb.org/#/builders/888/builds/7653/steps/29/logs/stdio

      In file included from /home/buildbot/rpmbuild/BUILD/MariaDB-10.11.17/mariadb-10.11.17/include/probes_mysql.h:22,
                       from /home/buildbot/rpmbuild/BUILD/MariaDB-10.11.17/mariadb-10.11.17/mysys/mf_keycache.c:39:
      /home/buildbot/rpmbuild/BUILD/MariaDB-10.11.17/cpack_rpm_build_dir/include/probes_mysql_dtrace.h:10:10: fatal error: sys/sdt.h: No such file or directory
         10 | #include <sys/sdt.h>
            |          ^~~~~~~~~~~
      compilation terminated.
      make[2]: *** [mysys/CMakeFiles/mysys.dir/build.make:286: mysys/CMakeFiles/mysys.dir/mf_keycache.c.o] Error 1
      
      

      This include package is provide by

      $ rpm -qf /usr/include/sys/sdt.h
      systemtap-sdt-devel-5.4-1.fc43.x86_64
      

      Attachments

        Issue Links

          Activity

            People

              danblack Daniel Black
              danblack Daniel Black
              Daniel Black Daniel Black
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 2.25h
                  2.25h

                  Git Integration

                    Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.