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

newsboat: init at 2.10.1 #31802

Closed
wants to merge 1 commit into from
Closed

Conversation

nicknovitski
Copy link
Contributor

@nicknovitski nicknovitski commented Nov 18, 2017

This is a fork of newsbeuter, which is now unmaintained.

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
Member

@Ma27 Ma27 left a comment

Choose a reason for hiding this comment

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

just two minor nitpicking changes

++ stdenv.lib.optional stdenv.isDarwin makeWrapper;

preBuild = ''
substituteInPlace config.sh \
Copy link
Member

Choose a reason for hiding this comment

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

I guess that for patching files in a package the patchPhase should preferably be used

Copy link
Member

Choose a reason for hiding this comment

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

postPatch, overriding patchPhase prevents usage of patches = attribute.

done
'';

meta = {
Copy link
Member

Choose a reason for hiding this comment

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

most of the derivations use meta = with stdenv.lib; { which makes the expression less verbose as you don't have to type stdenv.lib.{any-value} all the time.

@Ma27
Copy link
Member

Ma27 commented Nov 19, 2017

btw I cecked out your branch and ran nix-build -A newsboat and it builds fine on NixOS (18.03pre120398.aeff3080d0 (Impala) in my case) as well :-)

Based on newsbeuter package.
@nicknovitski
Copy link
Contributor Author

Thanks for that @Ma27. I changed the replacements to happen in postPatch and cleaned up meta like you suggested.

@grahamc
Copy link
Member

grahamc commented Nov 20, 2017

@GrahamcOfBorg build newsboat

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

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

Failure for system: x86_64-linux

ranlib libfilter.a
g++ -std=c++11 -ggdb -Iinclude -Istfl -Ifilter -I. -Irss -Werror -Wall -Wextra -Wunreachable-code -DLOCALEDIR=\"/usr/local/share/locale\" -I/nix/store/9c0dxmn0ch9hbac2il4jk0g0hf2bg4h2-sqlite-3.21.0-dev/include -I/nix/store/5afp87hdnsw0a4b96i1iv6wcf455mhh6-curl-7.56.1-dev/include -I/nix/store/avkk0fxind45lzhc4khf6w3kzkvqflp5-libxml2-2.9.5-dev/include/libxml2 -I/include -I/nix/store/kxnwq950l1456w0zmsnv11bwfg9j31px-json-c-0.11/include/json-c -D_GNU_SOURCE -D_DEFAULT_SOURCE -I/nix/store/ks518vijnzqdzlvhf8da2szkn6xwdwg1-ncurses-6.0-20170902-dev/include -o newsbeuter.o -c newsbeuter.cpp
g++ -std=c++11 -ggdb -Iinclude -Istfl -Ifilter -I. -Irss -Werror -Wall -Wextra -Wunreachable-code -DLOCALEDIR=\"/usr/local/share/locale\" -I/nix/store/9c0dxmn0ch9hbac2il4jk0g0hf2bg4h2-sqlite-3.21.0-dev/include -I/nix/store/5afp87hdnsw0a4b96i1iv6wcf455mhh6-curl-7.56.1-dev/include -I/nix/store/avkk0fxind45lzhc4khf6w3kzkvqflp5-libxml2-2.9.5-dev/include/libxml2 -I/include -I/nix/store/kxnwq950l1456w0zmsnv11bwfg9j31px-json-c-0.11/include/json-c -D_GNU_SOURCE -D_DEFAULT_SOURCE -I/nix/store/ks518vijnzqdzlvhf8da2szkn6xwdwg1-ncurses-6.0-20170902-dev/include -o src/cache.o -c src/cache.cpp
g++ -std=c++11 -ggdb -Iinclude -Istfl -Ifilter -I. -Irss -Werror -Wall -Wextra -Wunreachable-code -DLOCALEDIR=\"/usr/local/share/locale\" -I/nix/store/9c0dxmn0ch9hbac2il4jk0g0hf2bg4h2-sqlite-3.21.0-dev/include -I/nix/store/5afp87hdnsw0a4b96i1iv6wcf455mhh6-curl-7.56.1-dev/include -I/nix/store/avkk0fxind45lzhc4khf6w3kzkvqflp5-libxml2-2.9.5-dev/include/libxml2 -I/include -I/nix/store/kxnwq950l1456w0zmsnv11bwfg9j31px-json-c-0.11/include/json-c -D_GNU_SOURCE -D_DEFAULT_SOURCE -I/nix/store/ks518vijnzqdzlvhf8da2szkn6xwdwg1-ncurses-6.0-20170902-dev/include -o src/htmlrenderer.o -c src/htmlrenderer.cpp
g++ -std=c++11 -ggdb -Iinclude -Istfl -Ifilter -I. -Irss -Werror -Wall -Wextra -Wunreachable-code -DLOCALEDIR=\"/usr/local/share/locale\" -I/nix/store/9c0dxmn0ch9hbac2il4jk0g0hf2bg4h2-sqlite-3.21.0-dev/include -I/nix/store/5afp87hdnsw0a4b96i1iv6wcf455mhh6-curl-7.56.1-dev/include -I/nix/store/avkk0fxind45lzhc4khf6w3kzkvqflp5-libxml2-2.9.5-dev/include/libxml2 -I/include -I/nix/store/kxnwq950l1456w0zmsnv11bwfg9j31px-json-c-0.11/include/json-c -D_GNU_SOURCE -D_DEFAULT_SOURCE -I/nix/store/ks518vijnzqdzlvhf8da2szkn6xwdwg1-ncurses-6.0-20170902-dev/include -o src/urlreader.o -c src/urlreader.cpp
./txt2h.pl stfl/itemlist.stfl .stfl > stfl/itemlist.h
/nix/store/4ada72n7785wwazv42fhsnxjvilaa3aj-bash-4.4-p12/bin/bash: ./txt2h.pl: /usr/bin/env: bad interpreter: No such file or directory
make: *** [Makefile:115: stfl/itemlist.h] Error 126
builder for ‘/nix/store/fz6q9y4bl0ibj08nwigjxw469yrhfbbj-newsboat-2.10.1.drv’ failed with exit code 2
error: build of ‘/nix/store/fz6q9y4bl0ibj08nwigjxw469yrhfbbj-newsboat-2.10.1.drv’ failed

@grahamc
Copy link
Member

grahamc commented Nov 20, 2017

Hmm looks like a bit more work needed around the usr/bin/env references.

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

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

Success for system: x86_64-darwin

gzipping man pages under /nix/store/qhn5jyh4qyqzf0y9pwsbsikds5hnj5ib-newsboat-2.10.1/share/man/
stripping (with flags -S) in /nix/store/qhn5jyh4qyqzf0y9pwsbsikds5hnj5ib-newsboat-2.10.1/bin
patching script interpreter paths in /nix/store/qhn5jyh4qyqzf0y9pwsbsikds5hnj5ib-newsboat-2.10.1
/nix/store/qhn5jyh4qyqzf0y9pwsbsikds5hnj5ib-newsboat-2.10.1/contrib/bookmark-delicious.sh: interpreter directive changed from "/bin/sh" to "/nix/store/hh833qm6lgb6cgr7z9vxkb72wikr4wwz-bash-4.4-p12/bin/sh"
/nix/store/qhn5jyh4qyqzf0y9pwsbsikds5hnj5ib-newsboat-2.10.1/contrib/bookmark-pinboard.sh: interpreter directive changed from "/bin/sh" to "/nix/store/hh833qm6lgb6cgr7z9vxkb72wikr4wwz-bash-4.4-p12/bin/sh"
/nix/store/qhn5jyh4qyqzf0y9pwsbsikds5hnj5ib-newsboat-2.10.1/contrib/bookmark-scuttle.sh: interpreter directive changed from "/bin/sh" to "/nix/store/hh833qm6lgb6cgr7z9vxkb72wikr4wwz-bash-4.4-p12/bin/sh"
/nix/store/qhn5jyh4qyqzf0y9pwsbsikds5hnj5ib-newsboat-2.10.1/contrib/getpocket.com/create-pocket-user-token.sh: interpreter directive changed from "/bin/sh" to "/nix/store/hh833qm6lgb6cgr7z9vxkb72wikr4wwz-bash-4.4-p12/bin/sh"
/nix/store/qhn5jyh4qyqzf0y9pwsbsikds5hnj5ib-newsboat-2.10.1/contrib/getpocket.com/send-to-pocket.sh: interpreter directive changed from "/bin/bash" to "/nix/store/hh833qm6lgb6cgr7z9vxkb72wikr4wwz-bash-4.4-p12/bin/bash"
/nix/store/qhn5jyh4qyqzf0y9pwsbsikds5hnj5ib-newsboat-2.10.1/contrib/pinboard.pl: interpreter directive changed from "/usr/bin/env perl" to "/nix/store/34r0w11jh1kgnvdlqnnk5h2vnm0qmnl3-perl-5.24.3/bin/perl"
/nix/store/qhn5jyh4qyqzf0y9pwsbsikds5hnj5ib-newsboat-2.10.1

@c0bw3b
Copy link
Contributor

c0bw3b commented Nov 20, 2017

BTW #31719 was already opened. You might want to join forces with @tasmo

@tasmo
Copy link
Contributor

tasmo commented Nov 21, 2017

@nicknovitski Thank you, I coudn't figure out how to get the manpages working. Your approach seems to work.

@nicknovitski
Copy link
Contributor Author

@tasmo No problem, congrats on your first contribution!

@tasmo
Copy link
Contributor

tasmo commented Nov 23, 2017

@nicknovitski Thank you! :)

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

7 participants