-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
mailutils: 2.2 -> 3.2 #27580
mailutils: 2.2 -> 3.2 #27580
Conversation
++ stdenv.lib.optional doCheck dejagnu; | ||
preCheck = '' | ||
# Add missing files. | ||
cp ${./readmsg-tests}/* readmsg/tests/ |
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.
Where these files added later to upstream?
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.
They have always been in the upstream repository, but they are missing from the released archive! I copied this fix from http://data.gpo.zugaina.org/gentoo/net-mail/mailutils/mailutils-3.2.ebuild
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 could use repository snapshot which contains these files: http://git.savannah.gnu.org/cgit/mailutils.git/snapshot/mailutils-release-3.2.tar.gz
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.
Ok, then please switch to the other url.
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 turned out to be more involved. Bootstrapping the build requires a git checkout (and wget, and rsync), so I used fetchgit and added additional dependencies to run ./bootstrap
.
This fails with sandboxing turned on. I'll have a look if I can fix this right away. @Mic92 the patch didn't apply, I added an |
I tested with sandboxing. A travis job suddenly failed with |
@@ -29,7 +29,8 @@ stdenv.mkDerivation rec { | |||
patches = [ | |||
(fetchpatch { | |||
url = "http://git.gnu.org.ua/cgit/mailutils.git/patch/?id=afbb33cf9ff750e93a9a4c1f51a3b62d584f056e"; | |||
sha256 = "1w72ymxlkqj2y3gqd2r27g79hxw7xa6j790shsg9i5jhhz3vknjx"; | |||
sha256 = "0yzkfx3j1zkkb43fhchjqphw4xznbclj39bjzjggv32gppy6d1db"; |
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.
Sorry I only compared commit hash.
It seems that making git checkout work is too much effort. I'd prefer to return to the first commit in this pull request, but download the patch and missing files from gentoo repository: #27595 |
FYI this builds fine for me locally. (Don't have much more to test than building unfortunately). Thanks for the fix, orivej! |
Superseded by #27595 |
Motivation for this change
Fixes #27475. (Probably leaves #21008 open.)
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)