[gentoo-dev] Last-rites: x11-drivers/xf86-input-{keyboard,mouse}
# Piotr Karbowski (2020-05-03) # Obsolete input drivers, use x11-drivers/xf86-input-libinput # or x11-drivers/xf86-input-evdev instead. # Removal in 30 days. x11-drivers/xf86-input-keyboard x11-drivers/xf86-input-mouse For more information see https://gitweb.gentoo.org/data/gentoo-news.git/tree/2020-04-03-deprecation-of-legacy-x11-input-drivers/2020-04-03-deprecation-of-legacy-x11-input-drivers.en.txt -- Piotr. signature.asc Description: OpenPGP digital signature
Re: [gentoo-dev] Cleaning up the installation handbook (Legacy boot / MBR / ...)
On 2020-05-02 22:30, Andreas K. Hüttel wrote: > * Legacy boot and MBR will get kicked out. * > > This is your chance to protest or support. *holdingupprotestsign* Why? There are still a lot of people out there who don't have (U)EFI or don't use GPT. Please keep this information or share why you believe this has to be removed. I assume you are talking about https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Disks and for me it's not a *mess*. Maybe move it to a 'legacy' sub page but it's too early for complete removal from my P.O.V. -- Regards, Thomas Deutschmann / Gentoo Linux Developer fpr: C4DD 695F A713 8F24 2AA1 5638 5849 7EE5 1D5D 74A5 signature.asc Description: OpenPGP digital signature
Re: [gentoo-dev] Cleaning up the installation handbook (Legacy boot / MBR / ...)
On 5/2/2020 16:30, Andreas K. Hüttel wrote: > Hey all, > > our installation handbook is right now something of a mess (in particular > regarding partitioning, bootloader, gpt/uefi, ...) > > I'm hereby volunteering to clean things up. But - I'll go the brutal way: > > * Legacy boot and MBR will get kicked out. * > > This is your chance to protest or support. > > Cheers, > Andreas Keep it. There are still systems sold that boot classic BIOS instead of UEFI, and thus might need this info. If anything, legacy stuff like this can be put into its own section below the more modern approach, with appropriate disclaimers that it is legacy. But odds are likely, it will need to be retained for quite a few more years. -- Joshua Kinard Gentoo/MIPS ku...@gentoo.org rsa6144/5C63F4E3F5C6C943 2015-04-27 177C 1972 1FB8 F254 BAD0 3E72 5C63 F4E3 F5C6 C943 "The past tempts us, the present confuses us, the future frightens us. And our lives slip away, moment by moment, lost in that vast, terrible in-between." --Emperor Turhan, Centauri Republic
[gentoo-dev] Last-rites: media-plugins/gimp-lensfun
# Andreas Sturmlechner (2020-05-03) # Last release in 2015, not compatible with >=media-gfx/gimp-2.10.0 # Masked for removal in 30 days. media-plugins/gimp-lensfun signature.asc Description: This is a digitally signed message part.
Re: [gentoo-portage-dev] [PATCH] phase-functions.sh: do not set PKG_CONFIG_PATH
On 5/3/20 2:31 PM, Mike Gilbert wrote: > Recent pkg-config should have the correct path built in by default. > > Bug: https://bugs.gentoo.org/720866 > Signed-off-by: Mike Gilbert > --- > bin/phase-functions.sh | 4 > 1 file changed, 4 deletions(-) > > diff --git a/bin/phase-functions.sh b/bin/phase-functions.sh > index 709fd7527..90e622e75 100644 > --- a/bin/phase-functions.sh > +++ b/bin/phase-functions.sh > @@ -1019,10 +1019,6 @@ __ebuild_main() { > [[ ${SANDBOX_WRITE/$DISTCC_DIR} = > $SANDBOX_WRITE ]] && \ > addwrite "$DISTCC_DIR" > > - x=LIBDIR_$ABI > - [ -z "$PKG_CONFIG_PATH" -a -n "$ABI" -a -n "${!x}" ] && > \ > - export > PKG_CONFIG_PATH=${EPREFIX}/usr/${!x}/pkgconfig > - > if has noauto $FEATURES && \ > [[ ! -f $PORTAGE_BUILDDIR/.unpacked ]] ; then > echo > Looks good. Please merge. -- Thanks, Zac signature.asc Description: OpenPGP digital signature
[gentoo-dev] Automated Package Removal and Addition Tracker, for the week ending 2020-05-03 23:59 UTC
The attached list notes all of the packages that were added or removed from the tree, for the week ending 2020-05-03 23:59 UTC. Removals: app-editors/atom20200429-12:32 zlogene b152bd2627d app-eselect/eselect-electron20200429-12:43 zlogene 830953ddaaa dev-dotnet/gnome-keyring-sharp 20200428-17:38 mattst88 e18e778c42d dev-python/basemap 20200430-10:12 asturm 532f70d23e4 dev-python/nevow20200427-08:00 zlogene 2890dfe6349 dev-python/ufoLib 20200427-08:15 zlogene a2da8eafc45 dev-util/electron 20200429-12:35 zlogene 10f79d2d9b2 dev-util/fatrace20200427-08:17 zlogene a3766997d75 dev-vcs/bzr 20200427-08:24 zlogene 4d2ed8e7669 dev-vcs/bzr-rewrite 20200427-08:24 zlogene 4d2ed8e7669 dev-vcs/bzrtools20200427-08:24 zlogene 4d2ed8e7669 dev-vcs/bzr-xmloutput 20200427-08:24 zlogene 4d2ed8e7669 dev-vcs/pwclient20200427-08:19 zlogene 0c3e12b8af4 games-puzzle/skoosh 20200428-17:38 mattst88 4ccc1218a05 games-puzzle/world-of-goo 20200428-22:30 chewi d6b04f8dd48 kde-apps/dolphin-plugins-bazaar 20200427-09:03 zlogene f8028001b5e mail-client/mail-notification 20200428-17:39 mattst88 62baa97969a media-libs/libpostproc 20200428-17:37 mattst88 e3e6b70b358 media-sound/galan 20200427-07:55 zlogene 6dc4b3745f0 media-video/syncplay20200427-08:02 zlogene 5b7011e354c net-dns/dnsimple-dyndns 20200427-08:21 zlogene 12faea71a21 net-im/pyicq-t 20200427-07:59 zlogene cf56e109e44 net-irc/redirbot20200427-08:04 zlogene e88bdf03de1 sys-block/kvpm 20200501-22:33 asturm 46a0fa30447 www-client/weboob 20200427-08:12 zlogene 469e9cdf10e x11-libs/gtkglarea 20200427-07:57 zlogene 1216c3771c5 x11-terms/xvt 20200427-08:09 zlogene 2d6d0831897 Additions: acct-group/bind_exporter20200502-23:13 williamh 3c27f27f679 acct-group/consul-template 20200428-17:30 williamh a9f45bcfcc6 acct-group/lldpd20200427-21:01 chutzpah 128706e7577 acct-group/lpadmin 20200428-11:09 polynomial-c 64c4a2cdb57 acct-user/bind_exporter 20200502-23:13 williamh d5ab1225e74 acct-user/consul-template 20200428-17:30 williamh 63dc433f7f6 acct-user/lldpd 20200427-21:04 chutzpah 92a3d5612f0 dev-perl/App-FatPacker 20200503-14:12 kentnl 8241011ae89 dev-perl/Config-MVP-Slicer 20200503-12:44 kentnl 49f28dfc95b dev-perl/Dist-Milla 20200503-13:15 kentnl 5eec6ce8512 dev-perl/Dist-Zilla-Config-Slicer 20200503-12:55 kentnl fd363b9b00c dev-perl/Dist-Zilla-Plugin-CheckChangesHasContent 20200501-01:10 kentnl 6fddd7fc5ee dev-perl/Dist-Zilla-Plugin-CopyFilesFromBuild 20200501-02:20 kentnl aa848b9d6d7 dev-perl/Dist-Zilla-Plugin-CopyFilesFromRelease 20200501-02:38 kentnl 05392c46760 dev-perl/Dist-Zilla-Plugin-GithubMeta 20200502-01:37 kentnl fed3f26b1c2 dev-perl/Dist-Zilla-Plugin-LicenseFromModule20200502-01:46 kentnl bd3116beaf1 dev-perl/Dist-Zilla-Plugin-ModuleBuildTiny 20200502-01:58 kentnl 82fec557849 dev-perl/Dist-Zilla-Plugin-NameFromDirectory20200502-02:09 kentnl 5a9a091753c dev-perl/Dist-Zilla-Plugin-Prereqs-FromCPANfile 20200502-12:28 kentnl 292fe897e75 dev-perl/Dist-Zilla-Plugin-ReadmeAnyFromPod 20200501-02:11 kentnl 1af1970b06e dev-perl/Dist-Zilla-Plugin-ReadmeFromPod20200503-00:48 kentnl f3792ed84d5 dev-perl/Dist-Zilla-Plugin-ReversionOnRelease 20200503-01:22 kentnl a06e7fec05a dev-perl/Dist-Zilla-Plugin-StaticInstall20200503-01:34 kentnl 1517b718b46 dev-perl/Dist-Zilla-Plugin-Test-Compile 20200503-01:45 kentnl 7270ef32d4d dev-perl/Dist-Zilla-Plugin-VersionFromMainModule20200503-02:01 kentnl a6cb1e238df dev-perl
[gentoo-portage-dev] [PATCH] phase-functions.sh: do not set PKG_CONFIG_PATH
Recent pkg-config should have the correct path built in by default. Bug: https://bugs.gentoo.org/720866 Signed-off-by: Mike Gilbert --- bin/phase-functions.sh | 4 1 file changed, 4 deletions(-) diff --git a/bin/phase-functions.sh b/bin/phase-functions.sh index 709fd7527..90e622e75 100644 --- a/bin/phase-functions.sh +++ b/bin/phase-functions.sh @@ -1019,10 +1019,6 @@ __ebuild_main() { [[ ${SANDBOX_WRITE/$DISTCC_DIR} = $SANDBOX_WRITE ]] && \ addwrite "$DISTCC_DIR" - x=LIBDIR_$ABI - [ -z "$PKG_CONFIG_PATH" -a -n "$ABI" -a -n "${!x}" ] && \ - export PKG_CONFIG_PATH=${EPREFIX}/usr/${!x}/pkgconfig - if has noauto $FEATURES && \ [[ ! -f $PORTAGE_BUILDDIR/.unpacked ]] ; then echo -- 2.26.2
Re: [gentoo-dev] Cleaning up the installation handbook (Legacy boot / MBR / ...)
Hi Andreas, > * Legacy boot and MBR will get kicked out. * > This is your chance to protest or support. Please keep. I have several systems with legacy boot and know many people, who prefer/need this too. -- Best, Jonas signature.asc Description: OpenPGP digital signature
Re: [gentoo-dev] [PATCH v2 08/10] ruby-ng-gnome2.eclass: support non-build packages
On Mon, 2020-05-04 at 11:22 +0900, Naohiro Aota wrote: > Some ruby-gnome2 ebuild does not build C bindings, so there is no need to > call each_ruby_{configure,compile} and emake install of this eclass. Check > if "extconf.rb" and "Makefile" to decide what to do. > > Signed-off-by: Naohiro Aota > --- > eclass/ruby-ng-gnome2.eclass | 14 ++ > 1 file changed, 10 insertions(+), 4 deletions(-) > > diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass > index 3ba1a11c21d0..7ffe57d1a9ff 100644 > --- a/eclass/ruby-ng-gnome2.eclass > +++ b/eclass/ruby-ng-gnome2.eclass > @@ -53,6 +53,8 @@ SLOT="0" > # @DESCRIPTION: > # Run the configure script in the subbinding for each specific ruby target. > each_ruby_configure() { > + [[ -e extconf.rb ]] || return > + > ${RUBY} extconf.rb || die "extconf.rb failed" > } > > @@ -60,6 +62,8 @@ each_ruby_configure() { > # @DESCRIPTION: > # Compile the C bindings in the subbinding for each specific ruby target. > each_ruby_compile() { > + [[ -e Makefile ]] || return > + > # We have injected --no-undefined in Ruby as a safety precaution > # against broken ebuilds, but the Ruby-Gnome bindings > # unfortunately rely on the lazy load of other extensions; see bug > @@ -76,11 +80,13 @@ each_ruby_compile() { > # @DESCRIPTION: > # Install the files in the subbinding for each specific ruby target. > each_ruby_install() { > - # Create the directories, or the package will create them as files. > - local archdir=$(ruby_rbconfig_value "sitearchdir") > - dodir ${archdir#${EPREFIX}} /usr/$(get_libdir)/pkgconfig > + if [[ -e Makefile ]]; then > + # Create the directories, or the package will create them as > files. > + local archdir=$(ruby_rbconfig_value "sitearchdir") > + dodir ${archdir#${EPREFIX}} /usr/$(get_libdir)/pkgconfig > > - emake DESTDIR="${D}" install || die "make install failed" > + emake DESTDIR="${D}" install || die "make install failed" Nit: you could remove '|| die' here, and in some other places too. > + fi > > each_fakegem_install > } -- Best regards, Michał Górny signature.asc Description: This is a digitally signed message part
[gentoo-dev] [PATCH v2 02/10] ruby-ng-gnome2.eclass: drop support for
All users of ruby-ng-gnome2 in the official tree are on EAPI=6, so we can drop old EAPI support to reduce "if" branches and make the feature updates simple. Signed-off-by: Naohiro Aota --- eclass/ruby-ng-gnome2.eclass | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass index a6e6fb089c8c..67a5d58fba58 100644 --- a/eclass/ruby-ng-gnome2.eclass +++ b/eclass/ruby-ng-gnome2.eclass @@ -6,14 +6,14 @@ # Ruby herd # @AUTHOR: # Author: Hans de Graaff -# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 +# @SUPPORTED_EAPIS: 6 7 # @BLURB: An eclass to simplify handling of various ruby-gnome2 parts. # @DESCRIPTION: # This eclass simplifies installation of the various pieces of # ruby-gnome2 since they share a very common installation procedure. case "${EAPI:-0}" in - 0|1|2|3|4|5|6) + 6|7) ;; *) die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" @@ -24,22 +24,15 @@ RUBY_FAKEGEM_NAME="${RUBY_FAKEGEM_NAME:-${PN#ruby-}}" RUBY_FAKEGEM_TASK_TEST="" RUBY_FAKEGEM_TASK_DOC="" -inherit ruby-fakegem multilib +inherit ruby-fakegem IUSE="" -# Define EPREFIX if needed -has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= - subbinding=${PN#ruby-} subbinding=${subbinding/-/_} DEPEND="virtual/pkgconfig" ruby_add_bdepend "dev-ruby/pkg-config" -if has "${EAPI:-0}" 0 1 2 3 ; then - S=${WORKDIR}/ruby-gnome2-all-${PV}/${subbinding} -else - RUBY_S=ruby-gnome2-all-${PV}/${subbinding} -fi +RUBY_S=ruby-gnome2-all-${PV}/${subbinding} SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz" HOMEPAGE="https://ruby-gnome2.osdn.jp/; LICENSE="Ruby" -- 2.26.2
[gentoo-dev] [PATCH v2 01/10] ruby-ng-gnome2.eclass: drop support for 0.19.x
The official tree no longer have ruby-gnome2 packages with 0.19.x. Drop support for them. Signed-off-by: Naohiro Aota --- eclass/ruby-ng-gnome2.eclass | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass index ce52f27789a2..a6e6fb089c8c 100644 --- a/eclass/ruby-ng-gnome2.eclass +++ b/eclass/ruby-ng-gnome2.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: ruby-ng-gnome2.eclass @@ -24,7 +24,7 @@ RUBY_FAKEGEM_NAME="${RUBY_FAKEGEM_NAME:-${PN#ruby-}}" RUBY_FAKEGEM_TASK_TEST="" RUBY_FAKEGEM_TASK_DOC="" -inherit ruby-fakegem multilib versionator +inherit ruby-fakegem multilib IUSE="" @@ -32,13 +32,9 @@ IUSE="" has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= subbinding=${PN#ruby-} -if [ $(get_version_component_range "1-2") == "0.19" ]; then - subbinding=${subbinding/%2} -else - subbinding=${subbinding/-/_} - DEPEND="virtual/pkgconfig" - ruby_add_bdepend "dev-ruby/pkg-config" -fi +subbinding=${subbinding/-/_} +DEPEND="virtual/pkgconfig" +ruby_add_bdepend "dev-ruby/pkg-config" if has "${EAPI:-0}" 0 1 2 3 ; then S=${WORKDIR}/ruby-gnome2-all-${PV}/${subbinding} else -- 2.26.2
[gentoo-dev] [PATCH v2 03/10] ruby-ng-gnome2.eclass: fix LICENSE
All ruby-gnome2 packages in the tree is now licensed under LGPL-2.1+. Signed-off-by: Naohiro Aota --- eclass/ruby-ng-gnome2.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass index 67a5d58fba58..42325ce4f33c 100644 --- a/eclass/ruby-ng-gnome2.eclass +++ b/eclass/ruby-ng-gnome2.eclass @@ -35,7 +35,7 @@ ruby_add_bdepend "dev-ruby/pkg-config" RUBY_S=ruby-gnome2-all-${PV}/${subbinding} SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz" HOMEPAGE="https://ruby-gnome2.osdn.jp/; -LICENSE="Ruby" +LICENSE="LGPL-2.1+" SLOT="0" # @FUNCTION: each_ruby_configure -- 2.26.2
[gentoo-dev] [PATCH v2 04/10] ruby-ng-gnome2.eclass: drop subbinding variable
Since we can set RUBY_S only from RUBY_FAKEGEM_NAME, we no longer need $subbinding. Signed-off-by: Naohiro Aota --- eclass/ruby-ng-gnome2.eclass | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass index 42325ce4f33c..4f3f6011501b 100644 --- a/eclass/ruby-ng-gnome2.eclass +++ b/eclass/ruby-ng-gnome2.eclass @@ -28,11 +28,9 @@ inherit ruby-fakegem IUSE="" -subbinding=${PN#ruby-} -subbinding=${subbinding/-/_} DEPEND="virtual/pkgconfig" ruby_add_bdepend "dev-ruby/pkg-config" -RUBY_S=ruby-gnome2-all-${PV}/${subbinding} +RUBY_S=ruby-gnome2-all-${PV}/${RUBY_FAKEGEM_NAME} SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz" HOMEPAGE="https://ruby-gnome2.osdn.jp/; LICENSE="LGPL-2.1+" -- 2.26.2
[gentoo-dev] [PATCH v2 06/10] ruby-ng-gnome2.eclass: add test dependency
Signed-off-by: Naohiro Aota --- eclass/ruby-ng-gnome2.eclass | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass index ac112e006205..a1a84f3045ed 100644 --- a/eclass/ruby-ng-gnome2.eclass +++ b/eclass/ruby-ng-gnome2.eclass @@ -26,10 +26,13 @@ RUBY_FAKEGEM_TASK_DOC="" inherit ruby-fakegem -IUSE="" +IUSE="test" +RESTRICT="!test? ( test )" DEPEND="virtual/pkgconfig" -ruby_add_bdepend "dev-ruby/pkg-config" +ruby_add_bdepend " + dev-ruby/pkg-config + test? ( >=dev-ruby/test-unit-2 )" RUBY_S=ruby-gnome2-all-${PV}/${RUBY_FAKEGEM_NAME} SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz" HOMEPAGE="https://ruby-gnome2.osdn.jp/; -- 2.26.2
[gentoo-dev] [PATCH v2 07/10] ruby-ng-gnome2.eclass: implement common test code
Fold common test code from runy-gnome2 ebuild to this eclass. To support test under virtx, introduce RUBY_GNOME2_NEED_VIRTX variable. Signed-off-by: Naohiro Aota --- eclass/ruby-ng-gnome2.eclass | 23 +++ 1 file changed, 23 insertions(+) diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass index a1a84f3045ed..3ba1a11c21d0 100644 --- a/eclass/ruby-ng-gnome2.eclass +++ b/eclass/ruby-ng-gnome2.eclass @@ -24,7 +24,17 @@ RUBY_FAKEGEM_NAME="${RUBY_FAKEGEM_NAME:-${PN#ruby-}}" RUBY_FAKEGEM_TASK_TEST="" RUBY_FAKEGEM_TASK_DOC="" +# @ECLASS-VARIABLE: RUBY_GNOME2_NEED_VIRTX +# @PRE_INHERIT +# @DESCRIPTION: +# If set to 'yes', the test is run with virtx. Set before inheriting this +# eclass. +: ${RUBY_GNOME2_NEED_VIRTX:="no"} + inherit ruby-fakegem +if [[ ${RUBY_GNOME2_NEED_VIRTX} == yes ]]; then + inherit virtualx +fi IUSE="test" RESTRICT="!test? ( test )" @@ -89,3 +99,16 @@ all_ruby_install() { all_fakegem_install } + +# @FUNCTION: each_ruby_test +# @DESCRIPTION: +# Run the tests for this package. +each_ruby_test() { + [[ -e test/run-test.rb ]] || return + + if [[ ${RUBY_GNOME2_NEED_VIRTX} == yes ]]; then + virtx ${RUBY} test/run-test.rb + else + ${RUBY} test/run-test.rb || die + fi +} -- 2.26.2
[gentoo-dev] [PATCH v2 08/10] ruby-ng-gnome2.eclass: support non-build packages
Some ruby-gnome2 ebuild does not build C bindings, so there is no need to call each_ruby_{configure,compile} and emake install of this eclass. Check if "extconf.rb" and "Makefile" to decide what to do. Signed-off-by: Naohiro Aota --- eclass/ruby-ng-gnome2.eclass | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass index 3ba1a11c21d0..7ffe57d1a9ff 100644 --- a/eclass/ruby-ng-gnome2.eclass +++ b/eclass/ruby-ng-gnome2.eclass @@ -53,6 +53,8 @@ SLOT="0" # @DESCRIPTION: # Run the configure script in the subbinding for each specific ruby target. each_ruby_configure() { + [[ -e extconf.rb ]] || return + ${RUBY} extconf.rb || die "extconf.rb failed" } @@ -60,6 +62,8 @@ each_ruby_configure() { # @DESCRIPTION: # Compile the C bindings in the subbinding for each specific ruby target. each_ruby_compile() { + [[ -e Makefile ]] || return + # We have injected --no-undefined in Ruby as a safety precaution # against broken ebuilds, but the Ruby-Gnome bindings # unfortunately rely on the lazy load of other extensions; see bug @@ -76,11 +80,13 @@ each_ruby_compile() { # @DESCRIPTION: # Install the files in the subbinding for each specific ruby target. each_ruby_install() { - # Create the directories, or the package will create them as files. - local archdir=$(ruby_rbconfig_value "sitearchdir") - dodir ${archdir#${EPREFIX}} /usr/$(get_libdir)/pkgconfig + if [[ -e Makefile ]]; then + # Create the directories, or the package will create them as files. + local archdir=$(ruby_rbconfig_value "sitearchdir") + dodir ${archdir#${EPREFIX}} /usr/$(get_libdir)/pkgconfig - emake DESTDIR="${D}" install || die "make install failed" + emake DESTDIR="${D}" install || die "make install failed" + fi each_fakegem_install } -- 2.26.2
[gentoo-dev] [PATCH v2 09/10] ruby-ng-gnome2.eclass: fold common all_ruby_prepare
Signed-off-by: Naohiro Aota --- eclass/ruby-ng-gnome2.eclass | 22 ++ 1 file changed, 22 insertions(+) diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass index 7ffe57d1a9ff..7beb03e778c8 100644 --- a/eclass/ruby-ng-gnome2.eclass +++ b/eclass/ruby-ng-gnome2.eclass @@ -49,6 +49,28 @@ HOMEPAGE="https://ruby-gnome2.osdn.jp/; LICENSE="LGPL-2.1+" SLOT="0" +ruby-ng-gnome2_all_ruby_prepare() { + # Avoid compilation of dependencies during test. + if [[ -e test/run-test.rb ]]; then + sed -i -e '/system(/s/which make/true/' test/run-test.rb || die + fi + + # work on top directory + pushd .. >/dev/null + + # Avoid native installer + if [[ -e glib2/lib/mkmf-gnome.rb ]]; then + sed -i -e '/native-package-installer/ s:^:#:' \ + -e '/^setup_homebrew/ s:^:#:' glib2/lib/mkmf-gnome.rb || die + fi + + popd >/dev/null +} + +all_ruby_prepare() { + ruby-ng-gnome2_all_ruby_prepare +} + # @FUNCTION: each_ruby_configure # @DESCRIPTION: # Run the configure script in the subbinding for each specific ruby target. -- 2.26.2
[gentoo-dev] [PATCH v2 10/10] ruby-ng-gnome2.eclass: add support for 3.4.x
Update SRC_URI since the primary release site is moved to github. Signed-off-by: Naohiro Aota --- eclass/ruby-ng-gnome2.eclass | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass index 7beb03e778c8..7cd789410b20 100644 --- a/eclass/ruby-ng-gnome2.eclass +++ b/eclass/ruby-ng-gnome2.eclass @@ -13,8 +13,8 @@ # ruby-gnome2 since they share a very common installation procedure. case "${EAPI:-0}" in - 6|7) - ;; + 6) inherit eapi7-ver ;; + 7) ;; *) die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" ;; @@ -43,11 +43,17 @@ DEPEND="virtual/pkgconfig" ruby_add_bdepend " dev-ruby/pkg-config test? ( >=dev-ruby/test-unit-2 )" -RUBY_S=ruby-gnome2-all-${PV}/${RUBY_FAKEGEM_NAME} SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz" HOMEPAGE="https://ruby-gnome2.osdn.jp/; LICENSE="LGPL-2.1+" SLOT="0" +if ver_test -ge "3.4.0"; then + SRC_URI="https://github.com/ruby-gnome/ruby-gnome/archive/${PV}.tar.gz -> ruby-gnome2-${PV}.tar.gz" + RUBY_S=ruby-gnome-${PV}/${RUBY_FAKEGEM_NAME} +else + SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz" + RUBY_S=ruby-gnome2-all-${PV}/${RUBY_FAKEGEM_NAME} +fi ruby-ng-gnome2_all_ruby_prepare() { # Avoid compilation of dependencies during test. -- 2.26.2
[gentoo-dev] [PATCH v2 05/10] ruby-ng-gnome2.eclass: Use [[ instead of [
Signed-off-by: Naohiro Aota --- eclass/ruby-ng-gnome2.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass index 4f3f6011501b..ac112e006205 100644 --- a/eclass/ruby-ng-gnome2.eclass +++ b/eclass/ruby-ng-gnome2.eclass @@ -77,7 +77,7 @@ each_ruby_install() { # Install the files common to all ruby targets. all_ruby_install() { for doc in ../AUTHORS ../NEWS ChangeLog README; do - [ -s "$doc" ] && dodoc $doc + [[ -s "$doc" ]] && dodoc $doc done if [[ -d sample ]]; then insinto /usr/share/doc/${PF} -- 2.26.2
Re: [gentoo-dev] [PATCH v2 06/10] ruby-ng-gnome2.eclass: add test dependency
On Mon, 2020-05-04 at 11:22 +0900, Naohiro Aota wrote: > Signed-off-by: Naohiro Aota > --- > eclass/ruby-ng-gnome2.eclass | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass > index ac112e006205..a1a84f3045ed 100644 > --- a/eclass/ruby-ng-gnome2.eclass > +++ b/eclass/ruby-ng-gnome2.eclass > @@ -26,10 +26,13 @@ RUBY_FAKEGEM_TASK_DOC="" > > inherit ruby-fakegem > > -IUSE="" > +IUSE="test" > +RESTRICT="!test? ( test )" Just in case: do you know that RESTRICT is not stacked, so all ebuilds need to do RESTRICT+= now? -- Best regards, Michał Górny signature.asc Description: This is a digitally signed message part
Re: [gentoo-dev] [PATCH v2 05/10] ruby-ng-gnome2.eclass: Use [[ instead of [
On Mon, 2020-05-04 at 11:22 +0900, Naohiro Aota wrote: > Signed-off-by: Naohiro Aota > --- > eclass/ruby-ng-gnome2.eclass | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass > index 4f3f6011501b..ac112e006205 100644 > --- a/eclass/ruby-ng-gnome2.eclass > +++ b/eclass/ruby-ng-gnome2.eclass > @@ -77,7 +77,7 @@ each_ruby_install() { > # Install the files common to all ruby targets. > all_ruby_install() { > for doc in ../AUTHORS ../NEWS ChangeLog README; do > - [ -s "$doc" ] && dodoc $doc > + [[ -s "$doc" ]] && dodoc $doc Use ${doc} while at it, please. Also quoting is no longer necessary in [[ ]]. > done > if [[ -d sample ]]; then > insinto /usr/share/doc/${PF} -- Best regards, Michał Górny signature.asc Description: This is a digitally signed message part
Re: [gentoo-dev] Last standing Python 2.7 dependency
On 5/3/20 2:58 AM, Fabian Groffen wrote: > On 02-05-2020 23:24:42 -0700, Brian Dolbec wrote: >> On Sun, 3 May 2020 07:28:50 +0200 >> Viktar Patotski wrote: >> >>> Hi all, >>> >>> I'd also like to clean my system and have it Python 2.7 free. Are >>> there any guidelines to check which packages are still using pyton2_7 >>> in my system? >>> >>> Thanks, >>> Viktar >>> >> >> There are both equery and enalyze commands in gentoolkit that can give >> you reports about what pkgs are installed. >> >> equery hasuse >> enalyze analyze [use|pkguse] >> >> for help on them: >> equery -h >> equery hasuse -h >> enalyze -h >> enalyze a -h > > In addition to these great tools, portage-utils' quse might also be > useful: > > % quse python2_7 > ... > > > Thanks, > Fabian > All of the mentioned tools will show if packages have the flag but not necessarily have it active. eix has an option to search the active flag: eix --installed-with-use However, this still skips build-time dependencies that may keep python 2.7 around. The most accurate way to see what's tied to python 2.7 is to pretend to remove it: emerge -pvc dev-lang/python:2.7 Brian signature.asc Description: OpenPGP digital signature
Re: [gentoo-dev] Last standing Python 2.7 dependency
On 02-05-2020 23:24:42 -0700, Brian Dolbec wrote: > On Sun, 3 May 2020 07:28:50 +0200 > Viktar Patotski wrote: > > > Hi all, > > > > I'd also like to clean my system and have it Python 2.7 free. Are > > there any guidelines to check which packages are still using pyton2_7 > > in my system? > > > > Thanks, > > Viktar > > > > There are both equery and enalyze commands in gentoolkit that can give > you reports about what pkgs are installed. > > equery hasuse > enalyze analyze [use|pkguse] > > for help on them: > equery -h > equery hasuse -h > enalyze -h > enalyze a -h In addition to these great tools, portage-utils' quse might also be useful: % quse python2_7 ... Thanks, Fabian -- Fabian Groffen Gentoo on a different level signature.asc Description: PGP signature
Re: [gentoo-dev] Last standing Python 2.7 dependency
On Sun, 3 May 2020 07:28:50 +0200 Viktar Patotski wrote: > Hi all, > > I'd also like to clean my system and have it Python 2.7 free. Are > there any guidelines to check which packages are still using pyton2_7 > in my system? > > Thanks, > Viktar > There are both equery and enalyze commands in gentoolkit that can give you reports about what pkgs are installed. equery hasuse enalyze analyze [use|pkguse] for help on them: equery -h equery hasuse -h enalyze -h enalyze a -h
Re: [gentoo-dev] Last standing Python 2.7 dependency
On Sun, 3 May 2020 08:37:27 -0400 Brian Evans wrote: > On 5/3/20 2:58 AM, Fabian Groffen wrote: > > On 02-05-2020 23:24:42 -0700, Brian Dolbec wrote: > >> On Sun, 3 May 2020 07:28:50 +0200 > >> Viktar Patotski wrote: > >> > >>> Hi all, > >>> > >>> I'd also like to clean my system and have it Python 2.7 free. Are > >>> there any guidelines to check which packages are still using > >>> pyton2_7 in my system? > >>> > >>> Thanks, > >>> Viktar > >>> > >> > >> There are both equery and enalyze commands in gentoolkit that can > >> give you reports about what pkgs are installed. > >> > >> equery hasuse > >> enalyze analyze [use|pkguse] > >> > >> for help on them: > >> equery -h > >> equery hasuse -h > >> enalyze -h > >> enalyze a -h > > > > In addition to these great tools, portage-utils' quse might also be > > useful: > > > > % quse python2_7 > > ... > > > > > > Thanks, > > Fabian > > > > All of the mentioned tools will show if packages have the flag but not > necessarily have it active. Not True: enalyze does strictly installed pkgs analysis, plus has the ability to rebuild package.accept_keywords and package.use files after profile changes or disaster (file loss, etc) > > eix has an option to search the active flag: > > eix --installed-with-use > > However, this still skips build-time dependencies that may keep python > 2.7 around. > > The most accurate way to see what's tied to python 2.7 is to pretend > to remove it: > emerge -pvc dev-lang/python:2.7 > > Brian >