Olivier Sallou pushed to branch master at Debian Med / libchado-perl


Commits:
6704b45d by Olivier Sallou at 2019-12-05T08:42:58Z
fix install error if USER not set

Closes bug #939832 related to missing env vars

- - - - -


3 changed files:

- debian/changelog
- debian/postinst
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -1,9 +1,12 @@
-libchado-perl (1.31-6) UNRELEASED; urgency=medium
+libchado-perl (1.31-6) unstable; urgency=medium
 
+  [ Jelmer Vernooij <[email protected]> ]
   * Trim trailing whitespace.
   * Use secure copyright file specification URI.
+  [ Olivier Sallou <[email protected]> ]
+  * Fix postinstall script for case of USER env var not set (Closes: #939832)
 
- -- Jelmer Vernooij <[email protected]>  Wed, 24 Oct 2018 23:03:40 +0000
+ -- Olivier Sallou <[email protected]>  Thu, 05 Dec 2019 08:35:16 +0000
 
 libchado-perl (1.31-5) unstable; urgency=medium
 


=====================================
debian/postinst
=====================================
@@ -40,9 +40,10 @@ case "$1" in
        mkdir -p /usr/share/gmod/chado/lib/Bio/Chado/
         if [ -e /etc/gmod/gmod-chado.conf ]; then
          export GMOD_ROOT=/usr/share/gmod/chado
+          export CHADO_DB_NAME=gmod-chado
+          export CHADO_DB_USERNAME=chado
           . /etc/gmod/gmod-chado.conf
          cd /usr/share/gmod/chado
-         export CHADO_DB_NAME=gmod-chado
          CHADOTMP=`mktemp -d`
          perl Makefile.PL update GMOD_ROOT=/usr/share/gmod/chado 
DBNAME=$CHADO_DB_NAME  DBUSER=$DBUSER DBPASS=$DBPASS DBHOST=$DBHOST 
DBPORT=$DBPORT DBDRIVER=PostgreSQL  SIMPLE=Y RECONFIGURE=1 LOCAL_TMP=$CHADOTMP 
&> /dev/null
          rm -rf $CHADOTMP


=====================================
debian/rules
=====================================
@@ -6,6 +6,7 @@ include /usr/share/dpkg/default.mk
 export GMOD_ROOT=$(CURDIR)/debian/$(DEB_SOURCE)/usr/share/gmod/chado
 export CHAOS_HOME=$(CURDIR)/debian/$(DEB_SOURCE)/usr/share/gmod/chaos
 export CHADO_DB_NAME=gmod-chado
+export CHADO_DB_USERNAME=chado
 export PREFIX=/usr
 
 %:
@@ -69,4 +70,4 @@ override_dh_fixperms:
        find debian -name Skip_tables.pm -exec chmod 644 \{\} \;
        find debian -name "*.tt2" -exec chmod 644 \{\} \;
        find debian -name "*.tmpl" -exec chmod 644 \{\} \;
-       
\ No newline at end of file
+       



View it on GitLab: 
https://salsa.debian.org/med-team/libchado-perl/commit/6704b45d9e6c9a866ba89b35a4654dd38e5bfac0

-- 
View it on GitLab: 
https://salsa.debian.org/med-team/libchado-perl/commit/6704b45d9e6c9a866ba89b35a4654dd38e5bfac0
You're receiving this email because of your account on salsa.debian.org.


_______________________________________________
debian-med-commit mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to