OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003645 [php5] regular use minor always 2009-04-23 00:34 2009-04-29 03:21
Reporter casterln View Status public  
Assigned To mwatters
Priority normal Resolution fixed  
Status closed  
Summary 0003645: postinstall scriopts in new php5_* packages have cruft on 1st and last line
Description The postinstall scripts all have a line like this at the beginning and end of the scripts:

gmake[4]:: /home/mwatters/mgar/pkg/php5/trunk

THis generates a lot of noise on upgrade of each php5_*
Additional Information I cleaned each file of the extraneous lines and ran each script.
php5 is up and running fine.


Thanks!
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0006002)
mwatters (reporter)
2009-04-23 01:34

Can you give me a specific pacakge to look at.
I looked at a couple and didn't see anything out of sorts.

(0006003)
casterln (reporter)
2009-04-23 01:40

Take a look at CSWphp5dba
or
CSWphp5calendar
(0006004)
casterln (reporter)
2009-04-23 01:50

I gunzipped and looked in

php5_calendar-5.2.9,REV=2009.04.18-SunOS5.8-sparc-CSW.pkg

and found the extraneous lines around line 69 or 79 and line 104 in the pkg
file.
(0006005)
bwalton (administrator)
2009-04-23 01:53

This looks to be a glitch with the dynamic adm script feature. I'm looking into the GAR parts right now.
(0006006)
mwatters (reporter)
2009-04-23 02:26

I don't have a box at hand to install.
I tried to validate doing:
pkg-get -d php5_dba to download the gzipped package file
gzip -d php5_dba-5.2.9,REV=2009.04.21-SunOS5.8-sparc-CSW.pkg.gz
pkgtrans ./php5_dba-5.2.9,REV=2009.04.21-SunOS5.8-sparc-CSW.pkg . all
this creates CSWphp5dba directory.
tomorrow I will attempt an install on my sparc s9 zone and sparc s10


$ cat CSWphp5dba/install/postinstall
#!/bin/sh
PHP_INI=/opt/csw/php5/lib/php.ini
echo "[===> Running Post Install <===]"
echo " ===> Enabling dba extension"
if grep 'CSW Extensions' ${PHP_INI} >/dev/null 2>&1; then
/bin/true
else
cat << _EOF_
******************************************************************************
* WARNING: Could not enable Extension "dba"
* You will need to enable it by hand as follows:
*
* open ${PHP_INI} in your favorite text editor
* Add the following line to the file, save, and restart your web server
* extension=dba.so
******************************************************************************
_EOF_
exit 0
fi
if grep 'extension=dba.so' ${PHP_INI} >/dev/null 2>&1; then
perl -i -plne 's|;extension=dba.so|extension=dba.so|' ${PHP_INI}
else
perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=dba.so|' ${PHP_INI}
fi
cat << _EOF_
******************************************************************************
* NOTICE: Successfully Enabled Extension "dba"
* in ${PHP_INI}
*
* You will need to restart your web server to finish the install
******************************************************************************
_EOF_
exit 0

$
(0006007)
mwatters (reporter)
2009-04-23 02:31

Ben Confirmed this for me and committed a change in gar.
I will update my mgar and repackage.
(0006030)
mwatters (reporter)
2009-04-29 03:20

This is resolved in 5.2.9 REV 2009.04.27
(0006031)
mwatters (reporter)
2009-04-29 03:21

fixed in current release


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker