Attached are patches to make mariadb-10.1 to build on GNU/Hurd. Unfortunately
there are still some warnings to fix and the testsuite fails, and has been
removed with debian/rules patch. Attached is also an updated symbols file, the
link given in debian/ points to a file having three symbols not in the Hurd
version.
The patched package has also been successfully built on GNU/Linux amd64 with
pbuilder.cmake.patch defines the system name GNU, tries to disable dtrace (which is Linux
only from systemtap-sdt-dev) and add a check for HAVE_SYS_POLL_H, see
path_max.patch. Unfortunately disabling dtrace did not work, I had to uninstall
systemtap-sdt-dev, I wonder why?
path_max.patch defines GNU_SOURCE if not already defined, avoids a FreeBSD-
specific definition of O_PATH, and fixes PATH_MAX issues in files
/mysys/mysys_priv.h, sql/wsrep_binlog.cc and extra/mariabackup/backup_copy.cc.
The POLL stuff in storage/mroonga/vendor/groonga/lib/grn_com.h and
storage/mroonga/vendor/groonga/lib/com.c fixes the USE_POLL case. That case is
not properly handled in the upstream code. GNU/Hurd could of course use
USE_SELECT, but since the OS is detected as using POLL, that choice is fixed
too.
The current debian version is at 10.1.23-6. Since there is a freeze going on and since the GNU patches are also affecting other OSes it would be nice if the patches are accepted upstream. If so, they are easily motivation to be accepted in Debian, including the imminent Stretch release.
{"report":{"fcp":1120.9000000357628,"ttfb":553.3000000119209,"pageVisibility":"visible","entityId":61308,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"2a42f606-3c28-4664-a4d8-17dd718a53b1","navigationType":0,"readyForUser":1191.4000000357628,"redirectCount":0,"resourceLoadedEnd":1133.300000011921,"resourceLoadedStart":558.8000000119209,"resourceTiming":[{"duration":7.300000011920929,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":558.8000000119209,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":558.8000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":566.1000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":7.300000011920929,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":559,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":559,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":566.3000000119209,"responseStart":0,"secureConnectionStart":0},{"duration":63.89999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":559.2000000476837,"connectEnd":559.2000000476837,"connectStart":559.2000000476837,"domainLookupEnd":559.2000000476837,"domainLookupStart":559.2000000476837,"fetchStart":559.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":559.2000000476837,"responseEnd":623.1000000238419,"responseStart":623.1000000238419,"secureConnectionStart":559.2000000476837},{"duration":126.09999996423721,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":559.4000000357628,"connectEnd":559.4000000357628,"connectStart":559.4000000357628,"domainLookupEnd":559.4000000357628,"domainLookupStart":559.4000000357628,"fetchStart":559.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":559.4000000357628,"responseEnd":685.5,"responseStart":685.5,"secureConnectionStart":559.4000000357628},{"duration":129.60000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":559.6000000238419,"connectEnd":559.6000000238419,"connectStart":559.6000000238419,"domainLookupEnd":559.6000000238419,"domainLookupStart":559.6000000238419,"fetchStart":559.6000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":559.6000000238419,"responseEnd":689.2000000476837,"responseStart":689.2000000476837,"secureConnectionStart":559.6000000238419},{"duration":129.80000001192093,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":559.8000000119209,"connectEnd":559.8000000119209,"connectStart":559.8000000119209,"domainLookupEnd":559.8000000119209,"domainLookupStart":559.8000000119209,"fetchStart":559.8000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":559.8000000119209,"responseEnd":689.6000000238419,"responseStart":689.6000000238419,"secureConnectionStart":559.8000000119209},{"duration":130,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":560,"connectEnd":560,"connectStart":560,"domainLookupEnd":560,"domainLookupStart":560,"fetchStart":560,"redirectEnd":0,"redirectStart":0,"requestStart":560,"responseEnd":690,"responseStart":690,"secureConnectionStart":560},{"duration":202.60000002384186,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":560.1000000238419,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":560.1000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":762.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":130.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":560.3000000119209,"connectEnd":560.3000000119209,"connectStart":560.3000000119209,"domainLookupEnd":560.3000000119209,"domainLookupStart":560.3000000119209,"fetchStart":560.3000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":560.3000000119209,"responseEnd":690.4000000357628,"responseStart":690.4000000357628,"secureConnectionStart":560.3000000119209},{"duration":202.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":560.4000000357628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":560.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":762.9000000357628,"responseStart":0,"secureConnectionStart":0},{"duration":130.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":560.6000000238419,"connectEnd":560.6000000238419,"connectStart":560.6000000238419,"domainLookupEnd":560.6000000238419,"domainLookupStart":560.6000000238419,"fetchStart":560.6000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":560.6000000238419,"responseEnd":691,"responseStart":691,"secureConnectionStart":560.6000000238419},{"duration":502.0999999642372,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":561.4000000357628,"connectEnd":561.4000000357628,"connectStart":561.4000000357628,"domainLookupEnd":561.4000000357628,"domainLookupStart":561.4000000357628,"fetchStart":561.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":561.4000000357628,"responseEnd":1063.5,"responseStart":1063.5,"secureConnectionStart":561.4000000357628},{"duration":498.4000000357628,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":566,"connectEnd":566,"connectStart":566,"domainLookupEnd":566,"domainLookupStart":566,"fetchStart":566,"redirectEnd":0,"redirectStart":0,"requestStart":566,"responseEnd":1064.4000000357628,"responseStart":1064.4000000357628,"secureConnectionStart":566},{"duration":90.10000002384186,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":774.3000000119209,"connectEnd":774.3000000119209,"connectStart":774.3000000119209,"domainLookupEnd":774.3000000119209,"domainLookupStart":774.3000000119209,"fetchStart":774.3000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":774.3000000119209,"responseEnd":864.4000000357628,"responseStart":864.4000000357628,"secureConnectionStart":774.3000000119209},{"duration":90.89999997615814,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bu7/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":1042.4000000357628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1042.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1133.300000011921,"responseStart":0,"secureConnectionStart":0},{"duration":240.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":1043.2000000476837,"connectEnd":1043.2000000476837,"connectStart":1043.2000000476837,"domainLookupEnd":1043.2000000476837,"domainLookupStart":1043.2000000476837,"fetchStart":1043.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":1043.2000000476837,"responseEnd":1284,"responseStart":1284,"secureConnectionStart":1043.2000000476837},{"duration":244.60000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/f51ef5507eea4c158f257c66c93b2a3f-CDN/lu2bu7/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":1043.5,"connectEnd":1043.5,"connectStart":1043.5,"domainLookupEnd":1043.5,"domainLookupStart":1043.5,"fetchStart":1043.5,"redirectEnd":0,"redirectStart":0,"requestStart":1043.5,"responseEnd":1288.1000000238419,"responseStart":1288.1000000238419,"secureConnectionStart":1043.5}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":59,"responseStart":553,"responseEnd":561,"domLoading":557,"domInteractive":1260,"domContentLoadedEventStart":1261,"domContentLoadedEventEnd":1302,"domComplete":1652,"loadEventStart":1652,"loadEventEnd":1653,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1227.300000011921},{"name":"bigPipe.sidebar-id.end","time":1228},{"name":"bigPipe.activity-panel-pipe-id.start","time":1228.1000000238419},{"name":"bigPipe.activity-panel-pipe-id.end","time":1230.5},{"name":"activityTabFullyLoaded","time":1318.5}],"measures":[],"correlationId":"5e793c545baa0d","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":434,"dbReadsTimeInMs":14,"dbConnsTimeInMs":24,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Sorry about O_EXEC: It is defined on GNU/Hurd but defining O_PATH would make my_open_parent_dir_nosymlinks() used in macro NOSYMLINK_FUNCTION_BODY(AT,NOAT) instead of the definition using realpath().
I'll be back on the _GNU_SOURCE later. Have to recompile without _GNU_SOURCE and issue gcc -E ... to see where things go wrong.