-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
nemu: init at 2.6.0 #82004
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
nemu: init at 2.6.0 #82004
Conversation
++ (lib.optional withDbus "-DNM_WITH_DBUS=ON") | ||
; | ||
|
||
installPhase = '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upstream doesn't know how to write CMakeLists.txt
. The following warning messages in configurePhase
indicate this:
CMake Warning:
Manually-specified variables were not used by the project:
BUILD_TESTING
CMAKE_CXX_COMPILER
CMAKE_EXPORT_NO_PACKAGE_REGISTRY
CMAKE_INSTALL_BINDIR
CMAKE_INSTALL_DOCDIR
CMAKE_INSTALL_INCLUDEDIR
CMAKE_INSTALL_INFODIR
CMAKE_INSTALL_LIBDIR
CMAKE_INSTALL_LIBEXECDIR
CMAKE_INSTALL_LOCALEDIR
CMAKE_INSTALL_MANDIR
CMAKE_INSTALL_OLDINCLUDEDIR
CMAKE_INSTALL_SBINDIR
And it's notable when reading this:
https://github.com/nemuTUI/nemu/blob/1633a9ecb2b9b036a01a5dbeddb21787680064ec/CMakeLists.txt#L24-L36
I say - report this upstream and once fixed, use a fetchpatch
remove the installPhase
override.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In particular, most of these are caused not using GNUInstallDirs cmake module.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We updated our CMakeLists.txt
nemuTUI/nemu@a3f179a
Can you guys check if it's ok in current state, if so, we can make a new release for your package
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Evaluation has failed: https://gist.github.com/f2bfb5498488aa5d2895bcbcace14e8d because of libudev
argument not suppliled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@matthiasbeyer please fix the inputs.
Ah! Some time ago tried packaging nEMU but not finished it... |
Hello, I'm a bot and I thank you in the name of the community for your contributions. Nixpkgs is a busy repository, and unfortunately sometimes PRs get left behind for too long. Nevertheless, we'd like to help committers reach the PRs that are still important. This PR has had no activity for 180 days, and so I marked it as stale, but you can rest assured it will never be closed by a non-human. If this is still important to you and you'd like to remove the stale label, we ask that you leave a comment. Your comment can be as simple as "still important to me". But there's a bit more you can do: If you received an approval by an unprivileged maintainer and you are just waiting for a merge, you can @ mention someone with merge permissions and ask them to help. You might be able to find someone relevant by using Git blame on the relevant files, or via GitHub's web interface. You can see if someone's a member of the nixpkgs-committers team, by hovering with the mouse over their username on the web interface, or by searching them directly on the list. If your PR wasn't reviewed at all, it might help to find someone who's perhaps a user of the package or module you are changing, or alternatively, ask once more for a review by the maintainer of the package/module this is about. If you don't know any, you can use Git blame on the relevant files, or GitHub's web interface to find someone who touched the relevant files in the past. If your PR has had reviews and nevertheless got stale, make sure you've responded to all of the reviewer's requests / questions. Usually when PR authors show responsibility and dedication, reviewers (privileged or not) show dedication as well. If you've pushed a change, it's possible the reviewer wasn't notified about your push via email, so you can always officially request them for a review, or just @ mention them and say you've addressed their comments. Lastly, you can always ask for help at our Discourse Forum, or more specifically, at this thread or at #nixos' IRC channel. |
@ofborg eval |
@GrahamcOfBorg eval |
substituteInPlace src/nm_cfg_file.c --replace \ | ||
' nm_str_format(&qemu_bin, "%s/bin/qemu-system-%s", | ||
NM_STRING(NM_USR_PREFIX), token);' \ | ||
' nm_str_format(&qemu_bin, "/run/wrappers/bin/qemu-system-%s", token);' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer a patch for this to prevent bit rot.
substituteInPlace src/nm_machine.c --replace \ | ||
' nm_str_format(&buf, "%s/bin/qemu-system-%s", | ||
NM_STRING(NM_USR_PREFIX), arch);' \ | ||
' nm_str_format(&buf, "/run/wrappers/bin/qemu-system-%s", arch);' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer a patch for this to prevent bit rot.
platforms = with stdenv.lib.platforms; linux; | ||
}; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One final new line to much.
80fc7cf
to
2429ad0
Compare
707ff95
to
ef71c85
Compare
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Just leave me alone with this bikeshedding for gods sake. Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
, pkg-config | ||
, gettext | ||
, libpthreadstubs | ||
, libudev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
libudev
is an alias to udev
, switch to using udev
so ofborg eval won't fail:
https://gist.github.com/GrahamcOfBorg/0f0eac15e861b506912834b1000a8133
|
||
preConfigure = '' | ||
patchShebangs . | ||
substituteInPlace CMakeLists.txt --replace 'USR_PREFIX "/usr"' "USR_PREFIX \"$(out)\"" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see upstream has improved a bit their usage of CMake, but this is still present, it'd be nice to try to contribute upstream a more non-FHS friendly change for their CMakeLists.txt
.
I marked this as stale due to inactivity. → More info |
@matthiasbeyer are you still interested in this? Upstream has released version 3.0.0 and it seems that now they support non-FHS file systems with some cmake flags so your expression can look much cleaner. |
Can someone help me with the install step here?
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)