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

Re: 1.2.0 Beta 1 Released



Nice! Many bugs are being fixed while I'm testing. But still it's difficult not to find new bugs ;-)


For example:

When adding users localhost does not seem to be the default any longer:

[Tue Nov 14 02:18:59 2006] [error] [client 127.0.0.1] DBI connect('dbname=a;host=;port=5432','ledgersmb',...) failed: could not translate host name "port=5432" to address: Name or service not known, referer: http://localhost/ledger-smb/login.pl [Tue Nov 14 02:18:59 2006] [error] [client 127.0.0.1] at LedgerSMB/User.pm line 173, referer: http://localhost/ledger-smb/login.pl [Tue Nov 14 02:18:59 2006] [error] [client 127.0.0.1] Error: LedgerSMB/User.pm:176: could not translate host name "port=5432" to address: Name or service not known, referer: http://localhost/ledger-smb/login.pl [Tue Nov 14 02:18:59 2006] [error] [client 127.0.0.1] , referer: http://localhost/ledger-smb/login.pl [Tue Nov 14 02:18:59 2006] [error] [client 127.0.0.1] Compilation failed in require at /usr/share/ledger-smb/login.pl line 95., referer: http://localhost/ledger-smb/login.pl


Creating a new dataset I get

[Tue Nov 14 02:12:49 2006] [error] [client 127.0.0.1] NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "taxmodule_pkey" for table "taxmodule", referer: http://localhost/ledger-smb/admin.pl [Tue Nov 14 02:12:49 2006] [error] [client 127.0.0.1] ERROR: syntax error at or near "taxmodule_id" at character 141, referer: http://localhost/ledger-smb/admin.pl [Tue Nov 14 02:12:49 2006] [error] [client 127.0.0.1] LINE 5: FOREIGN KEY taxmodule_id REFERENCES taxmodule (taxmodule_i..., referer: http://localhost/ledger-smb/admin.pl [Tue Nov 14 02:12:49 2006] [error] [client 127.0.0.1] ^, referer: http://localhost/ledger-smb/admin.pl [Tue Nov 14 02:12:49 2006] [error] [client 127.0.0.1] ERROR: syntax error at or near "parts_id" at character 129, referer: http://localhost/ledger-smb/admin.pl [Tue Nov 14 02:12:49 2006] [error] [client 127.0.0.1] LINE 6: FOREIGN KEY parts_id REFERENCES parts (id),, referer: http://localhost/ledger-smb/admin.pl [Tue Nov 14 02:12:49 2006] [error] [client 127.0.0.1] ^, referer: http://localhost/ledger-smb/admin.pl

(Trying to create a quotation and adding part on-the-fly later on then gives:


   Error!

menu.pl:108: Can't locate object method "prepare" via package "DBI::db=HASH(0x8e838b8)" (perhaps you forgot to load "DBI::db=HASH(0x8e838b8)"?) at LedgerSMB/Tax.pm line 42.
)


Adding a danish UTF-8 charset I get a lot of

[Tue Nov 14 02:12:52 2006] [error] [client 127.0.0.1] ERROR: invalid byte sequence for encoding "UTF8": 0xe67474, referer: http://localhost/ledger-smb/admin.pl


Providing wrong password to the admin interface just shows an empty page with a password box - the normal login screen and a "bad password" should be shown instead.


"SL" is still used in the faq and in the manual.


I have attached a messy diff where I try to
- Make INSTALL less UPGRADEish
- Improve rpm instructions and fix some minor issues
- Remove .htaccess and use ledger-smb-httpd.conf instead
- Fix a translation bug

/Mads



Chris Travers wrote, On 11/13/2006 07:25 PM:
The LedgerSMB Development Team is pleased to announce beta 1 of
LedgerSMB 1.2.0 today.  Currently we have only released it as a
tarball, but an RPM package will be added this evening for testing
purposes.

Currently this release has a couple of serious bugs and
upgrading/migration/installation has not been fully automated yet.
However, for people looking forward to evaluating the new release, or
those interested in doing QA, please download it and have a go.

--- a/INSTALL	Tue Nov 14 02:52:36 2006 +0100
+++ b/INSTALL	Tue Nov 14 02:54:23 2006 +0100
@@ -1,27 +1,27 @@ Installing LedgerSMB 1.2
 Installing LedgerSMB 1.2 
 
 
-This document contains information on how to upgrade from earlier versions of 
-LedgerSMB or SQL-Ledger.  This upgrade is a major revision and may not go 
-smoothly.  We recommend that the reader start by reading the section on manual
-installation and then start by trying the automated means mentioned later.
+This document contains information on how to install LedgerSMB.  We recommend
+that the reader start by reading the section on manual installation and then
+start by trying the automated means mentioned later.
 
 Also this document assumes that the reader is already familiar with the release
 notes.  If you have not already done so, please read the release_notes file in
 the doc/ directory.
 
