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

animbar: init at 1.2 #44608

Merged
merged 1 commit into from Aug 7, 2018
Merged

animbar: init at 1.2 #44608

merged 1 commit into from Aug 7, 2018

Conversation

leenaars
Copy link
Contributor

@leenaars leenaars commented Aug 7, 2018

Motivation for this change

Unusual animation tool that can be used to create physical animations.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.


nativeBuildInputs = [ cmake ];

buildInputs = [ qt4 file ];
Copy link
Contributor

Choose a reason for hiding this comment

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

Have you tried to build this with qt5? We are trying to get rid of qt4 in nixpkgs, see #33248 .

Copy link
Contributor Author

@leenaars leenaars Aug 7, 2018

Choose a reason for hiding this comment

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

Yes, I have tried. It fails to build without qt4.
Regarding removal of qt4: I've not involved with the discussion so far, but I'm in the camp of @vcunat of peaceful coexistence. I see no point in removing an entire toolkit from Nixpkgs 'just because you can'. Like in the case of this software: I'm not aware of a real equivalent. It does its (simple but unique) job. And it is uncertain whether it will ever be changed to some new version of Qt - what need would there be.

qt4 stands for a decade of free software history. If you don't have any software that uses qt4 installed, it does not burden you. And if you want to use it, you are willing to pay the 'price' of extra storage. Of course, in case of software that can be built with both there is no need to have two versions - and moving those to "qt5 exclusive" is a sane thing to optimise the common experience.... but removal isn't necessary.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, I have tried. It fails to build without qt4.

Fine, that's all I wanted to know. My opionion on the general issue is that, if a package supports both qt4 and qt5, we should prefer qt5. But there's no reason to refuse packages that need qt4.

@xeji
Copy link
Contributor

xeji commented Aug 7, 2018

@GrahamcOfBorg build animbar

@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: animbar

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: animbar

Partial log (click to expand)

installing
glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/mf3vxy34fll3ng4c8kxdyg992has6wx4-animbar-1.2
shrinking /nix/store/mf3vxy34fll3ng4c8kxdyg992has6wx4-animbar-1.2/bin/animbar
strip is /nix/store/1hi76hr87bd1y1q1qjk0lv8nmcjip1c8-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/mf3vxy34fll3ng4c8kxdyg992has6wx4-animbar-1.2/bin
patching script interpreter paths in /nix/store/mf3vxy34fll3ng4c8kxdyg992has6wx4-animbar-1.2
checking for references to /build in /nix/store/mf3vxy34fll3ng4c8kxdyg992has6wx4-animbar-1.2...
/nix/store/mf3vxy34fll3ng4c8kxdyg992has6wx4-animbar-1.2

@xeji xeji merged commit 4150a65 into NixOS:master Aug 7, 2018
@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: animbar

Partial log (click to expand)

