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

peercoin: init 0.6.2 #26508

Closed
wants to merge 1 commit into from
Closed

peercoin: init 0.6.2 #26508

wants to merge 1 commit into from

Conversation

spinus
Copy link
Member

@spinus spinus commented Jun 10, 2017

Motivation for this change
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
    • Linux
  • 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.

Sorry, something went wrong.

@mention-bot
Copy link

@spinus, thanks for your PR! By analyzing the history of the files in this pull request, we identified @AndersonTorres, @dbrock and @jefdaj to be potential reviewers.

@Mic92
Copy link
Member

Mic92 commented Jun 11, 2017

peercoind fails to build:

these derivations will be built:
  /nix/store/zslm1jfbnrii9yxnpvspjr5518pxdm36-peercoind-0.5.4ppc.drv
building path(s) ‘/nix/store/jwncf41m24nf57mmk1sxqlprvcjdavc0-peercoind-0.5.4ppc’
unpacking sources
unpacking source archive /nix/store/wr1rhy83h8lvv7l1p9jg0v973dfy989w-peercoin-v0.5.4ppc-src
source root is peercoin-v0.5.4ppc-src
patching sources
configuring
no configure script, doing nothing
building
/nix/store/jdpwa3nmjwbcw05hxm89rsgmd6n7bk2s-stdenv/setup: line 917: qmake: command not found
builder for ‘/nix/store/zslm1jfbnrii9yxnpvspjr5518pxdm36-peercoind-0.5.4ppc.drv’ failed with exit code 127
error: build of ‘/nix/store/zslm1jfbnrii9yxnpvspjr5518pxdm36-peercoind-0.5.4ppc.drv’ failed
/run/current-system/sw/bin/nix-shell: failed to build all dependencies

@spinus
Copy link
Member Author

spinus commented Jun 11, 2017

@Mic92 good catch, I checked only peercoin-qt, I'll try to fix...

@joachifm joachifm added the 8.has: package (new) This PR adds a new package label Jun 16, 2017
@joachifm joachifm added 2.status: work-in-progress This PR isn't done 2.status: merge conflict This PR has merge conflicts with the target branch labels Feb 20, 2018
@matthewbauer
Copy link
Member

@GrahamcOfBorg build peercoin

@GrahamcOfBorg
Copy link

No attempt on x86_64-linux (full log)

The following builds were skipped because they don't evaluate on x86_64-linux: peercoin

Partial log (click to expand)

Cannot nix-instantiate `peercoin' because:
�[31;1merror:�[0m attribute 'peercoin' in selection path 'peercoin' not found

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: peercoin

Partial log (click to expand)

Cannot nix-instantiate `peercoin' because:
error: attribute 'peercoin' in selection path 'peercoin' not found

@GrahamcOfBorg
Copy link

No attempt on aarch64-linux (full log)

The following builds were skipped because they don't evaluate on aarch64-linux: peercoin

Partial log (click to expand)

