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

hadoop doesn't build: can't find file to patch at input line 16 #139690

Closed
bbigras opened this issue Sep 28, 2021 · 6 comments
Closed

hadoop doesn't build: can't find file to patch at input line 16 #139690

bbigras opened this issue Sep 28, 2021 · 6 comments
Labels
0.kind: bug Something is broken

Comments

@bbigras
Copy link
Contributor

bbigras commented Sep 28, 2021

Describe the bug

building '/nix/store/k0bxs8gfgg07qj9njfrimaqp1gp4d4pl-hadoop-2.7.7-bin.drv'...
unpacking sources
unpacking source archive /nix/store/zfpzqp8h6g7smw5m2jqvxhdx56hfb90g-hadoop-2.7.7-src.tar.gz
source root is hadoop-2.7.7-src
setting SOURCE_DATE_EPOCH to timestamp 1530878015 of file hadoop-2.7.7-src/hadoop-yarn-project/CHANGES.txt
patching sources
applying patch /nix/store/9vyjbpcg72zsjvpblnqhlx9igv862d1s-2886.patch
patching file hadoop-common-project/hadoop-common/src/main/native/src/exception.c
can't find file to patch at input line 16
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/CMakeLists.txt
|+++ b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/CMakeLists.txt
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
error: builder for '/nix/store/k0bxs8gfgg07qj9njfrimaqp1gp4d4pl-hadoop-2.7.7-bin.drv' failed with exit code 1;
       last 10 log lines:
       > Perhaps you used the wrong -p or --strip option?
       > The text leading up to this was:
       > --------------------------
       > |--- a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/CMakeLists.txt
       > |+++ b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/CMakeLists.txt
       > --------------------------
       > File to patch:
       > Skip this patch? [y]
       > Skipping patch.
       > 1 out of 1 hunk ignored
       For full logs, run 'nix log /nix/store/k0bxs8gfgg07qj9njfrimaqp1gp4d4pl-hadoop-2.7.7-bin.drv'.
error: 1 dependencies of derivation '/nix/store/86sw1mbw6pb00fvlpk4rw1w5lmyqkb6z-hadoop-2.7.7.drv' failed to build

Steps To Reproduce

Steps to reproduce the behavior:

  1. cd ~/nixpkgs
  2. nix-build -A hadoop

Expected behavior

Screenshots

Additional context

Notify maintainers

@volth

Metadata

  • system: "x86_64-linux"
  • host os: Linux 5.14.3-zen1, NixOS, 21.11 (Porcupine)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.4pre20210922_bcd73eb
  • channels(root): "nixos-21.11pre299825.d8079260a30"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
@bbigras bbigras added the 0.kind: bug Something is broken label Sep 28, 2021
@VergeDX
Copy link
Member

VergeDX commented Oct 25, 2021

Same issues here : (, The patch is stale and should be updated.

@VergeDX
Copy link
Member

VergeDX commented Oct 25, 2021

The patch is out of date, I fix this issues in: VergeDX/config-nixpkgs@dfd6f02.

@nh2
Copy link
Contributor

nh2 commented Nov 1, 2021

Notify maintainers

@volth

I can hover @volth's user name to show the usual Github info, but clicking it produces a Github 404 page.

@VergeDX
Copy link
Member

VergeDX commented Nov 1, 2021

Notify maintainers

@volth

I can hover @volth's user name to show the usual Github info, but clicking it produces a Github 404 page.

Me too :/

@bbigras
Copy link
Contributor Author

bbigras commented Nov 1, 2021

Yeah, their github account seems to be deleted. They are active on the forum, so I'll send them a message.

@bbigras
Copy link
Contributor Author

bbigras commented Nov 1, 2021

volth pointed me to #141143 . which seems to have fixed the build. 🎉

@bbigras bbigras closed this as completed Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

3 participants