Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 119929
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Daniel Black <dragonheart@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Brian Preston <brian@preston.se>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
libidn-0.6.1.ebuild-csharp.patch Patch adding a mono USE flag patch Claes Mogren 2006-01-24 12:11 0000 1.18 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 119929 depends on: Show dependency tree
Bug 119929 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-01-22 08:09 0000
Hi,

The  net-dns/libidn fails to merge. After the source if compiled i get a
sandbox violation error:

make[1]: Leaving directory `/var/tmp/portage/libidn-0.6.1/work/libidn-0.6.1'
>>> Source compiled.
--------------------------- ACCESS VIOLATION SUMMARY
---------------------------
LOG FILE = "/var/log/sandbox/sandbox-net-dns_-_libidn-0.6.1-25882.log"

mkdir:     /root/.wapi
--------------------------------------------------------------------------------

------- Comment #1 From Alexander Skwar 2006-01-22 12:05:06 0000 -------
Same here.

Do you have PORTAGE_TMPDIR set to something? I do.


alexander@blatt ~ $ emerge info
Portage 2.1_pre3-r1 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.6-r2,
2.6.15-suspend2-r3.041.via-im-kernel i686)
=================================================================
System uname: 2.6.15-suspend2-r3.041.via-im-kernel i686 Intel(R) Celeron(R) M
processor  1.50GHz
Gentoo Base System version 1.12.0_pre15
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.4-r1, 2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=pentium-m -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=pentium-m -pipe -fomit-frame-pointer"
DISTDIR="/Gentoo/Portage/distfiles"
FEATURES="autoconfig buildpkg ccache collision-protect distlocks sandbox
sfperms strict"
GENTOO_MIRRORS="        http://server.bei.digitalprojects.com/gentoo/  
http://stuff.alexander.skwar.name/gentoo/     
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/  
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/  
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/    
http://distro.ibiblio.org/pub/linux/distributions/gentoo/     
ftp://distro.ibiblio.org/pub/linux/distributions/gentoo       
http://distfiles.gentoo.org/ "
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/Gentoo/Portage/packages"
PORTAGE_TMPDIR="/Gentoo/Portage/build"
PORTDIR="/Gentoo/Portage/tree"
PORTDIR_OVERLAY="/Gentoo/Portage/local-tree/misc
/Gentoo/Portage/local-tree/overlays/gentoo-de"SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 GAPING_SECURITY_HOLE X acpi alsa amd apm arts artswrappersuid async
audiofile avi bash-completion bdf berkdb bitmap-fonts bluetooth bootsplash
bzip2 cairo caps cardbus ccache cdb cdda cddb cdio cdparanoia cdr cdrom cle266
crypt css curl curlwrappers dbus devmap dillo divx4linux dlloader dvd dvdread
emoticon esd ethereal exif expat fam fbcon fbdev ffmpeg firefox fping freetype
gd gdbm gif glut gmp gnokii gnome gstreamer gtk gtk2 gtkhtml hal hpn icc id3
idn imagemagick imap imlib imlib2 insecure-drivers insecure-savers java
javascript jikes jpeg kde kdeenablefinal lcms libedit libwww linuxthreads-tls
logrotate lua lynxkeymap mad madwifi maildir matroska mbox ming mmx mmxext mng
mozilla moznoirc mozsvg mp3 mpeg mpeg2 mpeg4 mplayer multicall ncurses netboot
network new-login nfs nis nls no-old-linux no-suexec noantlr nobcel nobeanutils
nobsf nobsh nocd nocommonslogging nocommonsnet nodrm nogg nogulm nojsch
nojython nolog4j nomac nooro nopri norhino noxalan noxerces nozaptel nptl
nsplugin offensive ogg oggvorbis openal opengl openssh pam_console
pam_timestamp passfile password patented pccts pcmcia pcre perl perlsuid pic
player png pnp qt quicktime rar readline real recode reiserfs ruby samba sdl
sendfile sensord sftp slang sms spell spf sqlite sse sse2 ssl
startup-notification stream subp subtitles suid svg symlink sysfs syslog tiff
transcode truetype truetype-fonts trusted type1-fonts udev underscores
unichrome unicode unsafe usb utf8 uudeview vim vim-pager vlm vorbis wifi
win32codecs wma123 wmf x11vnc xine xinetd xml xml2 xmms xpm xscreensaver xv
xvid xvmc zlib elibc_glibc kernel_linux linguas_de userland_GNU
video_cards_via"
Unset:  ASFLAGS, CTARGET, LC_ALL

------- Comment #2 From Daniel Black 2006-01-22 13:10:53 0000 -------
I'm having trouble reproducing this - can you attach a few more lines of the
output around the sandbox violation.

I've masked this version for the time being.

Sorry for the inconvenience.

------- Comment #3 From Mikolaj Klimek 2006-01-22 13:41:13 0000 -------
> can you attach a few more lines of the output around the sandbox violation.

make[2]: Leaving directory
`/var/tmp/portage/libidn-0.6.1/work/libidn-0.6.1/examples'
Making all in java
make[2]: Entering directory
`/var/tmp/portage/libidn-0.6.1/work/libidn-0.6.1/java'
Making all in gnu
make[3]: Entering directory
`/var/tmp/portage/libidn-0.6.1/work/libidn-0.6.1/java/gnu'
Making all in inet
make[4]: Entering directory
`/var/tmp/portage/libidn-0.6.1/work/libidn-0.6.1/java/gnu/inet'
Making all in encoding
make[5]: Entering directory
`/var/tmp/portage/libidn-0.6.1/work/libidn-0.6.1/java/gnu/inet/encoding'
echo timestamp > classdist_noinst.stamp
make[5]: Leaving directory
`/var/tmp/portage/libidn-0.6.1/work/libidn-0.6.1/java/gnu/inet/encoding'
make[5]: Entering directory
`/var/tmp/portage/libidn-0.6.1/work/libidn-0.6.1/java/gnu/inet'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory
`/var/tmp/portage/libidn-0.6.1/work/libidn-0.6.1/java/gnu/inet'
make[4]: Leaving directory
`/var/tmp/portage/libidn-0.6.1/work/libidn-0.6.1/java/gnu/inet'
make[4]: Entering directory
`/var/tmp/portage/libidn-0.6.1/work/libidn-0.6.1/java/gnu'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory
`/var/tmp/portage/libidn-0.6.1/work/libidn-0.6.1/java/gnu'
make[3]: Leaving directory
`/var/tmp/portage/libidn-0.6.1/work/libidn-0.6.1/java/gnu'
Making all in .
make[3]: Entering directory
`/var/tmp/portage/libidn-0.6.1/work/libidn-0.6.1/java'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory
`/var/tmp/portage/libidn-0.6.1/work/libidn-0.6.1/java'
Making all in misc
make[3]: Entering directory
`/var/tmp/portage/libidn-0.6.1/work/libidn-0.6.1/java/misc'
echo timestamp > classdist_noinst.stamp
make[3]: Leaving directory
`/var/tmp/portage/libidn-0.6.1/work/libidn-0.6.1/java/misc'
make[2]: Leaving directory
`/var/tmp/portage/libidn-0.6.1/work/libidn-0.6.1/java'
Making all in csharp
make[2]: Entering directory
`/var/tmp/portage/libidn-0.6.1/work/libidn-0.6.1/csharp'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/var/tmp/portage/libidn-0.6.1/work/libidn-0.6.1/csharp'
make[2]: Entering directory `/var/tmp/portage/libidn-0.6.1/work/libidn-0.6.1'
make[2]: Leaving directory `/var/tmp/portage/libidn-0.6.1/work/libidn-0.6.1'
make[1]: Leaving directory `/var/tmp/portage/libidn-0.6.1/work/libidn-0.6.1'
>>> Source compiled.
--------------------------- ACCESS VIOLATION SUMMARY
---------------------------
LOG FILE = "/var/log/sandbox/sandbox-net-dns_-_libidn-0.6.1-18571.log"

