-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
handbrake: refactor (fx, clenup, description, cosmetics, add maintainer) #39117
Conversation
|
||
buildInputs = [ | ||
fribidi fontconfig freetype jansson zlib | ||
libass libiconv libsamplerate libxml2 bzip2 | ||
libogg libopus libtheora libvorbis libdvdcss a52dec libmkv | ||
lame ffmpeg libdvdread libdvdnav libbluray mp4v2 mpeg2dec x264 x265 libvpx | ||
lame libdvdread libdvdnav libbluray mp4v2 mpeg2dec x264 x265 libvpx |
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 missed to contribute rm of this in the previous commit, that made switch from ffmpeg
to libav_12
.
@@ -97,13 +93,17 @@ stdenv.mkDerivation rec { | |||
|
|||
meta = with stdenv.lib; { | |||
homepage = http://handbrake.fr/; | |||
description = "A tool for ripping DVDs into video files"; | |||
description = "A tool for converting video files and ripping DVDs"; |
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.
It is really not only DVD ripping software. It is a way much more.
''; | ||
license = licenses.gpl2; | ||
maintainers = with maintainers; [ wmertens ]; | ||
maintainers = with maintainers; [ Anton-Latukha wmertens ]; |
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.
Added myself as a maintainer of package, by suggestion from peterhoeg in #38811 (comment).
43bea80
to
04ea8f8
Compare
04ea8f8
to
9b4b21c
Compare
@@ -37,15 +37,13 @@ stdenv.mkDerivation rec { | |||
|
|||
nativeBuildInputs = [ | |||
cmake python2 pkgconfig yasm autoconf automake libtool m4 |
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.
With cmake, it is a good idea to also use ninja
.
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.
Are you sure autoconf and automake are still needed with cmake/ninja?
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 have old mild knowledge of C++ builds. I used to C++ years ago, when Ninja was not around.
So:
If I add ninja
to nativeBuildInputs
system tries to use it and fails:
Build is configured!
You may now cd into ./build and run make (/nix/store/h9w5yn61phv86iirl273bpw5ksq98fzz-gnumake-4.2.1/bin/make).
building
no build.ninja, doing nothing
glibPreInstallPhase
installing
install flags: install
ninja: error: loading 'build.ninja': No such file or directory
builder for '/nix/store/38fygqhfawrhni6f166dl5ds8akhdgyb-handbrake-1.0.7.drv' failed with exit code 1
If I, while adding ninja
, also remove autoconf
and automake
- it just falls flat the same way.
Obviously there is more steps needed here. Or HandBrake dudes do it the old way.
So from the hip, it did not went.
From first look at different NixPkgs sources - there is all that Ninja needs, to switch to it.
In a time I can try to understand more of what are you talking about or take your guidance.
It can be next PRs. Or in this one if you think so.
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 can't find any CMakeLists.txt file in the source distribution so you might be able to rip out cmake.
As I recall, upstream also recommends fetching a tarball from their site instead of pulling from github so you'll probably want to change |
It is for the later PRs. Everything gradually. Ok, long story.
In And now, with Upstream wants that we used their-own bundle of libraries they distribute with sources, Windows-like. And that requirement is contrary to how we do things here.
I created a new bugreport there on HB, where I talk about this code-library issue in C++. HandBrake team does everything in their-own way, and most distributions AFAIK got softly banned from upstream support. It is a pretty thin margin to collaborate with them. |
Hey, this can be merged. This is a cosmetics, non-tech changes. Let's merge and move further. After merge I can continue work on technical changes. |
Ok, I was the one that originally tried to split everything up because they had a bunch of useful patches but no upstream to send it to. If they want to do their own bundle so be it, it will just make the build slower and bigger, but ok. In the meantime, this lgtm 👍 |
Motivation for this change
ffmpeg
was one of defaultbuildInputs
version.txt
patch no longer needed in1.0.7
. Moreover in the version1.1.0
this patching should be removed.Things done
nix-shell -p nox --run "nox-review wip"
./result/bin/
)