[nem-bug]
[Nemerle 0000651]: configure skript, gacutil_base variable
feedback at nemerle.org
feedback at nemerle.org
Sun Apr 9 17:42:13 CEST 2006
The following issue has been RESOLVED.
======================================================================
<http://nemerle.org/bugs/view.php?id=651>
======================================================================
Reported By: towa
Assigned To: malekith
======================================================================
Project: Nemerle
Issue ID: 651
Category: Other
Reproducibility: always
Severity: minor
Priority: normal
Status: resolved
Resolution: not an issue
Fixed in Version:
======================================================================
Date Submitted: 04-07-2006 23:48 CEST
Last Modified: 04-09-2006 17:42 CEST
======================================================================
Summary: configure skript, gacutil_base variable
Description:
I'm not sure if the configure skript works properly.
I want suggest this following patch:
565c565
< gacutil_base="${monopath}gacutil -root \$(DESTDIR)$mono_libdir"
---
> gacutil_base="${monopath}gacutil -root
\$(DESTDIR)$mono_libdir/mono/"
This is how i could install nemerle.
see also here: http://bugs.gentoo.org/show_bug.cgi?id=126508
======================================================================
----------------------------------------------------------------------
malekith - 04-08-06 09:17
----------------------------------------------------------------------
It seems to be gentoo specific. According to the mono svn sources and the
help for gacutil:
-root <ROOTDIR>
Used by developers integrating this with automake tools or
packaging tools
that require a prefix directory to be specified. The root
represents the
"libdir" component of a prefix (typically prefix/lib).
so nemerle configure script sets it right.
Could you also post output of:
ls /usr/lib/mono
ls /usr/lib/mono/mono
----------------------------------------------------------------------
towa - 04-08-06 10:01
----------------------------------------------------------------------
So the gentoo configuration of gacutil is to blame?
towa at solaris ~ $ ls /usr/lib/mono/mono
gac nemerle
towa at solaris ~ $ ls /usr/lib/mono/
1.0 compat-1.0 dbus-sharp gecko-sharp mono nemerle
2.0 compat-2.0 gac gtk-sharp monodoc xbuild
----------------------------------------------------------------------
towa - 04-08-06 10:52
----------------------------------------------------------------------
Some more infos:
This is the command, that fails:
gacutil -root
/var/tmp/portage/nemerle-0.9.2/image//usr/lib/pkgconfig/../../lib -package
nemerle -i out.stage3/Nemerle.dll
As you see, gentoo wants to install all file in a different DESTDIR.
Maybe this causes the problem.
#> make DESTDIR=/var/tmp/portage/nemerle-0.9.2/image/ install
fails.
#> make install
works, but confuses the gentoo package management system.
----------------------------------------------------------------------
malekith - 04-08-06 17:51
----------------------------------------------------------------------
Well, there should be no /usr/lib/mono/mono at all.
Could you try to run ./configure ... --libdir=/usr/lib ... and see if then
make install with DESTDIR works.
----------------------------------------------------------------------
towa - 04-08-06 19:47
----------------------------------------------------------------------
#> sh configure --libdir=/usr/lib --prefix=/usr
#> make
#> make DESTDIR=/var/tmp/portage/nemerle-0.9.2/image/ install
succeeds.
Here are the both versions of the config.mak:
original:
---
# Generated by configure
Q = @
PACKAGE = nemerle
VERSION = 0.9
REVISION = 2
SVN_REV =
NET_ENGINE = /usr/bin/mono
NET_VERSION = 2.0
NET_FLAGS =
DLL_PATH =
NGEN = true
DASM = monodis
ASM = ilasm2
CSC = gmcs
PEVERIFY =
TIME =
ANTLR =
MSBUILD = xbuild
MONO_GACUTIL = yes
NANT =
NANT_DIR =
NUNIT_CONSOLE =
NUNIT_LIB_FLAG =
NEM_FLAGS = -bar+ -def:RUNTIME_MONO
PYTHON = python2.3
XSPP =
XSLT =
INSTALL = install
prefix = /usr
BINDIR = /usr/bin
SCRDIR = /usr/bin
MANDIR = /usr/share/man/man1
LIBDIR = /usr/lib
PKGCONFIGDIR = /usr/lib/pkgconfig
GACUTIL_COMMAND = gacutil -root $(DESTDIR)/usr/lib/pkgconfig/../../lib
-package nemerle -i
GACUTIL_UNINSTALL_COMMAND = gacutil -root
$(DESTDIR)/usr/lib/pkgconfig/../../lib -package nemerle -u
NGEN_GAC = true
---
and with prefix and libdir set:
---
# Generated by configure
Q = @
PACKAGE = nemerle
VERSION = 0.9
REVISION = 2
SVN_REV =
NET_ENGINE = mono
NET_VERSION = 2.0
NET_FLAGS =
DLL_PATH =
NGEN = true
DASM = monodis
ASM = ilasm2
CSC = gmcs
PEVERIFY =
TIME =
ANTLR =
MSBUILD = xbuild
MONO_GACUTIL = yes
NANT =
NANT_DIR =
NUNIT_CONSOLE =
NUNIT_LIB_FLAG =
NEM_FLAGS = -bar+ -def:RUNTIME_MONO
PYTHON = python2.3
XSPP =
XSLT =
INSTALL = install
prefix = /usr
BINDIR = /usr/bin
SCRDIR = /usr/bin
MANDIR = /usr/man/man1
LIBDIR = /usr/lib
PKGCONFIGDIR = /usr/lib/pkgconfig
GACUTIL_COMMAND = gacutil -root $(DESTDIR)/usr/lib -package nemerle -i
GACUTIL_UNINSTALL_COMMAND = gacutil -root $(DESTDIR)/usr/lib -package
nemerle -u
NGEN_GAC = true
---
really strange
----------------------------------------------------------------------
towa - 04-08-06 19:55
----------------------------------------------------------------------
one more fact:
#> gacutil -root /var/tmp/portage/nemerle-0.9.2/image//usr/lib/ -package
nemerle -i out.stage3/Nemerle.dll
succseeds, but
#> gacutil -root
/var/tmp/portage/nemerle-0.9.2/image//usr/lib/pkgconfig/../../lib/
-package nemerle -i out.stage3/Nemerle.dll
fails. It seems to be a bug in gacutil.
----------------------------------------------------------------------
malekith - 04-08-06 22:30
----------------------------------------------------------------------
As this can be easy fixed in the gentoo ebuild file, so I guess you're OK
with me closing this issue?
----------------------------------------------------------------------
towa - 04-08-06 23:57
----------------------------------------------------------------------
Yes, it was asy the patch the ebuild file.
I am still confused, why
/var/tmp/portage/nemerle-0.9.2/image//usr/lib/
is better than
/var/tmp/portage/nemerle-0.9.2/image//usr/lib/pkgconfig/../../lib/
but you can close this issue anyway.
----------------------------------------------------------------------
malekith - 04-09-06 17:42
----------------------------------------------------------------------
I guess the problem was that there was no pkgconfig directory yet, and in
the second build there was one. Or something like that.
Issue History
Date Modified Username Field Change
======================================================================
04-07-06 23:48 towa New Issue
04-08-06 09:17 malekith Note Added: 0001172
04-08-06 09:17 malekith Status new => feedback
04-08-06 09:17 malekith Description Updated
04-08-06 10:01 towa Note Added: 0001173
04-08-06 10:52 towa Note Added: 0001174
04-08-06 17:51 malekith Note Added: 0001176
04-08-06 19:47 towa Note Added: 0001178
04-08-06 19:55 towa Note Added: 0001179
04-08-06 22:30 malekith Note Added: 0001180
04-08-06 23:57 towa Note Added: 0001181
04-09-06 17:42 malekith Status feedback => resolved
04-09-06 17:42 malekith Resolution open => not an issue
04-09-06 17:42 malekith Assigned To => malekith
04-09-06 17:42 malekith Note Added: 0001182
======================================================================
More information about the bugs
mailing list