Cannot nix-instantiate `peercoin' because:
�[31;1merror:�[0m attribute 'peercoin' in selection path 'peercoin' not found

@GrahamcOfBorg GrahamcOfBorg removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Apr 21, 2018
@matthewbauer
Copy link
Member

@GrahamcOfBorg build altcoins.peercoin altcoins.peercoind

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Attempted: altcoins.peercoin, altcoins.peercoind

Partial log (click to expand)

trying https://github.com/peercoin/peercoin/archive/v0.5.4ppc.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   128    0   128    0     0    262      0 --:--:-- --:--:-- --:--:--   262
100 1672k    0 1672k    0     0   829k      0 --:--:--  0:00:02 --:--:-- 1534k
unpacking source archive /build/v0.5.4ppc.tar.gz
fixed-output derivation produced path '/nix/store/l0hw4mxy1g4xxv84z26ql8q216m3jym5-source' with sha256 hash '0sj2q68vf3sfhhxc6w7sjyc6lj9fy72llb5blbnw52sw34xvly6w' instead of the expected hash '17k4lxa2gdy5ir5q3l0d5y7wm8fhlyww7hakiqfvj05zgc49sxjj'
cannot build derivation '/nix/store/5354qwjq6qgc59n8r8qvlfgk6z9rxpxv-peercoin-0.5.4ppc.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/gxhw6r4r1wswrnhwcknah1p700cr12l9-peercoind-0.5.4ppc.drv': 1 dependencies couldn't be built
�[31;1merror:�[0m build of '/nix/store/5354qwjq6qgc59n8r8qvlfgk6z9rxpxv-peercoin-0.5.4ppc.drv', '/nix/store/gxhw6r4r1wswrnhwcknah1p700cr12l9-peercoind-0.5.4ppc.drv' failed

Copy link
Member

@matthewbauer matthewbauer left a comment

Choose a reason for hiding this comment

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

Checksum looks incorrect

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Attempted: altcoins.peercoin, altcoins.peercoind

Partial log (click to expand)

../../JavaScriptCore/runtime/JSTypeInfo.h:73:52: note: use '&' for a bitwise operation
        unsigned isFinal() const { return m_flags2 && (IsJSFinalObject >> 8); }
                                                   ^~
                                                   &
../../JavaScriptCore/runtime/JSTypeInfo.h:73:52: note: remove constant to silence this warning
        unsigned isFinal() const { return m_flags2 && (IsJSFinalObject >> 8); }
                                                  ~^~~~~~~~~~~~~~~~~~~~~~~~~
building of '/nix/store/v087ch2gdfi2i7gzw6g3gmswxygxhb1j-qt-4.8.7.drv' timed out after 1800 seconds
cannot build derivation '/nix/store/xnrhs1c2wwdh7k0g3b6a0c8slx4s6nmj-peercoin-0.5.4ppc.drv': 2 dependencies couldn't be built
error: build of '/nix/store/fzk1h1x2in6w07xrsypvpk3wqzk2ggyj-peercoind-0.5.4ppc.drv', '/nix/store/xnrhs1c2wwdh7k0g3b6a0c8slx4s6nmj-peercoin-0.5.4ppc.drv' failed

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: altcoins.peercoin, altcoins.peercoind

Partial log (click to expand)

helpviewer_qwv.cpp:206:9: note: here
         default:        // fall through
         ^~~~~~~
remotecontrol.cpp: In member function 'void RemoteControl::receivedData()':
remotecontrol.cpp:147:15: warning: comparison is always false due to limited range of data type [-Wtype-limits]
         if (c == EOF || c == '\0')
               ^
building of '/nix/store/7zva36frfdcfa9fpydzw2wkbx26yb163-qt-4.8.7.drv' timed out after 3600 seconds
cannot build derivation '/nix/store/dycd4mpqivqc2nwwy96d2263p5n1cphy-peercoin-0.5.4ppc.drv': 2 dependencies couldn't be built
�[31;1merror:�[0m build of '/nix/store/6x2ifcfd4mh4fyj0yaqpddmiq17fhy8r-peercoind-0.5.4ppc.drv', '/nix/store/dycd4mpqivqc2nwwy96d2263p5n1cphy-peercoin-0.5.4ppc.drv' failed

@spinus spinus force-pushed the peercoin branch 2 times, most recently from 3bd0008 to 3e2f0ea Compare April 22, 2018 02:02
@spinus spinus changed the title peercoin: init 0.5 peercoin: init 0.6.2 Apr 22, 2018
@spinus
Copy link
Member Author

spinus commented Apr 22, 2018

Bumped to latest version and updated checksum. Was not sure how to build non gui target so removed that.

@GrahamcOfBorg GrahamcOfBorg added 2.status: merge conflict This PR has merge conflicts with the target branch and removed 2.status: merge conflict This PR has merge conflicts with the target branch labels Apr 22, 2018
@Mic92
Copy link
Member

Mic92 commented Apr 23, 2018

@GrahamcOfBorg build peercoin

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: peercoin

Partial log (click to expand)

Cannot nix-instantiate `peercoin' because:
�[31;1merror:�[0m attribute 'peercoin' in selection path 'peercoin' not found

@GrahamcOfBorg
Copy link

No attempt on x86_64-linux (full log)

The following builds were skipped because they don't evaluate on x86_64-linux: peercoin

Partial log (click to expand)

Cannot nix-instantiate `peercoin' because:
error: attribute 'peercoin' in selection path 'peercoin' not found

@GrahamcOfBorg
Copy link

No attempt on aarch64-linux (full log)

The following builds were skipped because they don't evaluate on aarch64-linux: peercoin

Partial log (click to expand)

Cannot nix-instantiate `peercoin' because:
�[31;1merror:�[0m attribute 'peercoin' in selection path 'peercoin' not found

@Mic92
Copy link
Member

Mic92 commented Apr 23, 2018

@GrahamcOfBorg build altcoins.peercoin

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Attempted: altcoins.peercoin

Partial log (click to expand)

g++ -I. -I./include -fno-builtin-memcmp -pthread -DOS_LINUX -DLEVELDB_PLATFORM_POSIX -pipe -fstack-protector-all -D_FORTIFY_SOURCE=2 -O2 -c util/status.cc -o util/status.o
g++ -I. -I./include -fno-builtin-memcmp -pthread -DOS_LINUX -DLEVELDB_PLATFORM_POSIX -pipe -fstack-protector-all -D_FORTIFY_SOURCE=2 -O2 -c port/port_posix.cc -o port/port_posix.o
rm -f libleveldb.a
ar cqs -rs libleveldb.a db/builder.o db/c.o db/db_impl.o db/db_iter.o db/dbformat.o db/filename.o db/log_reader.o db/log_writer.o db/memtable.o db/repair.o db/table_cache.o db/version_edit.o db/version_set.o db/write_batch.o table/block.o table/block_builder.o table/filter_block.o table/format.o table/iterator.o table/merger.o table/table.o table/table_builder.o table/two_level_iterator.o util/arena.o util/bloom.o util/cache.o util/coding.o util/comparator.o util/crc32c.o util/env.o util/env_posix.o util/env_win.o util/filter_policy.o util/hash.o util/histogram.o util/logging.o util/options.o util/status.o port/port_posix.o
ar: two different operation options specified
make[1]: *** [Makefile:101: libleveldb.a] Error 1
make[1]: Leaving directory '/build/source/src/leveldb'
make: *** [Makefile:426: /build/source/src/leveldb/libleveldb.a] Error 2
builder for '/nix/store/l7a3lififraj48n6jmynbwdjcgdr1n5v-peercoin-0.6.2ppc.drv' failed with exit code 2
error: build of '/nix/store/l7a3lififraj48n6jmynbwdjcgdr1n5v-peercoin-0.6.2ppc.drv' failed

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: altcoins.peercoin

Partial log (click to expand)

                 from ./db/filename.h:14,
                 from db/builder.cc:7:
./port/atomic_pointer.h:212:2: error: #error Please implement AtomicPointer for this platform.
 #error Please implement AtomicPointer for this platform.
  ^~~~~
make[1]: *** [Makefile:206: db/builder.o] Error 1
make[1]: Leaving directory '/build/source/src/leveldb'
make: *** [Makefile:426: /build/source/src/leveldb/libleveldb.a] Error 2
builder for '/nix/store/wp7nsi3gvk7n674sw3b7mfvm37vdjj3a-peercoin-0.6.2ppc.drv' failed with exit code 2
�[31;1merror:�[0m build of '/nix/store/wp7nsi3gvk7n674sw3b7mfvm37vdjj3a-peercoin-0.6.2ppc.drv' failed

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Attempted: altcoins.peercoin

Partial log (click to expand)

        ar -q [-cTLsv] archive file ...
        ar -r [-cuTLsv] archive file ...
        ar -r [-abciuTLsv] position archive file ...
        ar -t [-TLsv] archive [file ...]
        ar -x [-ouTLsv] archive [file ...]
make[1]: *** [Makefile:101: libleveldb.a] Error 1
make[1]: Leaving directory '/private/tmp/nix-build-peercoin-0.6.2ppc.drv-0/source/src/leveldb'
make: *** [Makefile:466: /private/tmp/nix-build-peercoin-0.6.2ppc.drv-0/source/src/leveldb/libleveldb.a] Error 2
builder for '/nix/store/av2aq2v8y17q5n4mkm1kx9s67mighnja-peercoin-0.6.2ppc.drv' failed with exit code 2
error: build of '/nix/store/av2aq2v8y17q5n4mkm1kx9s67mighnja-peercoin-0.6.2ppc.drv' failed

{ stdenv, fetchFromGitHub
, pkgconfig, autoreconfHook
, openssl, db48, boost, zlib, miniupnpc
, protobuf, utillinux, qt4, qrencode
Copy link
Member

Choose a reason for hiding this comment

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

I think we should use qt5 if possible. Qt4 is soon to be deprecated.

Copy link
Member Author

Choose a reason for hiding this comment

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

let me check if that even compiles

Copy link
Member

Choose a reason for hiding this comment

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

Seems like most recent release supports qt5 from the .pro file

@veprbl veprbl added the 2.status: merge conflict This PR has merge conflicts with the target branch label Nov 28, 2018
@Ekleog
Copy link
Member

Ekleog commented Feb 18, 2019

(triage) @spinus Are you still planning to come back to this PR?

@aanderse
Copy link
Member

(triage) @spinus Are you still planning to come back to this PR?

@spinus ping

@spinus
Copy link
Member Author

spinus commented May 16, 2019

hello, thanks for ping. Sure, I'll jump on that soon.

Copy link
Member

@aanderse aanderse left a comment

Choose a reason for hiding this comment

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

Let me know if you have any questions.

with stdenv.lib;
stdenv.mkDerivation rec {

name = "peercoin" + (toString (optional (!withGui) "d")) + "-" + version;
Copy link
Member

Choose a reason for hiding this comment

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

I would suggest the package name not change depending on the withGui option or not, unless you add both variants properly named in all-packages.nix.

Copy link
Member

Choose a reason for hiding this comment

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

Please use pname = "peercoin"; and this will automatically set name = "${pname}-${version}";

stdenv.mkDerivation rec {

name = "peercoin" + (toString (optional (!withGui) "d")) + "-" + version;
version = "0.6.2ppc";
Copy link
Member

Choose a reason for hiding this comment

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

Looks like this can be bumped.

sha256 = "16wxwwrv83x0qjj4dndlkrpw9ril9j0rh6skp1q1xm5zyc0fx0xl";
};

nativeBuildInputs = [ pkgconfig ];
Copy link
Member

Choose a reason for hiding this comment

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

Please add qmake and then I believe you can omit the custom buildPhase and installPhase

the regular computers and GPUs most people already have.
The Litecoin network is scheduled to produce 84 million currency units.
'';
homepage = https://peercoin.org/;
Copy link
Member

Choose a reason for hiding this comment

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

Please quote as quotes will likely become mandatory at some point.

homepage = https://peercoin.org/;
platforms = platforms.unix;
license = licenses.mit;
maintainers = with maintainers; [ offline AndersonTorres ];
Copy link
Member

Choose a reason for hiding this comment

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

A copy+paste need updating?

{ stdenv, fetchFromGitHub
, pkgconfig, autoreconfHook
, openssl, db48, boost, zlib, miniupnpc
, protobuf, utillinux, qt4, qrencode
Copy link
Member

Choose a reason for hiding this comment

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

Seems like most recent release supports qt5 from the .pro file

@wamserma
Copy link
Member

@spinus Seems this is not really missing in NixOS. Maybe close this PR and provide package via NUR.

@spinus
Copy link
Member Author

spinus commented Mar 19, 2020

@wamserma not bad option. I thought I'll add this here as the arch for adding more tools in that category is easy and prepared. But I guess you could be right :-)

@spinus spinus closed this Mar 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: merge conflict This PR has merge conflicts with the target branch 2.status: work-in-progress This PR isn't done 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 10.rebuild-linux: 1-10
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

10 participants