-MANUAL UPGRADE:
+MANUAL INSTALL:
 ===============================================================================
 
 1)  Untar in desired location.
 
-2)  Check New Dependencies
+2)  Check Dependencies
 
 The Build.PL script can be used to test for unmet dependencies and run other
 tests.  It doesn't install anything yet, but it will tell you what you are 
 missing.  To check for dependencies, run "perl Build.PL" from the command line.
 Missing dependencies can generally be installed via a Linux distributor's
-package manager or by CPAN.
+package manager or by CPAN. (Build.PL itself uses Module::Build, which is
+available in packages like perl-Module-Build or libmodule-build-perl.)
 
 Once this is done and dependencies are satisfied, you can check to see whether
 the installation nominally works by running "./Build test" from the command
@@ -33,28 +33,17 @@ and may not be required in all circumsta
   * Net::TCLink for credit card processing in a POS environment
   * Parse::RecDescent for the CLI script host
 
-3)  Install database
-
-  a) cd to the sql/legacy/ directory of the new ledger directory
-  b) run "psql" with appropriate options to connect to your database.
-  c) Note the db version by running the following query:
-     "SELECT version FROM defaults;"
-  d) Run the SQL upgrade scripts in order starting with the one whose name
-     begins with "Pg-database" (each of these scripts will upgrade to
-     the next database version which is also identified in the file name).
-
-Note that this will create three tables that may not actually be used depending
-on your setup:  users, users_conf, and session.  In general if you have multiple
-datasets, these tables will only be used in one.
-
-4)  Decide where to put the user/session management tables.  In general, we
+3)  Decide where to put the user/session management tables.  In general, we
 recommend as follows:
   a)  Single dataset installations should use the user tables in the dataset.
   b)  Multicompany installations should use user tables in a separate dataset
       from any accounting data.
 
-If you need to create another dataset, you can create the db and import the
-sql/Pg-central.sql file into it.
+4)  Create central database
+
+  a) cd to the sql/ directory of the new ledger directory.
+  b) run "psql" with appropriate options to connect to your database.
+  c) Run the SQL script Pg-central.sql.
 
 5)  Set the admin password:
   a)  From psql, determine what admin password you wish to use.  Then type:
diff -r 878736bd3925 -r c9ec5ef46ad5 dists/rpm/ledgersmb.spec
--- a/dists/rpm/ledgersmb.spec	Tue Nov 14 02:52:36 2006 +0100
+++ b/dists/rpm/ledgersmb.spec	Tue Nov 14 02:54:23 2006 +0100
@@ -28,15 +28,18 @@ This package does not work in SELinux re
 
 To finalize the ledger-smb installation:
 
-Start the PostgreSQL service, let /var/lib/pgsql/data/pg_hba.conf start with:
+Enable local password autentication in PosgreSQL, leaving ident login for the
+postgres user:
+- Start PostgreSQL to create database instance (service postgres start)
+- Let /var/lib/pgsql/data/pg_hba.conf start with:
 local   all         postgres                          ident sameuser
 local   all         all                               md5
 host    all         all         127.0.0.1/32          md5
-(Remember to restart PostgreSQL.)
+- Restart PostgreSQL to apply changes (service postgres restart)
 
 In %{_sysconfdir}/%{name}/ledger-smb.conf set DBPassword to something
 and create the ledgersmb master user and database:
-su - postgres -c "createuser -d ledgersmb --createdb --createrole --superuser -P"
+su - postgres -c "createuser -d ledgersmb --createdb --superuser -P"
 su - postgres -c "createdb ledgersmb"
 su - postgres -c "createlang plpgsql ledgersmb"
 su - postgres -c "psql ledgersmb < %{_datadir}/%{name}/sql/Pg-central.sql"
@@ -89,44 +92,44 @@ mkdir -p -m0750 $RPM_BUILD_ROOT%{_locals
 # the conf, placed in etc, symlinked back in place
 mv ledger-smb.conf.default $RPM_BUILD_ROOT%{_sysconfdir}/ledger-smb/ledger-smb.conf
 ln -s ../../..%{_sysconfdir}/ledger-smb/ledger-smb.conf \
- $RPM_BUILD_ROOT%{_datadir}/%{name}/ledger-smb.conf
+  $RPM_BUILD_ROOT%{_datadir}/%{name}/ledger-smb.conf
 
 # install relevant parts in data/cgi directory
-cp -rp *.pl favicon.ico index.html ledger-smb.gif ledger-smb.png ledger-smb_small.png menu.ini \
- bin LedgerSMB sql utils locale drivers \
- Config Class Locale \
- $RPM_BUILD_ROOT%{_datadir}/%{name}/
+cp -rp *.pl favicon.ico index.html ledger-smb.eps ledger-smb.gif ledger-smb.png ledger-smb_small.png menu.ini \
+  bin LedgerSMB sql utils locale drivers \
+  Config Class Locale \
+  $RPM_BUILD_ROOT%{_datadir}/%{name}/
 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/{setup.pl,SL2LS.pl} # FIXME - install somewhere else...
 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/locale/legacy
 
 # users - written to by cgi
 mkdir -p -m0750 $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}/users
 ln -s ../../..%{_localstatedir}/lib/%{name}/users \
