[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: issue with GUILE_SITE_DIR m4 macro
From: |
Zeeshan Ali (Khattak) |
Subject: |
Re: issue with GUILE_SITE_DIR m4 macro |
Date: |
Mon, 26 Jan 2009 00:25:31 +0200 |
Hi Linas!
On Mon, Jan 26, 2009 at 12:04 AM, Linas Vepstas <address@hidden> wrote:
> Hi,
>
> 2009/1/25 Zeeshan Ali (Khattak) <address@hidden>:
>> Hi!
>> I am using GUILE_SITE_DIR m4 macro in xchat-guile to find out where
>> should i install my guile module. It works perfectly fine except that
>> `make distcheck` fails:
>>
>> test -z "/usr/share/guile/site/xchat-guile" || /bin/mkdir -p
>> "/usr/share/guile/site/xchat-guile"
>> /usr/bin/install -c '../plugin-system.scm'
>> '/usr/share/guile/site/xchat-guile/plugin-system.scm'
>> /usr/bin/install: cannot create regular file
>> `/usr/share/guile/site/xchat-guile/plugin-system.scm': Permission
>> denied
>
> I don't quite understand what you are doing ..
Running `make distcheck`.
> but ...
> what is the file ownership, and file permissions,
> on /usr/share/guile/site/xchat-guile and
> /usr/share/guile/site/xchat-guile/plugin-system.scm
>
> what user are you running as?
The thing is that `make distcheck` is not supposed to actually
install anything anywhere, it creates a temporary directory and
installs things there afaik. I am running everything as normal user
who do not have write access to those directories but that should not
be a problem.
If you look into the Makefile.am, i am also installing the guile
plugin file into the xchat plugin directory but that doesn't cause any
issues:
test -z
"/home/zeenix/downloads/xchat-guile/xchat-guile-0.3/_inst/lib/xchat/plugins"
|| /bin/mkdir -p
"/home/zeenix/downloads/xchat-guile/xchat-guile-0.3/_inst/lib/xchat/plugins"
/bin/sh ./libtool --mode=install /usr/bin/install -c 'guile.la'
'/home/zeenix/downloads/xchat-guile/xchat-guile-0.3/_inst/lib/xchat/plugins/guile.la'
/usr/bin/install -c .libs/guile.so
/home/zeenix/downloads/xchat-guile/xchat-guile-0.3/_inst/lib/xchat/plugins/guile.so
/usr/bin/install -c .libs/guile.lai
/home/zeenix/downloads/xchat-guile/xchat-guile-0.3/_inst/lib/xchat/plugins/guile.la
PATH="$PATH:/sbin" ldconfig -n
/home/zeenix/downloads/xchat-guile/xchat-guile-0.3/_inst/lib/xchat/plugins
Here are the relevant configure.ac lines:
xchatplugindir=${libdir}/xchat/plugins
AC_SUBST(xchatplugindir)
> If you rm -r /usr/share/guile/site/xchat-guile
> before starting the install, doe s the bug go away?
No!
--
Regards,
Zeeshan Ali (Khattak)
FSF member#5124