Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 530410 Details for
Bug 655260
rpm.eclass should not inherit eutils for EAPI>=6
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
find_ebuild_with_rpmeclass_which_need_eutils.py
find_rpmeclass_which_need_eutils.py (text/x-python), 3.59 KB, created by
Jonas Stein
on 2018-05-08 09:24:22 UTC
(
hide
)
Description:
find_ebuild_with_rpmeclass_which_need_eutils.py
Filename:
MIME Type:
Creator:
Jonas Stein
Created:
2018-05-08 09:24:22 UTC
Size:
3.59 KB
patch
obsolete
>#!/usr/bin/env python3 > >import gentoopm >import sys > >eutils_f = set(['eqawarn', 'ecvs_clean', 'esvn_clean', > 'egit_clean', 'emktemp', 'edos2unix', 'strip-linguas', > 'make_wrapper', 'path_exists', 'use_if_iuse', 'optfeature' > 'epause', 'ebeep', 'usex', 'einstalldocs', 'in_iuse']) > >desktop_f = set(['make_desktop_entry', 'make_session_desktop', 'domenu', > 'newmenu', '_iconins', 'doicon', 'newicon']) > >epatch_f = set(['epatch', '_epatch_draw_line', 'epatch_user', 'epatch_user_death_notice']) >estack_f = set(['estack_push', 'estack_pop', 'evar_push', 'evar_push_set', 'evar_pop', > 'eshopts_push', 'eshopts_pop', 'eumask_push', 'eumask_pop', 'isdigit']) >ltprune_f = set(['prune_libtool_files']) >multilib_f = set(['has_multilib_profile', 'get_libdir', 'get_abi_var', 'get_abi_CFLAGS', 'get_abi_LDFLAGS', > 'get_abi_CHOST', 'get_abi_CTARGET', 'get_abi_FAKE_TARGETS', 'get_abi_LIBDIR', 'get_install_abis', > 'get_all_abis', 'get_all_libdirs', 'is_final_abi', 'number_abis', 'get_exeext', 'get_libname', > 'get_modname', 'multilib_env', 'multilib_toolchain_setup']) > >preserve_libs_f = set(['preserve_old_lib', 'preserve_old_lib_notify']) >toolchain_funcs_f = set(['tc-getAR', 'tc-getAS', 'tc-getCC', 'tc-getCPP', 'tc-getCXX', > 'tc-getLD', 'tc-getSTRIP', 'tc-getNM', 'tc-getRANLIB', 'tc-getOBJCOPY', > 'tc-getOBJDUMP', 'tc-getF77', 'tc-getFC', 'tc-getGCJ', 'tc-getGO', > 'tc-getPKG_CONFIG', 'tc-getRC', 'tc-getDLLWRAP', 'tc-getBUILD_AR', > 'tc-getBUILD_AS', 'tc-getBUILD_CC', 'tc-getBUILD_CPP', 'tc-getBUILD_CXX', > 'tc-getBUILD_LD', 'tc-getBUILD_STRIP', 'tc-getBUILD_NM', 'tc-getBUILD_RANLIB', > 'tc-getBUILD_OBJCOPY', 'tc-getBUILD_PKG_CONFIG', 'tc-export', 'tc-is-cross-compiler', > 'tc-is-softfloat', 'tc-is-static-only', 'tc-stack-grows-down', 'tc-export_build_env', > 'tc-env_build', 'econf_build', 'tc-ld-is-gold', 'tc-ld-disable-gold', 'tc-has-openmp', > 'tc-check-openmp', 'tc-has-tls', 'tc-arch-kernel', 'tc-arch', 'tc-get-compiler-type', > 'tc-is-gcc', 'tc-is-clang', 'gcc-fullversion', 'gcc-version', 'gcc-major-version', > 'gcc-minor-version', 'gcc-micro-version', 'clang-fullversion', 'clang-version', > 'clang-major-version', 'clang-minor-version', 'clang-micro-version', 'tc-enables-pie', > 'tc-enables-ssp', 'tc-enables-ssp-strong', 'tc-enables-ssp-all', 'gen_usr_ldscript']) > >eapi5inherits = set(['usex']) >eapi6inherits = set(['einstalldocs']) > >myfunctionset = (eutils_f | desktop_f | epatch_f | estack_f | ltprune_f | multilib_f | preserve_libs_f | toolchain_funcs_f) - ( eapi5inherits | eapi6inherits ) > >def eutilsneeded(filename, functionset): > """test, if inherit eutils is needed > """ > # these eutils functions are not provided by eapi 6 already > for fu in functionset: > if fu in open(filename).read(): > print(" " + fu + " is used") > > >def main(): > pm = gentoopm.get_package_manager() > > for p in pm.repositories['gentoo']: > # if (('eutils' in p.inherits) and (p.eapi=='6')): # these pkg do not need inherit eutils > if (('rpm' in p.inherits) and not ('eutils' in p.inherits) and (p.eapi=='6')): ># print(p.key + "-" + p.version) > print(p.path) > eutilsneeded(p.path, myfunctionset) ># print(" ") > >if __name__ == '__main__': > sys.exit(main())
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 655260
: 530410