Bruno, Out of curiosity, is it possible for FOSSology to be installed with non-root access?
In some situations, users don't have full access to the underlying OS - so being able to install as non-root is highly advantageous From: Bruno Cornec <[email protected]> To: [email protected] Date: 02/18/2009 09:53 AM Subject: [FOSSology] RPM Status (was:Re: RHEL5 Install Part 2) Sent by: [email protected] Channing Benson said on Fri, Jan 30, 2009 at 04:39:20PM -0500: > Here's the continuation of my experience installing FOSSology on RHEL5.3. THanks to those hints + other tests I made, here is a status of my progress on RPMs for centos-5. During build, I find the following messages: Installing configuration files... if [ ! -e /var/tmp/fossology-trunk-1.centos5-root-pb/etc/fossology ] ; then \ mkdir -p /var/tmp/fossology-trunk-1.centos5-root-pb/etc/fossology; \ fi NOTE: using default version for /var/tmp/fossology-trunk-1.centos5-root-pb/etc/fossology/Depth.conf NOTE: using default version for /var/tmp/fossology-trunk-1.centos5-root-pb/etc/fossology/RepPath.conf NOTE: using default version for /var/tmp/fossology-trunk-1.centos5-root-pb/etc/fossology/Hosts.conf NOTE: using default version for /var/tmp/fossology-trunk-1.centos5-root-pb/etc/fossology/Proxy.conf if [ ! -f /var/tmp/fossology-trunk-1.centos5-root-pb/etc/fossology/Db.conf -o "" ] ; then \ echo "NOTE: using default version for /var/tmp/fossology-trunk-1.centos5-root-pb/etc/fossology/Db.conf"; \ /usr/bin/install -D -m 660 defconf/Db.conf /var/tmp/fossology-trunk-1.centos5-root-pb/etc/fossology/Db.conf; \ else \ echo "WARNING: /var/tmp/fossology-trunk-1.centos5-root-pb/etc/fossology/Db.conf already exists."; \ echo " Not overwriting, consider checking it by hand or use the OVERWRITE option."; \ fi \ NOTE: using default version for /var/tmp/fossology-trunk-1.centos5-root-pb/etc/fossology/Db.conf make[1]: Leaving directory `/home/pb/pb/projects/fossology/build/BUILD/fossology-trunk/common' I'd like to know if those are 'normal' or indicate an error in my build process ? Now my install process gives the following: ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: fossology x86_64 trunk-1.centos5 pb 1.2 M Transaction Summary ============================================================================= Install 1 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 1.2 M Downloading Packages: (1/1): fossology-trunk-1. 100% |=========================| 1.2 MB 00:04 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: fossology ######################### [1/1] Arrêt du service postgresql:[ OK ] Démarrage du service postgresql:[ OK ] *** Running postinstall for everything *** *** Setting up the FOSSology database *** *** Initializing database *** CREATE ROLE SET SET SET CREATE DATABASE ALTER DATABASE Vous êtes maintenant connecté à la base de données « fossology ». CREATE LANGUAGE SET SET SET COMMENT SET SET SET *** Creating user and group *** NOTE: group 'fossy' already exists, good. NOTE: user 'fossy' already exists, good. *** Making sure needed dirs exist with right ownership/permissions *** NOTE: Repository already exists at /srv/fossology/repository NOTE: /srv/fossology/repository/localhost directory already exists *** Checking database connectivity *** ERROR: Unable to connect to the database Connection string: 'dbname=fossology host=localhost user=fossy password=fossy' Connection status: '1' ERROR: Failed to open database ERROR: unable to connect to database, please check /etc/fossology/Db.conf Rechargement de httpd :[ÉCHOUÉ] FATAL: shm_open: Function not implemented FATAL: shm_open failed with errno=38 error: %post(fossology-trunk-1.centos5.x86_64) scriptlet failed, exit status 255 Installed: fossology.x86_64 0:trunk-1.centos5 Complete! So I think I've dealt wit hmost of the issues reported in the 2 parts report made by Channing, + some hints from Mary and Matt. Still the remaining issue around database connectivity :-( Latest versions of the packages available at ftp://ftp.project-builder.org/test/centos/5/fossology-trunk-1.centos5.src.rpm and ftp://ftp.project-builder.org/test/centos/5/fossology-trunk-1.centos5.x86_64.rpm You can use the repo file ftp://ftp.project-builder.org/test/centos/5/fossology.repo for your yum conf and get what I have above. Thanks in advance for any feedback. I'll be able to generate packages for other distros, as soon as we solve that issue. Matt, if you look at my .spec file, you'll see that I've developed a lot of lines, that hopfully could go into your main install script. (Cf: ftp://ftp.project-builder.org/test/centos/5/fossology.spec) There is just the need to pass the files to modify as parameters as they are located at different places on different distros. But you could also then use it for Debian the same way I think: Lines such as the one to setup PHP, PG, could go upstream I think. Let me know what you think. Bruno. -- Linux Profession Lead EMEA / Open Source Ambassador \ EMEA CME SoL. Center http://www.mondorescue.org / HP/Intel Solution Center \ http://hpintelco.net Des infos sur Linux? http://www.HyPer-Linux.org http://www.hp.com/linux La musique ancienne? http://www.musique-ancienne.org http://www.medieval.org _______________________________________________ fossology mailing list [email protected] http://fossology.org/mailman/listinfo/fossology
_______________________________________________ fossology mailing list [email protected] http://fossology.org/mailman/listinfo/fossology