g++ -c -pipe -O2 -fvisibility=hidden -fvisibility-inlines-hidden -w -D_REENTRANT -fPIC -DQT_SHARED -DQHELP_LIB -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -D_BUILD_FOR_QT_ -DLUCENE_DISABLE_MEMTRACKING -D_GLIBCXX_EXTERN_TEMPLATE=0 -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../../../mkspecs/linux-g++ -I. -I../../../../include/QtCore -I../../../../include -I/build/qt-everywhere-opensource-src-4.8.7/include/QtCLucene -I.rcc/release-shared -I. -I.. -I../../../../src/3rdparty/clucene/src/CLucene -I../../../../src/3rdparty/clucene/src -I../../../../src/3rdparty/clucene/src/CLucene/analysis -I../../../../src/3rdparty/clucene/src/CLucene/analysis/standard -I../../../../src/3rdparty/clucene/src/CLucene/config -I../../../../src/3rdparty/clucene/src/CLucene/debug -I../../../../src/3rdparty/clucene/src/CLucene/document -I../../../../src/3rdparty/clucene/src/CLucene/index -I../../../../src/3rdparty/clucene/src/CLucene/queryParser -I../../../../src/3rdparty/clucene/src/CLucene/search -I../../../../src/3rdparty/clucene/src/CLucene/store -I../../../../src/3rdparty/clucene/src/CLucene/util -I.moc/release-shared -o .obj/release-shared/qhits.o qhits.cpp
g++ -c -pipe -O2 -fvisibility=hidden -fvisibility-inlines-hidden -w -D_REENTRANT -fPIC -DQT_SHARED -DQHELP_LIB -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -D_BUILD_FOR_QT_ -DLUCENE_DISABLE_MEMTRACKING -D_GLIBCXX_EXTERN_TEMPLATE=0 -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../../../mkspecs/linux-g++ -I. -I../../../../include/QtCore -I../../../../include -I/build/qt-everywhere-opensource-src-4.8.7/include/QtCLucene -I.rcc/release-shared -I. -I.. -I../../../../src/3rdparty/clucene/src/CLucene -I../../../../src/3rdparty/clucene/src -I../../../../src/3rdparty/clucene/src/CLucene/analysis -I../../../../src/3rdparty/clucene/src/CLucene/analysis/standard -I../../../../src/3rdparty/clucene/src/CLucene/config -I../../../../src/3rdparty/clucene/src/CLucene/debug -I../../../../src/3rdparty/clucene/src/CLucene/document -I../../../../src/3rdparty/clucene/src/CLucene/index -I../../../../src/3rdparty/clucene/src/CLucene/queryParser -I../../../../src/3rdparty/clucene/src/CLucene/search -I../../../../src/3rdparty/clucene/src/CLucene/store -I../../../../src/3rdparty/clucene/src/CLucene/util -I.moc/release-shared -o .obj/release-shared/qsearchable.o qsearchable.cpp
g++ -c -pipe -O2 -fvisibility=hidden -fvisibility-inlines-hidden -w -D_REENTRANT -fPIC -DQT_SHARED -DQHELP_LIB -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -D_BUILD_FOR_QT_ -DLUCENE_DISABLE_MEMTRACKING -D_GLIBCXX_EXTERN_TEMPLATE=0 -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../../../mkspecs/linux-g++ -I. -I../../../../include/QtCore -I../../../../include -I/build/qt-everywhere-opensource-src-4.8.7/include/QtCLucene -I.rcc/release-shared -I. -I.. -I../../../../src/3rdparty/clucene/src/CLucene -I../../../../src/3rdparty/clucene/src -I../../../../src/3rdparty/clucene/src/CLucene/analysis -I../../../../src/3rdparty/clucene/src/CLucene/analysis/standard -I../../../../src/3rdparty/clucene/src/CLucene/config -I../../../../src/3rdparty/clucene/src/CLucene/debug -I../../../../src/3rdparty/clucene/src/CLucene/document -I../../../../src/3rdparty/clucene/src/CLucene/index -I../../../../src/3rdparty/clucene/src/CLucene/queryParser -I../../../../src/3rdparty/clucene/src/CLucene/search -I../../../../src/3rdparty/clucene/src/CLucene/store -I../../../../src/3rdparty/clucene/src/CLucene/util -I.moc/release-shared -o .obj/release-shared/qsort.o qsort.cpp
g++ -c -pipe -O2 -fvisibility=hidden -fvisibility-inlines-hidden -w -D_REENTRANT -fPIC -DQT_SHARED -DQHELP_LIB -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -D_BUILD_FOR_QT_ -DLUCENE_DISABLE_MEMTRACKING -D_GLIBCXX_EXTERN_TEMPLATE=0 -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../../../mkspecs/linux-g++ -I. -I../../../../include/QtCore -I../../../../include -I/build/qt-everywhere-opensource-src-4.8.7/include/QtCLucene -I.rcc/release-shared -I. -I.. -I../../../../src/3rdparty/clucene/src/CLucene -I../../../../src/3rdparty/clucene/src -I../../../../src/3rdparty/clucene/src/CLucene/analysis -I../../../../src/3rdparty/clucene/src/CLucene/analysis/standard -I../../../../src/3rdparty/clucene/src/CLucene/config -I../../../../src/3rdparty/clucene/src/CLucene/debug -I../../../../src/3rdparty/clucene/src/CLucene/document -I../../../../src/3rdparty/clucene/src/CLucene/index -I../../../../src/3rdparty/clucene/src/CLucene/queryParser -I../../../../src/3rdparty/clucene/src/CLucene/search -I../../../../src/3rdparty/clucene/src/CLucene/store -I../../../../src/3rdparty/clucene/src/CLucene/util -I.moc/release-shared -o .obj/release-shared/qquery.o qquery.cpp
g++ -c -pipe -O2 -fvisibility=hidden -fvisibility-inlines-hidden -w -D_REENTRANT -fPIC -DQT_SHARED -DQHELP_LIB -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -D_BUILD_FOR_QT_ -DLUCENE_DISABLE_MEMTRACKING -D_GLIBCXX_EXTERN_TEMPLATE=0 -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../../../mkspecs/linux-g++ -I. -I../../../../include/QtCore -I../../../../include -I/build/qt-everywhere-opensource-src-4.8.7/include/QtCLucene -I.rcc/release-shared -I. -I.. -I../../../../src/3rdparty/clucene/src/CLucene -I../../../../src/3rdparty/clucene/src -I../../../../src/3rdparty/clucene/src/CLucene/analysis -I../../../../src/3rdparty/clucene/src/CLucene/analysis/standard -I../../../../src/3rdparty/clucene/src/CLucene/config -I../../../../src/3rdparty/clucene/src/CLucene/debug -I../../../../src/3rdparty/clucene/src/CLucene/document -I../../../../src/3rdparty/clucene/src/CLucene/index -I../../../../src/3rdparty/clucene/src/CLucene/queryParser -I../../../../src/3rdparty/clucene/src/CLucene/search -I../../../../src/3rdparty/clucene/src/CLucene/store -I../../../../src/3rdparty/clucene/src/CLucene/util -I.moc/release-shared -o .obj/release-shared/qreader.o qreader.cpp
rm -f libQtCLucene.so.4.8.7 libQtCLucene.so libQtCLucene.so.4 libQtCLucene.so.4.8
g++ -Wl,-rpath-link,/build/qt-everywhere-opensource-src-4.8.7/lib -Wl,--no-undefined -Wl,-O1 -Wl,-rpath,/nix/store/8a19vsn1wdp2875h17g5gp7fmgcg6z1b-qt-4.8.7/lib -Wl,-rpath,/nix/store/8a19vsn1wdp2875h17g5gp7fmgcg6z1b-qt-4.8.7/lib -shared -Wl,-soname,libQtCLucene.so.4 -o libQtCLucene.so.4.8.7 .obj/release-shared/StdHeader.o .obj/release-shared/AnalysisHeader.o .obj/release-shared/Analyzers.o .obj/release-shared/gunichartables.o .obj/release-shared/repl_lltot.o .obj/release-shared/repl_tcscasecmp.o .obj/release-shared/repl_tcslwr.o .obj/release-shared/repl_tcstod.o .obj/release-shared/repl_tcstoll.o .obj/release-shared/repl_tprintf.o .obj/release-shared/threads.o .obj/release-shared/utf8.o .obj/release-shared/condition.o .obj/release-shared/error.o .obj/release-shared/memtracking.o .obj/release-shared/DateField.o .obj/release-shared/Document.o .obj/release-shared/Field.o .obj/release-shared/CompoundFile.o .obj/release-shared/DocumentWriter.o .obj/release-shared/FieldInfos.o .obj/release-shared/FieldsReader.o .obj/release-shared/FieldsWriter.o .obj/release-shared/IndexModifier.o .obj/release-shared/IndexReader.o .obj/release-shared/IndexWriter.o .obj/release-shared/MultiReader.o .obj/release-shared/SegmentInfos.o .obj/release-shared/SegmentMergeInfo.o .obj/release-shared/SegmentMergeQueue.o .obj/release-shared/SegmentMerger.o .obj/release-shared/SegmentReader.o .obj/release-shared/SegmentTermDocs.o .obj/release-shared/SegmentTermEnum.o .obj/release-shared/SegmentTermPositions.o .obj/release-shared/SegmentTermVector.o .obj/release-shared/Term.o .obj/release-shared/TermInfo.o .obj/release-shared/TermInfosReader.o .obj/release-shared/TermInfosWriter.o .obj/release-shared/TermVectorReader.o .obj/release-shared/TermVectorWriter.o .obj/release-shared/Lexer.o .obj/release-shared/MultiFieldQueryParser.o .obj/release-shared/QueryParser.o .obj/release-shared/QueryParserBase.o .obj/release-shared/QueryToken.o .obj/release-shared/TokenList.o .obj/release-shared/BooleanQuery.o .obj/release-shared/BooleanScorer.o .obj/release-shared/CachingWrapperFilter.o .obj/release-shared/ChainedFilter.o .obj/release-shared/ConjunctionScorer.o .obj/release-shared/DateFilter.o .obj/release-shared/ExactPhraseScorer.o .obj/release-shared/Explanation.o .obj/release-shared/FieldCache.o .obj/release-shared/FieldCacheImpl.o .obj/release-shared/FieldDocSortedHitQueue.o .obj/release-shared/FieldSortedHitQueue.o .obj/release-shared/FilteredTermEnum.o .obj/release-shared/FuzzyQuery.o .obj/release-shared/HitQueue.o .obj/release-shared/Hits.o .obj/release-shared/IndexSearcher.o .obj/release-shared/MultiSearcher.o .obj/release-shared/MultiTermQuery.o .obj/release-shared/PhrasePositions.o .obj/release-shared/PhraseQuery.o .obj/release-shared/PhraseScorer.o .obj/release-shared/PrefixQuery.o .obj/release-shared/QueryFilter.o .obj/release-shared/RangeFilter.o .obj/release-shared/RangeQuery.o .obj/release-shared/SearchHeader.o .obj/release-shared/Similarity.o .obj/release-shared/SloppyPhraseScorer.o .obj/release-shared/Sort.o .obj/release-shared/TermQuery.o .obj/release-shared/TermScorer.o .obj/release-shared/WildcardQuery.o .obj/release-shared/WildcardTermEnum.o .obj/release-shared/FSDirectory.o .obj/release-shared/IndexInput.o .obj/release-shared/IndexOutput.o .obj/release-shared/Lock.o .obj/release-shared/MMapInput.o .obj/release-shared/RAMDirectory.o .obj/release-shared/TransactionalRAMDirectory.o .obj/release-shared/BitSet.o .obj/release-shared/Equators.o .obj/release-shared/FastCharStream.o .obj/release-shared/fileinputstream.o .obj/release-shared/Misc.o .obj/release-shared/Reader.o .obj/release-shared/StringBuffer.o .obj/release-shared/StringIntern.o .obj/release-shared/ThreadLocal.o .obj/release-shared/StandardAnalyzer.o .obj/release-shared/StandardFilter.o .obj/release-shared/StandardTokenizer.o .obj/release-shared/qanalyzer.o .obj/release-shared/qtokenizer.o .obj/release-shared/qtoken.o .obj/release-shared/qtokenstream.o .obj/release-shared/qdocument.o .obj/release-shared/qfield.o .obj/release-shared/qindexreader.o .obj/release-shared/qindexwriter.o .obj/release-shared/qterm.o .obj/release-shared/qqueryparser.o .obj/release-shared/qfilter.o .obj/release-shared/qhits.o .obj/release-shared/qsearchable.o .obj/release-shared/qsort.o .obj/release-shared/qquery.o .obj/release-shared/qreader.o   -L/build/qt-everywhere-opensource-src-4.8.7/lib -lQtCore -L/build/qt-everywhere-opensource-src-4.8.7/lib -lpthread
building of '/nix/store/2456al5x9kxk6n11a8f6xzgkm0cg2wnf-qt-4.8.7.drv' timed out after 3600 seconds
cannot build derivation '/nix/store/hbinwcygfn62j3xkm41bwj96h28hjznz-animbar-1.2.drv': 1 dependencies couldn't be built
error: build of '/nix/store/hbinwcygfn62j3xkm41bwj96h28hjznz-animbar-1.2.drv' failed

@xeji
Copy link
Contributor

xeji commented Aug 7, 2018

timeout building qt ... unrelated.

@jtojnar
Copy link
Contributor

jtojnar commented Sep 17, 2018

I tried porting it to Qt5 and sent the patch to authors jtojnar/animbar@1ae854e

@leenaars
Copy link
Contributor Author

@jtojnar: Great! Hope they respond. meanwhile we could add a patchPhase, with your patch:
https://github.com/jtojnar/animbar/commit/1ae854eae2fb8dce43f262becb707a1bc932e8f8.patch

@jtojnar jtojnar mentioned this pull request Jun 23, 2022
13 tasks
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

4 participants