- $RPM_BUILD_ROOT%{_datadir}/%{name}/users
+  $RPM_BUILD_ROOT%{_datadir}/%{name}/users
 
 # css - written to by cgi
 mkdir -p -m0750 $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}/css
 ln -s ../../..%{_localstatedir}/lib/%{name}/css \
- $RPM_BUILD_ROOT%{_datadir}/%{name}/css
+  $RPM_BUILD_ROOT%{_datadir}/%{name}/css
 cp -rp css/* \
- $RPM_BUILD_ROOT%{_datadir}/%{name}/css
+  $RPM_BUILD_ROOT%{_datadir}/%{name}/css
 
 # templates - written to by cgi
 mkdir -p -m0750 $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}/templates
 ln -s ../../..%{_localstatedir}/lib/%{name}/templates \
- $RPM_BUILD_ROOT%{_datadir}/%{name}/templates
+  $RPM_BUILD_ROOT%{_datadir}/%{name}/templates
 cp -rp templates/* \
- $RPM_BUILD_ROOT%{_datadir}/%{name}/templates
+  $RPM_BUILD_ROOT%{_datadir}/%{name}/templates
 
 # spool - written to by cgi
 mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/spool/%{name}
 ln -s ../../..%{_localstatedir}/spool/%{name} \
- $RPM_BUILD_ROOT%{_datadir}/%{name}/spool
+  $RPM_BUILD_ROOT%{_datadir}/%{name}/spool
 
 # apache config file
 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d
 install -m 644 rpm-ledger-smb-httpd.conf \
- $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/ledger-smb.conf
+  $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/ledger-smb.conf
 
 
 %clean
@@ -146,15 +149,13 @@ rm -rf $RPM_BUILD_ROOT
 
 %config(noreplace) %{_sysconfdir}/httpd/conf.d/*.conf
 
-%doc doc/{COPYRIGHT,LedgerSMB-manual.pdf,README,faq.html,release_notes}
-%doc LICENSE README.sql-ledger README.translations TODO Changelog CONTRIBUTORS
+%doc doc/{COPYRIGHT,faq.html,LedgerSMB-manual.pdf,README,release_notes}
+%doc BUGS Changelog CONTRIBUTORS INSTALL LICENSE README.sql-ledger README.translations TODO UPGRADE
 
 
 %changelog
-* Fri Nov 10 2006 Mads Kiilerich <..hidden..> - 1.2 alpha
+* Fri Nov 10 2006 Mads Kiilerich <..hidden..> - 1.2-alpha
 - Updating towards 1.2
 
 * Wed Oct 18 2006 Mads Kiilerich <..hidden..> - 1.1.1d-1
 - Initial version
-
-
diff -r 878736bd3925 -r c9ec5ef46ad5 ledger-smb-httpd.conf
--- a/ledger-smb-httpd.conf	Tue Nov 14 02:52:36 2006 +0100
+++ b/ledger-smb-httpd.conf	Tue Nov 14 02:54:23 2006 +0100
@@ -23,6 +23,11 @@ Alias /ledger-smb /some/path/to/ledger-s
   Deny from All
 </Directory>
   
+<Directory /some/path/to/ledger-smb/utils>
+  Order Deny,Allow
+  Deny from All
+</Directory>
+  
 <Directory /some/path/to/ledger-smb/spool>
   Order Deny,Allow
   Deny from All
diff -r 878736bd3925 -r c9ec5ef46ad5 bin/.htaccess
--- a/bin/.htaccess	Tue Nov 14 02:52:36 2006 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-Deny from all
diff -r 878736bd3925 -r c9ec5ef46ad5 utils/.htaccess
--- a/utils/.htaccess	Tue Nov 14 02:52:36 2006 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-
-  Order Deny,Allow
-  Deny from All
diff -r 878736bd3925 -r c9ec5ef46ad5 locale/po/da.po
--- a/locale/po/da.po	Tue Nov 14 02:52:36 2006 +0100
+++ b/locale/po/da.po	Tue Nov 14 02:54:23 2006 +0100
@@ -342,7 +342,7 @@ msgstr "BOM"
 msgstr "BOM"
 
 msgid "Backup"
-msgstr "Sikkerheskopi"
+msgstr "Sikkerhedskopi"
 
 msgid "Backup sent to"
 msgstr "Sikkerhedskopier sendt til"