AgeCommit message (Collapse)AuthorLines
2016-12-07paludis: avoid return after else (NFC)Avatar Saleem Abdulrasool -4/+4
2016-12-07cave: adjust whitespaceAvatar Saleem Abdulrasool -15/+8
2016-12-07cave: range base loopify (NFC)Avatar Saleem Abdulrasool -7/+6
2016-12-06Fix build with -Wl,--as-neededAvatar Heiko Becker -1/+2
2016-12-06Only build resolver_TEST_promote_binaries if tests are enabledAvatar Heiko Becker -3/+2
Otherwise cmake complains when -DENABLE_GTEST=FALSE is passed, because it doesn't know the target.
2016-12-05build: Move call to project further to the topAvatar Heiko Becker -1/+2
Before CMAKE_INSTALL_FULL_DOCDIR which defaults to DATAROOTDIR/doc/PROJECT_NAME, leading to a wrong CMAKE_INSTALL_FULL_HTMLDIR otherwise.
2016-12-05build: Fix logic error with PALUDIS_COLOUR_PINKAvatar Heiko Becker -2/+2
Setting PALUDIS_COLOUR_PINK to FALSE lead to unexpected colours.
2016-12-05build: Install bash scripts as 'PROGRAMS'Avatar Heiko Becker -25/+25
...to make them executable.
2016-12-05build: Create directories before files are created in themAvatar Heiko Becker -26/+27
2016-12-05build: correct the local variableAvatar Saleem Abdulrasool -2/+2
The variable was `phase` although `hook` was being used. Thanks to zlin and heirecka for tracking that down!
2016-12-04resolver: more range loop conversions (NFC)Avatar Saleem Abdulrasool -11/+7
2016-12-04use range based for loops more pervasively (NFC)Avatar Saleem Abdulrasool -313/+230
2016-12-03build: remove some unnecessary ignores in packagingAvatar Saleem Abdulrasool -11/+0
Remove the autotools filtering in the cpack rules as the autotools build has been removed.
2016-12-03build: fix documentation typoAvatar Saleem Abdulrasool -1/+1
2016-12-03build: remove unnecessary MD5 usageAvatar Saleem Abdulrasool -10/+5
Don't add a uniquing hash into the target, they are already unique based on the file name being generated. If we ever end up with the same file name being used in multiple directories, we can re-introduce the MD5 nonce. This should speed up the generation a slight bit.
2016-12-03paludis: use default'ed methodsAvatar Saleem Abdulrasool -78/+29
Convert the library to use C++11 default members. Converted using clang-tidy.
2016-12-03args: move the visibility macros to the definitionAvatar Saleem Abdulrasool -18/+18
This silences a large amount of warning spew due to the attribute having no effect. NFC.
2016-12-03build: explicitly link against threads in gtestsAvatar Saleem Abdulrasool -0/+1
In the case the googletest library is built static and was built with threading, the library may have an implicit dependency which is unrecorded. Add an explicit link against the threading library. The slight overlinkage is inconsequential as it is for tests only.
2016-12-03tests: add an explicit cast for gtest 1.8Avatar Saleem Abdulrasool -1/+1
The assertion macro in googletest 1.8.0 is unable to infer the cast needed here. Add an explicit cast to boolean. The other assertion is implicitly cast to boolean due to the negation.
2016-12-03paludis 3.0!Avatar Saleem Abdulrasool -1/+1
Update the package version to 3.0. The future is now. master is now moving towards the 3.0 release.
2016-11-30test: adjust the hooker testAvatar Saleem Abdulrasool -12/+12
Adjust the hooker test setup for the new build layout caused by the migration to CMake which does not use libtool. Adjust the setup script for the news and env update hooks.
2016-11-30build: remove autotools based buildAvatar Saleem Abdulrasool -7028/+0
There can be only one!
2016-11-30build: introduce cmake based build systemAvatar Saleem Abdulrasool -0/+4563
2016-11-28paludis: mark the command template executableAvatar Saleem Abdulrasool -0/+0
This makes it simpler to generate the executables with the execute permission preset. NFC.
2016-11-28tests: standardise test namingAvatar Saleem Abdulrasool -0/+0
Canonicalise the test naming. Mark the tests as executable.
2016-11-28paludis: adjust whitespaceAvatar Saleem Abdulrasool -10/+9
2016-11-28paludis: mark visibility on a few extern templatesAvatar Saleem Abdulrasool -20/+12
Give the explicit template specializations default visibility. This is needed to build the cave client with clang with hidden visibility.
2016-11-28cave: correct importance handlingAvatar Saleem Abdulrasool -1/+1
We would previously negate the left hand side of the comparison rather than the comparison. Identified via clang 3.9.
2016-10-04Add all options for --change-phases-for to zsh completions.Avatar Bo Ørsted Andresen -4/+5
Change-Id: I4767ae461c14d3d10363c8c518da9cbcb8044448
2016-08-06modernize: use default method synthesisAvatar Saleem Abdulrasool -923/+290
Convert a number of destructors to default synthesized functions. Try to inline a few instances into the header. It should be possible to inline all of them, however, gcc seems to emit a number of warnings. Furthermore, some of the destructors are pure-virtualed, but provide an implementation. Placing the definition into the header causes ODR violations.
2016-08-04modernize: use override annotationsAvatar Saleem Abdulrasool -603/+603
Automated addition of override to overridden functions. NFC.
2016-08-04modernize: use nullptr rather than 0 or NULLAvatar Saleem Abdulrasool -51/+51
Automated conversion to nullptr. NFC.
2016-08-04modernize: convert to range based for-loopsAvatar Saleem Abdulrasool -532/+415
Automated conversion to range based for loops. NFC
2016-06-29paludis {index,howdoi}.html.part: drop outdated distcc guideAvatar Irvin Choi -14/+0
Change-Id: Icd50ff2af47b094f65aa2cb71793f5152d03ffca Reviewed-on: https://galileo.mailstation.de/gerrit/6569 Reviewed-by: Bo Ørsted Andresen <zlin@exherbo.org>
2016-06-12paludis-use-conf.vim: highlight options containing dotsAvatar Markus Rothe -1/+1
Highlight options containing dots, e.g., 'sse4.1'. Change-Id: I3f392d8dd2cb6caa7582547029b74c4f60c15414 Reviewed-on: https://galileo.mailstation.de/gerrit/4559 Retest: Markus Rothe <markusr815@gmail.com> Reviewed-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com> Reviewed-by: Saleem Abdulrasool <compnerd@compnerd.org>
2016-06-06build: Use configured ruby executable instead of `ruby`Avatar Marvin Schmidt -1/+1
Otherwise configure will fail if `ruby` does not point to the same ruby binary as specified by --with-ruby-version: $ readlink -f `which ruby` /usr/x86_64-pc-linux-gnu/bin/ruby2.3 $ ./configure --enable-ruby --with-ruby-version=2.2 --enable-ruby-doc [...] checking for RUBY... yes checking for Ruby installation dir... /usr/x86_64-pc-linux-gnu/lib/ruby/site_ruby/2.2/x86_64-linux checking whether to build the Ruby documentation... yes checking for syntax... configure: error: syntax (http://syntax.rubyforge.org) is needed to build Ruby documentation Change-Id: Idf9edae157b8e442a2d63c0a71097fd01374a9fc
2016-06-06build-sys: update supported ruby versionsAvatar Marc-Antoine Perennou -3/+3
add ruby 2.3 default to ruby 2.3 drop 2.0 and 1.9 which are dead Change-Id: If910a27595e3e92477ce54dec9216293abd6a5df Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2016-05-03Preparation for Bo Ørsted Andresen -1/+16
Change-Id: I33504f64d52c5d9f6dbdd5ca607d1363cbb0c49d
2016-05-03Fix ambiguous redirect error.Avatar Bo Ørsted Andresen -1/+1
Change-Id: I5d8966bf4a6bd69770a6ad964eb0008b644edde5
2016-05-03run_test.sh: Strip path from test programAvatar Marvin Schmidt -1/+1
TEST_SCRIPT_DIR already contains the path, so it should be removed from the test program (seems like automake only includes the paths for test programs with an extension, so TEST_SCRIPT_DIR is still needed for test programs without extension). Otherwise out-of-tree builds fail their python tests because the cleanup/setup scripts aren't found due to the duplicated path: >>> No ../../../python/../../../python/choices_TEST_setup.sh to run It turns out that distcheck only worked with automake versions prior to 1.15 because of the folder structure it used. With the duplicated path it ended up finding the scripts in paludis/python instead of the distributed ones in paludis/paludis-x.y.z/python. automake 1.15 changed the build folder for distcheck from $(distdir)/_build to $(distdir)/_build/sub which caused the distcheck to fail and expose this problem. Change-Id: Ie0627bf507d791db7497eeca383160fa50ccbe18 Reviewed-on: https://galileo.mailstation.de/gerrit/5948 Reviewed-by: Bo Ørsted Andresen <zlin@exherbo.org>
2016-03-17Fail if bzip2 fails.Avatar Bo Ørsted Andresen -1/+4
Change-Id: I40c988c5abf315722259909f4f33e8deb584c0db
2016-02-27cave: correct 054f41f3d4cb3167fb4f6dfb694d5111e36dcb44Avatar Saleem Abdulrasool -3/+1
The change was done on an incorrect reading of the code. The callback is meant for per-package invocation, not per metadata key invocation. Restore the correct behaviour.
2016-02-27paludis: apply missing changes to previous commitAvatar Saleem Abdulrasool -9/+10
The import renamed the methods and class to conform to paludis style. These changes were left out of the original commit.
2016-02-27clean up custom endian detectionAvatar Saleem Abdulrasool -11/+3
Use compiler provided infrastructure for detecting the endian. This has been supported in GCC since 4.6.
2016-02-27args: add some iteration helpersAvatar Saleem Abdulrasool -6/+32
Add some utility methods to aid in increase use of C++11 style for-range loops.
2016-02-19Support emptying a default set exparam array.Avatar Bo Ørsted Andresen -1/+25
Add test to verify an exarray with a non-empty default value can be emptied with an empty require parameter. Change-Id: I633f4baa6eaf297308e08ac3899c8821e88f3591 Reviewed-on: https://galileo.mailstation.de/gerrit/4944 Reviewed-by: Bo Ørsted Andresen <zlin@exherbo.org>
2016-02-16cave: add missing braces for scopingAvatar Saleem Abdulrasool -0/+2
This had never been noticed as it only effects the status message. This was identified by the new GCC warning (-Wmisleading-indentation). src/clients/cave/cmd_generate_metadata.cc:264:17: warning: statement is indented as if it were guarded by... [-Wmisleading-indentation] display_callback(DoneOne()); ^~~~~~~~~~~~~~~~ src/clients/cave/cmd_generate_metadata.cc:246:13: note: ...this 'for' clause, but it is not for (PackageID::MetadataConstIterator m(id->begin_metadata()), m_end(id->end_metadata()); m_end != m; ++m) ^~~
2016-02-16util: add IteratorRange utilityAvatar Saleem Abdulrasool -0/+79
This is a utility class meant to provide a helper which permits returning a range for iteration via a named pair of iterators. It serves as an adapter for creating a C++11 friendly interface for iteration.
2016-02-14switch TLS to C++11 TLS semanticsAvatar Saleem Abdulrasool -28/+7
Rather than using the compiler specific `__thread` mechanism for TLS, use the C++11 standard `thread_local` keyword. This removes the check for the `__thread` keyword and the `PALUDIS_TLS` macro in the single usage site. Take advantage of the fact that `thread_local` can be applied to non-POD types to avoid the heap allocation of the context buffer and letting the loader perform the allocation. This has a slight penalty (an extra function call) on thread construction. However, given that the heap allocation would likely be performed, this will be largely offset by the loss of the allocation.
2016-02-01Avoid PIC errorsAvatar David Leverton -7/+6
ld: .libs/persona.o: relocation R_X86_64_PC32 against undefined symbol `_ZN12_GLOBAL__N_128SystemConfigurationParameterILj70EE8SpellingE' can not be used when making a shared object; recompile with -fPIC