Sebastian Goebel wrote:
> after spending lot of time to make the station package able to
> install without any manual intervention, I think we should have
> separate package for Ubuntu. I solved: path to postgresql config is
> /etc/postgresql/7.4/main/ startup script is
> /etc/init.d/postgresql-7.4
>
> Than I failed with postgresql again and again. First it was just
> listed as Depends, so it was not configured at the moment
> postInstallStation.sh tryed to change it's configuration file. Even
> after I setup all postgresql packages to be Pre-Depends, it does not
> work. For me it have to do with diverge package naming: on sarge the
> database server itself is called postgresql (even if it is version
> 7.4), on ubuntu it is called postgresql-7.4 (there is postgresql too,
> containing database "management system"). In control file I setup
> postgresql-7.4 | postgresql
> to sadisfy booth, but it seems that ubuntu handle postgresql as
> Pre-Depends and postgresql-7.4 just at Depends in dependency from
> postgresql, not origin from the control file.
now you can start to see why I dislike apt and debian in general - these
package convetions are just a pain in the ass
> So, my questions are: Should we start devoloping different packages?
> If I count the reation on the mailing list, there is just one people
> interested in this yet. If we need to build X packages, it will take
> X*time. Therefore we should have separated brunches on svn.
not really.
in the best case, the only thing you'd need to do is to re-create the
packages on all target platforms (debian, ubuntu, whatever), using the
very same control file.
if the same control file can't be worked out (I don't see why though),
then there's only a need to have a seperate set of them for each distro.
but that's not a different branch either - we'd just have a set of
debian direcotries under livesupport/etc for debian, ubuntu, etc.
Akos
PS: we could move this discussion to the dev list, maybe some debian /
ubuntu ethusiasts would come to help..
The reason that one control file will not sadisfy different needs for ubuntu and sarge seems this:
for debian we need to have Postgresql listed in control file, but no Postgresql-7.4 is available
For ubuntu we need to have Postgresql-7.4 listed, because Postgresql is just database managment package, not including database server. Ask the ubuntu guys why they make things other then common way.
To sadisfy booth tryed to use following entrys in control file:
I would read it this way:
postgresql-7.4 is pre-required, so it will installed and configured if available (-> Ubuntu)
Elsewhere just postgresql (->Sarge). But it seems working this way:
postgresql is installed completly (-> booth distros), which requires postgresql-7.4 (on ubuntu), but this dependency is configured in Postgresql's control file and seems not Pre-Depends.
Anyway, it is defnitly not configured at the moment postInstallStation.sh want to change the config files.
>
> if the same control file can't be worked out (I don't see why though),
> then there's only a need to have a seperate set of them for each distro.
> but that's not a different branch either - we'd just have a set of
> debian direcotries under livesupport/etc for debian, ubuntu, etc.
Sebastian Goebel wrote:
> I would read it this way:
> postgresql-7.4 is pre-required, so it will installed and configured if available (-> Ubuntu)
> Elsewhere just postgresql (->Sarge). But it seems working this way:
> postgresql is installed completly (-> booth distros), which requires postgresql-7.4 (on ubuntu), but this dependency is configured in Postgresql's control file and seems not Pre-Depends.
>
> Anyway, it is defnitly not configured at the moment postInstallStation.sh want to change the config files.
ok, then we might need two sets of control files, so we might want to
split the etc/debian directory into etc/debian/debian and
/etc/debian/ubuntu . then in bin/createDebianPackages.sh , we have to
chose which one to include in the final, debianized form.
Akos
PS: could you use a mailer that limits lines to 74 columns?
> Richte postgresql-7.4 ein (7.4.8-17ubuntu1) ...
> Creating new cluster (configuration: /etc/postgresql/7.4/main, data: /var/lib/postgresql/7.4/main)...
> mkdir: kann Verzeichnis �/var/lib/postgresql/7.4/main/base� nicht anlegen: Auf dem Gerät ist kein Speicherplatz mehr verfügbar
>
Seems like you are out of disk space. No amount of fiddling with the
control file is going to fix that.
Ha, such a shame to overlook this.
Thanks for attentoin!
> -----Original Message-----
> From: Ferenc Gerlits [mailto:fgerlits@gmail.com]
> Sent: Tuesday, December 20, 2005 2:41 PM
> To: livesupport-dev@campware.org
> Subject: Re: [livesupport-dev] Ubuntu packages build
>
>
> > Richte postgresql-7.4 ein (7.4.8-17ubuntu1) ...
> > Creating new cluster (configuration: /etc/postgresql/7.4/main,
> data: /var/lib/postgresql/7.4/main)...
> > mkdir: kann Verzeichnis �/var/lib/postgresql/7.4/main/base�
> nicht anlegen: Auf dem Gerät ist kein Speicherplatz mehr verfügbar
> >
>
> Seems like you are out of disk space. No amount of fiddling with the
> control file is going to fix that.
>
> Ferenc
>