mkdir:     /root/.wapi
--------------------------------------------------------------------------------

Ofcourse mkdir /root/.wapi solve the problem but this is very ugly way.

Best regards, rasheed.

------- Comment #4 From Peter Johanson (RETIRED) 2006-01-22 13:42:23 0000 -------
Inherit the mono eclass, and all your worries will wash away. Almost as good as
sitting on the beach with the crossword puzzle. Almost, but not quite.

------- Comment #5 From Neil Bothwick 2006-01-22 14:50:18 0000 -------
PORTAGE_TMPDIR seems to be the key. I've had this error on two boxes with it
set (one amd64 and one ppc). Two other boxes without PORTAGE_TMPDIR set emerged
it with no problem.

------- Comment #6 From Rumen Yotov 2006-01-22 22:34:43 0000 -------
Hi,
Just downgraded to 'libidn-0.5.X' because of the mask.
No problems when emerging version 0.6.1.
PORTAGE_TMPDIR=/var/tmp in /etc/make.conf (see emerge --info too).
emerge --info goes below:
...BEGIN...
Gentoo Base System version 1.12.0_pre15
Portage 2.1_pre3-r1 (!/usr/portage/profiles/default-linux/x86/2005.1,
gcc-3.4.5, glibc-2.3.6-r2, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 AMD Athlon(tm) XP 2200+
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/splash /etc/terminfo
/etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/var/portage/distfiles"
FEATURES="autoconfig buildpkg ccache collision-protect distlocks enotice gpg
sandbox sfperms userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.ITDNet.net/gentoo
http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://files.gentoo.gr
http://mirror.etf.bg.ac.yu/gentoo http://mirror.datapipe.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/var/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow X X509 a52 aac acl acpi alsa apache2 audiofile avi
bash-completion berkdb bitmap-fonts bzip2 caps cdb cdr crypt cups curl dvd dvdr
eds encode esd ethereal evo exif expat fam ffmpeg flac foomaticdb freetype gd
gif glut gmp gnutls gstreamer gtk gtk2 gtkhtml hal iconv idn imagemagick imap
imlib ipv6 ithreads javascript jpeg kdexdeltas lcms libg++ libwww mad maildir
matroska mikmod mime mmx mng motif mozilla mp3 mpeg mysql ncurses nls nptl
nvidia ogg oggvorbis opengl oss pam pcre pdflib perl png posix postgres ppds
prelude python quicktime readline recode ruby sdl skey slang speex spell sse
ssl svg symlink tcltk tcpd theora threads tiff transcode truetype
truetype-fonts type1-fonts udev unicode usb vorbis win32codecs xine xml xml2
xsl xv xvid zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
...END...

------- Comment #7 From Peter Johanson (RETIRED) 2006-01-22 23:47:16 0000 -------
Perhaps I wasn't verbose enough:

libidn now seems to have a csharp binding. Any package that needs to build C#
with mono needs to inherit the mono.eclass, as this sets a few *key* env.
variables that determine where the mono runtime stores some temporary
variables. By default, they are in $HOMEDIR/.wapi, which is why this error
shows up. Folks with FEATURES="userpriv" typically don't run into it since
HOMEDIR is overridden then to exist in ${T}.

Furthermore, probably libidn should be set to only build the C# bits if
USE="mono", rather than a non-deterministic 'we'll build it if mono happens to
be installed". Just a suggestion.

------- Comment #8 From Claes Mogren 2006-01-23 14:24:49 0000 -------
Confirmed. I changed the inherit line in the ebuild to read "inherit java-pkg
mono" and now it compiled without the sandbox violation. As Peter said, mono
should be in the IUSE.

/CM (~amd64 with USE="mono ...")

------- Comment #9 From Daniel Black 2006-01-24 09:15:46 0000 -------
Thanks Peter et al

I see the c# stuff.

Looks like pnet or mono will work.

if someone would like to submit/commit an appropriate patch including
dependencies, use flags, and configure lines I'd be really grateful. (I'm a C#
ingnoramus)

From ./configure
--enable-csharp[=IMPL]  choose preferred C# implementation (pnet or mono)

------- Comment #10 From Claes Mogren 2006-01-24 12:11:41 0000 -------
Created an attachment (id=78024) [details]
Patch adding a mono USE flag

I gave it a shot. Have tried emergeing with and without the mono USE flag set,
and it seems to work. At least you only get the .dll compiled and installed if
you USE="mono".

I'm a newbie with this, and if the patch isn't working, here's a link to the
modified ebuild: http://www.acc.umu.se/~cm/libidn-0.6.1.ebuild

------- Comment #11 From Daniel Black 2006-01-25 13:59:05 0000 -------
Peter - still waiting for the beach :-)
Claes - good patch - applied and commited

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug