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

sdcv: 0.4.2 -> 0.5.2 #31493

Merged
merged 1 commit into from Nov 11, 2017
Merged

sdcv: 0.4.2 -> 0.5.2 #31493

merged 1 commit into from Nov 11, 2017

Conversation

pallavagarwal07
Copy link
Contributor

@pallavagarwal07 pallavagarwal07 commented Nov 10, 2017

Motivation for this change

The build was no longer working on latest fork of nixos-unstable.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

Copy link
Contributor

@c0bw3b c0bw3b left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your help refreshing an old package. :)

@@ -1,7 +1,9 @@
{ stdenv, fetchurl, pkgconfig, glib, gettext }:
{ stdenv, fetchurl, pkgconfig, glib, gettext, fetchFromGitHub, cmake,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fetchFromGitHub should replace fetchurl since you are not using the latter anymore


stdenv.mkDerivation rec {
name= "sdcv-0.4.2";
name = "sdcv-${version}";
version = "0.5.2";

meta = {
homepage = http://sdcv.sourceforge.net/;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This page now redirects to https://dushistov.github.io/sdcv/ so we should set meta.homepage to this new home.

preBuild = ''
sed -i 's/guint32 page_size/size_t page_size/' src/lib/lib.cpp
preInstall = ''
touch locale
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious: why is this necessary?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this:

CMake Error at cmake_install.cmake:60 (file):
  file INSTALL cannot find
  "/tmp/nix-build-sdcv-0.5.2.drv-0/source/build/locale".

#define _UTILS_HPP_

#include <string>
+#include <cstdlib>
Copy link
Member

@lukateras lukateras Nov 10, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see this patch at upstream: https://github.com/Dushistov/sdcv/blob/v0.5.2/src/utils.hpp
It's used on Darwin, and my concern is that dropping this particular patch will break Darwin build. I guess let's wait what Travis CI has to say on that.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Travis passes.

@orivej orivej merged commit 9d0491c into NixOS:master Nov 11, 2017
@pallavagarwal07 pallavagarwal07 deleted the patch-1 branch November 11, 2017 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants