Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about libnfs api v2 change #2165

Open
chenrui333 opened this issue Dec 13, 2024 · 6 comments
Open

about libnfs api v2 change #2165

chenrui333 opened this issue Dec 13, 2024 · 6 comments

Comments

@chenrui333
Copy link

👋 I saw there is libnfs v6 API compatibility change, but did not see it is part of the recent release, any reason why? Thanks!

relates to Homebrew/homebrew-core#200785

@heitbaum
Copy link
Contributor

heitbaum commented Dec 13, 2024

I tested an update to Kodi last night.

and was looking at this this evening - as mpd is a LE addon.

[2/5] Compiling C++ object src/lib/nfs/libnfs.a.p/Connection.cxx.o
FAILED: src/lib/nfs/libnfs.a.p/Connection.cxx.o 
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-13.0-devel/toolchain/bin/x86_64-libreelec-linux-gnu-g++ -Isrc/lib/nfs/libnfs.a.p -Isrc/lib/nfs -I../src/lib/nfs -Isrc -I../src -I. -I.. -I/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-13.0-devel/toolchain/x86_64-libreelec-linux-gnu/sysroot/usr/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c++17 -ffast-math -ftree-vectorize -Wcast-qual -Wdouble-promotion -Wmissing-declarations -Wshadow -Wunused -Wvla -Wwrite-strings -Wno-stringop-overflow -fno-threadsafe-statics -fmerge-all-constants -Wcomma-subscript -Wextra-semi -Wmismatched-tags -Woverloaded-virtual -Wsign-promo -Wvolatile -Wvirtual-inheritance -Wno-non-virtual-dtor -Wsuggest-override -fvisibility=hidden -ffunction-sections -fdata-sections -D_GNU_SOURCE -march=x86-64-v3 -Wall -pipe -O2 -fomit-frame-pointer -DNDEBUG -fPIC -MD -MQ src/lib/nfs/libnfs.a.p/Connection.cxx.o -MF src/lib/nfs/libnfs.a.p/Connection.cxx.o.d -o src/lib/nfs/libnfs.a.p/Connection.cxx.o -c ../src/lib/nfs/Connection.cxx
../src/lib/nfs/Connection.cxx: In member function 'void NfsConnection::CancellableCallback::Read(nfs_context*, nfsfh*, uint64_t, size_t)':
../src/lib/nfs/Connection.cxx:110:47: error: invalid conversion from 'uint64_t' {aka 'long unsigned int'} to 'void*' [-fpermissive]
  110 |         int result = nfs_pread_async(ctx, fh, offset, size, Callback, this);
      |                                               ^~~~~~
      |                                               |
      |                                               uint64_t {aka long unsigned int}
../src/lib/nfs/Connection.cxx:110:37: error: cannot resolve overloaded function 'Callback' based on conversion to type 'uint64_t' {aka 'long unsigned int'}
  110 |         int result = nfs_pread_async(ctx, fh, offset, size, Callback, this);
      |                      ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.

@heitbaum
Copy link
Contributor

I did just check and the patch doesn’t apply cleanly to 0.23.16

@MaxKellermann
Copy link
Member

A lot has changed in the NFS/storage code, and a backport will probably not happen. I hope I can finish 0.24 very soon so we don't waste more time on 0.23.

@christian-heusel
Copy link

This issue just came up again as we're now doing the libnfs6 rebuild in Arch Linux: https://archlinux.org/todo/libnfs6-support/

I tried backporting the changes but it turned out to be a major headache, so a (somewhat timely) 0.24 release would really be appreciated! 🤗

@MaxKellermann
Copy link
Member

Sorry, I tried really hard to take my vacation in December to finish it, but other things crossed my plans. Yet again. Long ago, I had a plan to release MPD 1.0 for its 20th anniversary, but that date has passed 2 years ago already :-(

@christian-heusel
Copy link

Sometimes things don't got as planned, there is no shame in that 🤗
If the release takes a little longer than initially expected maybe commit a backported version to the 0.23.x branch is an option then? 😄

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

No branches or pull requests

4 participants