Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 659422 - dev-dotnet/gtk-sharp-2.12.21 : sandbox issue
Summary: dev-dotnet/gtk-sharp-2.12.21 : sandbox issue
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PMASKED
: 664510 680644 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-06-27 18:54 UTC by Toralf Förster
Modified: 2021-05-23 12:36 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.79 KB, text/plain)
2018-06-27 18:54 UTC, Toralf Förster
Details
dev-dotnet:gtk-sharp-2.12.21:20180627-183755.log (dev-dotnet:gtk-sharp-2.12.21:20180627-183755.log,131.36 KB, text/plain)
2018-06-27 18:54 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,177.84 KB, text/plain)
2018-06-27 18:54 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,16.71 KB, application/x-bzip)
2018-06-27 18:54 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,10.58 KB, application/x-bzip)
2018-06-27 18:54 UTC, Toralf Förster
Details
sandbox-15313.log (sandbox-15313.log,3.45 KB, text/plain)
2018-06-27 18:54 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-06-27 18:54:05 UTC
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: mkdir
S: deny

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-developer_20180623-161401

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python3.6 (fallback)
  [3]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems) *
  [2]   ruby25 (with Rubygems)
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.8.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpv dev-dotnet/gtk-sharp
[ebuild  N    ] dev-dotnet/gtk-sharp-2.12.21  USE="-debug"
Comment 1 Toralf Förster gentoo-dev 2018-06-27 18:54:08 UTC
Created attachment 537458 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-06-27 18:54:11 UTC
Created attachment 537460 [details]
dev-dotnet:gtk-sharp-2.12.21:20180627-183755.log
Comment 3 Toralf Förster gentoo-dev 2018-06-27 18:54:14 UTC
Created attachment 537462 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-06-27 18:54:18 UTC
Created attachment 537464 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-06-27 18:54:21 UTC
Created attachment 537466 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-06-27 18:54:24 UTC
Created attachment 537468 [details]
sandbox-15313.log
Comment 7 Mike Auty (RETIRED) gentoo-dev 2018-07-08 16:58:39 UTC
This is because the build doesn't inherit from mono-env, which exports MONO_REGISTRY_PATH before the build (so that it doesn't try writing to /etc/mono/registry).
Comment 8 Kobboi 2018-07-17 09:03:33 UTC
(In reply to Mike Auty from comment #7)
> This is because the build doesn't inherit from mono-env, which exports
> MONO_REGISTRY_PATH before the build (so that it doesn't try writing to
> /etc/mono/registry).

inherit mono-env fixes the build for me
Comment 9 Cynede (RETIRED) gentoo-dev 2018-07-17 10:16:30 UTC
create PR to https://github.com/gentoo/dotnet please
Comment 10 Kobboi 2018-07-17 11:19:52 UTC
Actually, the ebuild already inherits dotnet which inherts mono-env, so not sure why it's not working.
Comment 11 Sophie Hirn 2018-07-29 10:11:15 UTC
(In reply to Kobboi from comment #10)
> Actually, the ebuild already inherits dotnet which inherts mono-env, so not
> sure why it's not working.

It seems like dotnet.eclass provides its own pkg_setup(), overriding that of mono-env.eclass . Adding a call to mono-env_pkg_setup in dotnet_pkg_setup() fixes the problem for me, patch below.

---

diff --git a/eclass/dotnet.eclass b/eclass/dotnet.eclass
index 6ae42a07a6f..02d4c30957a 100644
--- a/eclass/dotnet.eclass
+++ b/eclass/dotnet.eclass
@@ -38,6 +38,7 @@ done
 # @DESCRIPTION:
 # This function set FRAMEWORK.
 dotnet_pkg_setup() {
+	mono-env_pkg_setup
 	for x in ${USE_DOTNET} ; do
 		case ${x} in
 			net45) if use net45; then F="4.5"; fi;;
Comment 12 Brian Evans (RETIRED) gentoo-dev 2018-09-02 16:56:15 UTC
*** Bug 664510 has been marked as a duplicate of this bug. ***
Comment 13 max parmer 2018-12-16 21:47:42 UTC
Should be fixed here:
https://github.com/gentoo/dotnet/commit/bcf8f3e6e0be19140ad7951e6f51db93a980aecc
Comment 14 Guy 2019-02-23 14:43:25 UTC
I encountered this issue on several of my systems.

dev-dotnet/gtk-sharp appears to be called in only as a dependency when net-dns/avahi is built with USE='gtk'. When I set package.use:

>=net-dns/avahi-0.7-r2 -gtk

no other packages seem to be effected. This is to say, nothing  I have installed seems to depend on net-dns/avahi[USE=gtk].

'gtk' is set as part of the "default/linux/amd64/17.0/desktop/plasma (stable)" profile. I haven't checked which other profiles it may appear in.

Because USE="gtk" is applied to a number of installed packages, I only set avahi in package.use as above.

If you require USE='avahi' (I have this set globally in make.conf), then you must unset 'gtk' for net-dns/avahi.
Comment 15 jospezial 2019-02-24 10:20:32 UTC
(In reply to max parmer from comment #13)
> Should be fixed here:
> https://github.com/gentoo/dotnet/commit/
> bcf8f3e6e0be19140ad7951e6f51db93a980aecc

This fixes the bug for me too. Please merge it.
Comment 16 Louis Sautier (sbraz) gentoo-dev 2019-05-18 14:45:58 UTC
*** Bug 680644 has been marked as a duplicate of this bug. ***
Comment 17 Juergen Rose 2019-06-23 07:53:32 UTC
(In reply to jospezial from comment #15)
> (In reply to max parmer from comment #13)
> > Should be fixed here:
> > https://github.com/gentoo/dotnet/commit/
> > bcf8f3e6e0be19140ad7951e6f51db93a980aecc
> 
> This fixes the bug for me too. Please merge it.

This is a patch to /usr/portage/eclass/dotnet.eclass. I could not identify the package to which /usr/portage/eclass/dotnet.eclass is belonging:

root@lynx:/usr/local/portage/dev-dotnet/gtk-sharp(50)# qfile -v /usr/portage/eclass/dotnet.eclass
root@lynx:/usr/local/portage/dev-dotnet/gtk-sharp(51)# 

It would be nice, if the corresponding package could be patched.
Comment 18 Kobboi 2019-06-23 08:47:47 UTC
(In reply to Juergen Rose from comment #17)
> (In reply to jospezial from comment #15)
> > (In reply to max parmer from comment #13)
> > > Should be fixed here:
> > > https://github.com/gentoo/dotnet/commit/
> > > bcf8f3e6e0be19140ad7951e6f51db93a980aecc
> > 
> > This fixes the bug for me too. Please merge it.
> 
> This is a patch to /usr/portage/eclass/dotnet.eclass. I could not identify
> the package to which /usr/portage/eclass/dotnet.eclass is belonging:
> 
> root@lynx:/usr/local/portage/dev-dotnet/gtk-sharp(50)# qfile -v
> /usr/portage/eclass/dotnet.eclass
> root@lynx:/usr/local/portage/dev-dotnet/gtk-sharp(51)# 
> 
> It would be nice, if the corresponding package could be patched.

/usr/portage is the default location of the portage tree...
Comment 19 Juergen Rose 2019-06-23 11:37:38 UTC
(In reply to Kobboi from comment #18)
> (In reply to Juergen Rose from comment #17)
> > (In reply to jospezial from comment #15)
> > > (In reply to max parmer from comment #13)
> > > > Should be fixed here:
> > > > https://github.com/gentoo/dotnet/commit/
> > > > bcf8f3e6e0be19140ad7951e6f51db93a980aecc
> > > 
> > > This fixes the bug for me too. Please merge it.
> > 
> > This is a patch to /usr/portage/eclass/dotnet.eclass. I could not identify
> > the package to which /usr/portage/eclass/dotnet.eclass is belonging:
> > 
> > root@lynx:/usr/local/portage/dev-dotnet/gtk-sharp(50)# qfile -v
> > /usr/portage/eclass/dotnet.eclass
> > root@lynx:/usr/local/portage/dev-dotnet/gtk-sharp(51)# 
> > 
> > It would be nice, if the corresponding package could be patched.
> 
> /usr/portage is the default location of the portage tree...

I.e., there is not any chance to solve this issue by installing a patched package? It is only possible to patch /usr/portage/eclass/dotnet.eclass directly?
Comment 20 Jack 2019-06-23 14:19:29 UTC
I'm not a Gentoo developer, but it does seem like patching the eclass is the best option, because it can work for any package using the eclass.   However, I would think you could patch any package to explicitly do what the eclass change would do.  Depending on where in the build process the change would have an effect, you might need to manually write or modify one of the build steps instead of relying on the default.
Comment 21 jospezial 2020-10-28 11:18:27 UTC
(In reply to max parmer from comment #13)
> Should be fixed here:
> https://github.com/gentoo/dotnet/commit/
> bcf8f3e6e0be19140ad7951e6f51db93a980aecc

I think you should add PR at https://github.com/gentoo/gentoo
Comment 22 jospezial 2020-10-28 12:53:59 UTC
I can't reproduce this. Where has it been fixed in gentoo?

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild  N     ] dev-dotnet/gtk-sharp-2.12.21:2::gentoo  USE="-debug" 2.440 KiB
[ebuild  NS    ]  sys-devel/automake-1.11.6-r3:1.11::gentoo [1.13.4-r2:1.13::gentoo, 1.16.2:1.16::gentoo] USE="(-test%)" 1.068 KiB

Total: 2 packages (1 new, 1 in new slot), Size of downloads: 3.508 KiB

Would you like to merge these packages? [Yes/No] 
>>> Verifying ebuild manifests
>>> Emerging (1 of 2) sys-devel/automake-1.11.6-r3::gentoo
>>> Installing (1 of 2) sys-devel/automake-1.11.6-r3::gentoo
>>> Emerging (2 of 2) dev-dotnet/gtk-sharp-2.12.21::gentoo
>>> Installing (2 of 2) dev-dotnet/gtk-sharp-2.12.21::gentoo
>>> Recording dev-dotnet/gtk-sharp in "world" favorites file...
>>> Jobs: 2 of 2 complete                           Load avg: 1.27, 0.78, 0.55
>>> Auto-cleaning packages...
Comment 23 Larry the Git Cow gentoo-dev 2021-05-23 12:36:53 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab7fb81441611777b70102b20272c068cb2b9669

commit ab7fb81441611777b70102b20272c068cb2b9669
Author:     Jakov Smolic <jakov.smolic@sartura.hr>
AuthorDate: 2021-05-23 12:35:43 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2021-05-23 12:35:43 +0000

    dev-dotnet/gtk-sharp: Remove last-rited pkg
    
    Closes: https://bugs.gentoo.org/769041
    Closes: https://bugs.gentoo.org/509398
    Closes: https://bugs.gentoo.org/645786
    Closes: https://bugs.gentoo.org/509396
    Closes: https://bugs.gentoo.org/643048
    Closes: https://bugs.gentoo.org/573520
    Closes: https://bugs.gentoo.org/659422
    Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
    Signed-off-by: David Seifert <soap@gentoo.org>

 dev-dotnet/gtk-sharp/Manifest                      |  1 -
 .../gtk-sharp-2.12.21-mono-ambiguous-range.patch   | 15 ------
 dev-dotnet/gtk-sharp/gtk-sharp-2.12.21.ebuild      | 62 ----------------------
 dev-dotnet/gtk-sharp/metadata.xml                  |  5 --
 profiles/package.mask                              |  8 ---
 5 files changed, 91 deletions(-)