aboutsummaryrefslogtreecommitdiff
path: root/ruby
AgeCommit message (Collapse)AuthorLines
2020-10-16modernize: Mark overriding functions as suchAvatar Marvin Schmidt -2/+2
Done using clang-tidy's `modernize-use-override` check
2016-12-15ruby: Add missing linkage to Ruby libraryAvatar Michał Górny -0/+1
2016-12-14ruby: Fix mismatched tag (NFC)Avatar Marvin Schmidt -1/+1
/home/marv/devel/paludis/ruby/dep_spec.cc:169:5: warning: 'WrappedSpec' defined as a class template here but previously declared as a struct template [-Wmismatched-tags] class WrappedSpec : ^ /home/marv/devel/paludis/ruby/dep_spec.cc:137:25: note: did you mean class here? template <typename> struct WrappedSpec; ^~~~~~ class 1 warning generated. Change-Id: I0d56e26c7375e5ec6684a1ed8a6b21eeba649999
2016-12-13build: Use the imported target for linking to pthreadAvatar Heiko Becker -1/+1
Our required cmake version is new enough (>=3.1) and usage of the imported target is recommended by cmake's documentation [1]. Furthermore, according to the docs THREADS_PREFER_PTHREAD_FLAG can only be used with the imported target. [1] https://cmake.org/cmake/help/v3.7/module/FindThreads.html
2016-12-05build: Install bash scripts as 'PROGRAMS'Avatar Heiko Becker -2/+2
...to make them executable.
2016-11-30build: remove autotools based buildAvatar Saleem Abdulrasool -155/+0
There can be only one!
2016-11-30build: introduce cmake based build systemAvatar Saleem Abdulrasool -0/+103
2016-01-17build: cleanup and simplify flags handlingAvatar Saleem Abdulrasool -1/+1
The ruby headers use some idioms which generate warnings when building paludis. Rather than assuming that the associated -Wno-* flags are supported by the compiler frontend, explicitly check for the support when necessary (building the Ruby bindings). This slightly speeds up the build when ruby is disabled, but more importantly, will prevent the accidental usage of these flags more broadly.
2016-01-17ruby: remove a couple of unused functionsAvatar Saleem Abdulrasool -12/+0
Identified by gcc -Wunused-functions.
2016-01-17build: unconditionally use visibility flagsAvatar Saleem Abdulrasool -2/+1
Remove the last remnants of icc support as the current released versions do not support C++11 and we intend to use clang as the alternate compiler. This cleans up the compile flags to remove the now obsoleted definition (-DPALUDIS_USE_VISIBILITY), the unnecessary compile time checks, and the handling for ICC in the macros.
2016-01-17build: eradicate PALUDIS_CXXFLAGS_WITHOUT_PEDANTICAvatar Saleem Abdulrasool -8/+2
This variable was meant to home the CXXFLAGS without the warning options. However, this has not been the case for some time now as CHECK_CXXFLAG will implicitly modify PALUDIS_CXXFLAGS, resulting in the flags being pushed down anyways and duplicating a set of warning flags. Simply use PALUDIS_CXXFLAGS instead.
2015-04-19ruby: fix a copy-paste errorAvatar Saleem Abdulrasool -1/+1
Update the error message string for FetchActionFailure.
2015-03-12ruby: Fix ConfigAction, and {Info,Config}Action testsAvatar David Leverton -10/+10
Fallout from 22e3824 and c5223a1.
2015-03-12ruby: Remove duplicationAvatar David Leverton -12/+0
2015-03-05ruby: fix stupid typoAvatar Saleem Abdulrasool -2/+2
2015-03-02ruby: use some TMP to reduce redundancyAvatar Saleem Abdulrasool -287/+196
The BoxedAction and BoxedOptions classes abstract out the details of how to box and unbox a type across the C++/Ruby boundary. Traits are used to provide the type specific information (associating the Action and the Options classes, as well as the boxed type instance and name spellings). The result is that the common patterns are abstracted out as methods which can be materialised as necessary with compile time checking for cases of methods exposed directly (e.g. destinations() on certain options classes).
2015-03-02ruby: hand roll ConfigActionAvatar Saleem Abdulrasool -27/+110
This removes the last user of the EasyAction template in favour of hand expanded actions. The utility of the EasyAction template had run out due cross make InfoAction no longer compatible with it either. There is a single user of it at this point. Just expand it out. If it becomes useful again in the future, it can be resurrected.
2015-03-02ruby: hand roll InfoActionAvatar Saleem Abdulrasool -10/+114
Rather than relying on EasyAction, just expand the construction of the InfoAction for the bindings. This will be expanded soon to support cross compilation.
2015-03-02ruby: remove unused conversion functionAvatar Saleem Abdulrasool -15/+0
The conversion function was unused by the bindings. NFC.
2014-09-17Remove 'breaks Portage' codeAvatar Ciaran McCreesh -37/+1
2014-08-28Fix assorted build failures with clangAvatar David Leverton -1/+4
../../../paludis/paludis/util/sequence-impl.hh:162:21: error: expected expression _imp->list.sort<const C_ &>(c); - just a missing "template" ../../paludis/paludis/util/visitor.hh:322:24: error: no viable overloaded '=' result = _unwrapped_visitor.visit(t); [snip] ../../paludis/paludis/mask.cc:43:17: note: in instantiation of function template specialization 'paludis::DeclareAbstractAcceptMethods<paludis::Mask, paludis::TypeListEntry<paludis::UserMask, paludis::TypeListEntry<paludis::UnacceptedMask, paludis::TypeListEntry<paludis::RepositoryMask, paludis::TypeListEntry<paludis::UnsupportedMask, paludis::TypeListTail> > > > >::make_accept_returning<<lambda at ../../paludis/paludis/mask.cc:44:9>, <lambda at ../../paludis/paludis/mask.cc:45:9>, <lambda at ../../paludis/paludis/mask.cc:46:9>, <lambda at ../../paludis/paludis/mask.cc:47:9> >' requested here return mask.make_accept_returning( /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/g++-v4/bits/basic_string.h:543:7: note: candidate function not viable: 'this' argument has type 'const std::basic_string<char>', but method is not marked const operator=(const basic_string& __str) [snip] - template argument inferred as const and then used for temporary variable that gets assigned, so needs to be forced non-const In file included from ../../../../paludis/paludis/repositories/e/e_choice_value.cc:24: ../../../../paludis/paludis/util/pool-impl.hh:171:23: error: call to function 'operator==' that is neither visible in the template definition nor found by argument-dependent lookup return _value == static_cast<const ConcretePoolKey<T_> &>(other)._value; [snip] ../../../../paludis/paludis/repositories/e/e_choice_value.cc:147:10: note: 'operator==' should be declared prior to the call site or in namespace 'paludis::erepository' bool operator== (const EChoiceValueParams & a, const EChoiceValueParams & b) - see http://clang.llvm.org/compatibility.html#dep_lookup /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/g++-v4/functional:1925:2: error: no matching function for call to object of type 'std::_Bind<std::_Mem_fn<void (paludis::resolver::Decider::*)(const std::shared_ptr<const paludis::resolver::Resolution> &, const std::shared_ptr<const paludis::resolver::Constraint> &, const std::shared_ptr<const paludis::resolver::Decision> &) __attribute__((noreturn)) const> (paludis::resolver::Decider *, std::shared_ptr<paludis::resolver::Resolution>, std::shared_ptr<const paludis::resolver::Constraint>, std::shared_ptr<paludis::resolver::Decision>)>' (*_Base::_M_get_pointer(__functor))( [snip] ../../../paludis/paludis/resolver/decider.cc:936:65: note: in instantiation of function template specialization 'std::function<void ()>::function<std::_Bind<std::_Mem_fn<void (paludis::resolver::Decider::*)(const std::shared_ptr<const paludis::resolver::Resolution> &, const std::shared_ptr<const paludis::resolver::Constraint> &, const std::shared_ptr<const paludis::resolver::Decision> &) __attribute__((noreturn)) const> (paludis::resolver::Decider *, std::shared_ptr<paludis::resolver::Resolution>, std::shared_ptr<const paludis::resolver::Constraint>, std::shared_ptr<paludis::resolver::Decision>)> >' requested here resolution->decision()->accept(WrongDecisionVisitor(std::bind( /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/g++-v4/functional:1211:2: note: candidate template ignored: substitution failure [with _Args = <>]: no matching function for call to object of type 'std::_Mem_fn<void (paludis::resolver::Decider::*)(const std::shared_ptr<const paludis::resolver::Resolution> &, const std::shared_ptr<const paludis::resolver::Constraint> &, const std::shared_ptr<const paludis::resolver::Decision> &) __attribute__((noreturn)) const>' operator()(_Args&&... __args) [snip] - not sure why it doesn't like this, but its nicer with the anonymous function anyway ../../paludis/python/dep_spec.cc:1409:16: error: explicit instantiation of 'paludis::WrappedForwardIterator' must occur in namespace 'paludis' template class WrappedForwardIterator<PythonCompositeDepSpec::ConstIteratorTag, ../../paludis/python/exception.cc:32:16: error: explicit instantiation of 'paludis::Singleton' must occur in namespace 'paludis' template class Singleton<ExceptionRegister>; ../../paludis/ruby/paludis_ruby.cc:38:16: error: explicit instantiation of 'paludis::Singleton' must occur in namespace 'paludis' template class Singleton<RegisterRubyClass>; - self-explanatory
2014-08-27Fix build with -Werror=format-securityAvatar David Leverton -14/+14
Fixes: Gentoo#521326
2013-09-08Newer ruby haxxAvatar Ciaran McCreesh -4/+5
2013-08-08Update playman for repositories.xml moveAvatar David Leverton -1/+1
Net::HTTP doesn't follow the redirect.
2013-05-23Move code aroundAvatar Ciaran McCreesh -1/+0
2013-05-22Use nullptrAvatar Ciaran McCreesh -5/+3
2013-05-22Switch to std mutex and condition_variableAvatar Ciaran McCreesh -3/+1
2013-05-22Use std::threadAvatar Ciaran McCreesh -2/+1
2013-03-24Fix Python and Ruby for 0e62614 and .gitignore new testAvatar David Leverton -12/+75
2012-11-16Fix test failsAvatar Ciaran McCreesh -1/+1
2012-11-16Introduce SlotUnknownRewrittenRequirementAvatar David Leverton -5/+19
2012-10-20ruby: remove find_unamanged_filesAvatar Saleem Abdulrasool -102/+0
This demo is no longer useful given cave print-unmanaged-files Signed-off-by: Saleem Abdulrasool <compnerd@compnerd.org>
2012-09-14Docs fixAvatar Ciaran McCreesh -1/+1
2012-09-14Refactor to allow subslotsAvatar Ciaran McCreesh -17/+46
2012-08-05Allow skipping uninstall phases.Avatar Ciaran McCreesh -1/+2
Fixes: ticket:1251
2012-05-12Add AtMostOneDepSpecAvatar Ciaran McCreesh -0/+20
2012-03-03Reorder CXXFLAGS to make warnings go awayAvatar Ciaran McCreesh -2/+2
2012-02-19ruby: Fix build with ruby 1.9Avatar Marc-Antoine Perennou -5/+5
And btw, refactor a little 1.8 autotools chain Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2012-01-01Change URLs to exherbo.orgAvatar Ciaran McCreesh -15/+15
2011-10-01(ruby) Expose mask tokensAvatar David Leverton -0/+64
2011-09-20Docs fixAvatar Ciaran McCreesh -1/+1
2011-09-14Maintainers as objectsAvatar Ciaran McCreesh -1/+16
2011-09-04Contents is not a MetadataKeyAvatar Ciaran McCreesh -41/+2
2011-09-04Remove PackageID::contents_keyAvatar Ciaran McCreesh -18/+4
2011-09-04PackageID::contentsAvatar Ciaran McCreesh -3/+32
2011-08-06Better tracking of choice originsAvatar Ciaran McCreesh -18/+35
2011-07-06Wrap PackageID::uniquely_identifying_specAvatar Ciaran McCreesh -0/+27
2011-06-16Remove accept_keywords_keyAvatar Ciaran McCreesh -2/+0
2011-06-16Kill NoConfigEnvironment with fireAvatar Ciaran McCreesh -153/+0
2011-06-16Don't use NoConfigEnvironment for testsAvatar Ciaran McCreesh -136/+72