Skip to content

Get initial FreeBSD support rolling - #3745

Draft
dwsuse wants to merge 1 commit into
linux-nvme:masterfrom
dwsuse:freebsd
Draft

Get initial FreeBSD support rolling#3745
dwsuse wants to merge 1 commit into
linux-nvme:masterfrom
dwsuse:freebsd

Conversation

@dwsuse

@dwsuse dwsuse commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Usually, porting to a new platform, architecture, or compiler uncovers generic problems throughout the codebase. The initial porting attempt to FreeBSD is no exception. We need to fix generic build dependencies and add dummy implementations for FreeBSD. These dummy implementations require further review, as some parts can and should be shared with Linux.

@dwsuse

dwsuse commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author
root@freebsd:~/nvme-cli # meson test -C .build
ninja: Entering directory `/root/nvme-cli/.build'
ninja: no work to do.
 1/41 nvme-cli:shared - array-util                         OK               0.01s
 2/41 nvme-cli:shared - base64                             OK               0.00s
 3/41 nvme-cli:shared - crc32                              OK               0.00s
 4/41 nvme-cli:shared - ini                                OK               0.00s
 5/41 nvme-cli:shared - parse-util                         OK               0.00s
 6/41 nvme-cli:shared - hash-util                          OK               0.00s
 7/41 nvme-cli:shared - string-util                        OK               0.01s
 8/41 nvme-cli:shared - io-util                            OK               0.01s
 9/41 nvme-cli:shared - net-util                           OK               0.00s
10/41 nvme-cli:shared - shr-assert                         OK               0.00s
11/41 nvme-cli:shared - fs-util                            OK               0.01s
12/41 nvme-cli:libnvme - check-public-symbols              OK               0.03s
13/41 nvme-cli:libnvme - cpp-dump                          OK               0.00s
14/41 nvme-cli:libnvme - cpp-misc                          OK               0.00s
15/41 nvme-cli:libnvme - uuid                              OK               0.00s
16/41 nvme-cli:libnvme - tree                              OK               0.00s
17/41 nvme-cli:libnvme - header/endian                     OK               0.00s
18/41 nvme-cli:libnvme - check-public-headers              OK               0.04s
19/41 nvme-cli:libnvme - header/fabrics                    OK               0.01s
20/41 nvme-cli:libnvme - header/ioctl                      OK               0.01s
21/41 nvme-cli:libnvme - header/lib                        OK               0.01s
22/41 nvme-cli:libnvme - header/lib-types                  OK               0.01s
23/41 nvme-cli:libnvme - header/mi                         OK               0.01s
24/41 nvme-cli:libnvme - header/nbft                       OK               0.01s
25/41 nvme-cli:libnvme - header/nvme-cmds                  OK               0.01s
26/41 nvme-cli:libnvme - header/nvme-cmds-base             OK               0.01s
27/41 nvme-cli:libnvme - header/nvme-cmds-fabrics          OK               0.01s
28/41 nvme-cli:libnvme - header/nvme-cmds-mi               OK               0.01s
29/41 nvme-cli:libnvme - header/nvme-cmds-nvm              OK               0.01s
30/41 nvme-cli:libnvme - header/nvme-cmds-zns              OK               0.01s
31/41 nvme-cli:libnvme - header/nvme-types                 OK               0.01s
32/41 nvme-cli:libnvme - header/nvme-types-base            OK               0.01s
33/41 nvme-cli:libnvme - header/nvme-types-fabrics         OK               0.01s
34/41 nvme-cli:libnvme - header/nvme-types-mi              OK               0.01s
35/41 nvme-cli:libnvme - header/nvme-types-nbft            OK               0.01s
36/41 nvme-cli:libnvme - header/nvme-types-nvm             OK               0.01s
37/41 nvme-cli:libnvme - header/nvme-types-zns             OK               0.01s
38/41 nvme-cli:libnvme - header/scan                       OK               0.01s
39/41 nvme-cli:libnvme - header/tree                       OK               0.01s
40/41 nvme-cli:libnvme - header/util                       OK               0.01s
41/41 nvme-cli:nvme-cli - command-metadata-schema          SKIP             0.04s   exit status 77

Ok:                40
Fail:              0
Skipped:           1

Full log written to /root/nvme-cli/.build/meson-logs/testlog.txt

@dwsuse dwsuse changed the title Get initial FreeBSD roling Get initial FreeBSD support rolling Aug 5, 2026
@igaw igaw mentioned this pull request Aug 6, 2026
Add FreeBSD stubs to allow the project to build on a different platform.

Signed-off-by: Daniel Wagner <dwagner@suse.com>
@dwsuse
dwsuse marked this pull request as draft August 6, 2026 08:32
@dwsuse

dwsuse commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

I've merged all cleanup patches. That means the "only" thing for FreeBSD support is to add code to these dummy implementation. I will not do this. Thus I am asking for someone who wants add the missing pieces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant