Re: building libgda RPM as non-root



On 01 Jan 2001 22:24:06 -0800, Gregory Leblanc wrote:
> Hey guys!  I'm trying to build an RPM of libgda from the tarball
> available on ftp.gnome.org.  I made a whole bunch of cleanups to the
> spec file which should have allowed it to build as non-root, and to make
> sure that things got installed where they belong on many RPM
> distributions, not just RH6.x.  However, when I go to do 'rpm -ba
> libgda.spec', I get the following error where the build terminates.
> 
> 
> cd Gnome/GDA/Common && make install
> make[4]: Entering directory `/home/gleblanc/projects/rpm/BUILD/libgda-0.2.2/bindings/perl/Gnome/GDA/Common'
> Warning: You do not have permissions to install into /usr/lib/perl5/site_perl/5.6.0/i386-linux at /usr/lib/perl5/5.6.0/ExtUtils/Install.pm line 62.
> mkdir /usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/Gnome: Permission denied at /usr/lib/perl5/5.6.0/ExtUtils/Install.pm line 112
> make[4]: *** [pure_site_install] Error 255
> make[4]: Leaving directory `/home/gleblanc/projects/rpm/BUILD/libgda-0.2.2/bindings/perl/Gnome/GDA/Common'
> make[3]: *** [install-data-local] Error 2
> make[3]: Leaving directory `/home/gleblanc/projects/rpm/BUILD/libgda-0.2.2/bindings/perl'
> make[2]: *** [install-am] Error 2
> make[2]: Leaving directory `/home/gleblanc/projects/rpm/BUILD/libgda-0.2.2/bindings/perl'
> make[1]: *** [install-recursive] Error 1
> make[1]: Leaving directory `/home/gleblanc/projects/rpm/BUILD/libgda-0.2.2/bindings'
> make: *** [install-recursive] Error 1
> Bad exit status from /var/tmp/rpm-tmp.9716 (%install)
> 
> 
> What I think this says is that libgda is trying to do something bad, and
> install to the 'configure' prefix, and not to the 'make install' prefix.
> I thought I'd take a crack at it, but this directory seems to use the
> perl makefile stuff, which I'm not familiar with.  Does anybody know how
> to fix this, and could take a look at it?  I've attached my diff of the
> spec file, let me know if you see any errors, or have problems with it
> other than the one that I've mentioned above.  Thanks,
> 
yes, it's doing strange things because I haven't learnt yet how to hack on the

Makefiles generated by the h2xs perl utility. But anyway, the perl
bindings are very far from
usable, so the quick solution is to remove the perl directory from the
SUBDIRS variable in
libgda/bindings/Makefile.am, and then re-generate the tarball (with
'make dist').

Cheers





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]