Discussion:
[Ltib] ARMv5 PostgreSQL LTIB
Александр Глухов
2014-10-22 11:50:47 UTC
Permalink
Hello, I have a problem in LTIB. I need to install PostgreSQL on ARMv5 with tcp/ip access. I'm trying to do it in LTIB. I already downloaded sources and put it in rpm/SOURCES.  And now I need to create a postgresql.spec file. Could you help me in it, because I have not enought experience in it? Thank you in advance.

With best regards,
Alexandr Glukhov
Sergey Ablalimov
2014-10-23 04:22:36 UTC
Permalink
I hope this help you http://www.ltib.org/documentation-LtibFaq#ref_89
Post by Александр Глухов
Hello, I have a problem in LTIB. I need to install PostgreSQL on ARMv5
with tcp/ip access. I'm trying to do it in LTIB. I already downloaded
sources and put it in rpm/SOURCES. And now I need to create a
postgresql.spec file. Could you help me in it, because I have not
enought experience in it? Thank you in advance.
With best regards,
Alexandr Glukhov
_______________________________________________
LTIB home page: http://ltib.org
Ltib mailing list
https://lists.nongnu.org/mailman/listinfo/ltib
Sergey Ablalimov
2014-10-23 05:15:29 UTC
Permalink
It's better replay to mail list. May be some one else can help you.
Other comments see below.
%define pfx /opt/freescale/rootfs/%{_target_cpu}
Summary : PostgreSQL for arm
Name : postgresql
Version : 9.3.5
Release : 1
Vendor : PostgreSQL
Group : System Environment/Libraries
URL : http:// <http://xxxx/>
Source : %{name}-%{version}.tar.bz2
BuildRoot : %{_tmppath}/%{name}
Prefix : %{pfx}
%Description
%{summary}
%Prep
%setup
%Build
./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build}
make
%Install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT/%{pfx}
%Clean
rm -rf $RPM_BUILD_ROOT
%Files
%defattr(-,root,root)
%{pfx}/*
but I get error, when run ./ltib -p postgresql.spec
checking for zic... no
When cross-compiling, either use the option --with-system-tzdata to use
existing time-zone data, or set the environment variable ZIC to a zic
program to use during the build.
As I can see this package need zic or use the option --with-system-tzdata.
error: Bad exit status from
/home/ubuntu/Projects/TionPro28/ltib/ltib/tmp/rpm-tmp.2856 (%build)
I hope this help you http://www.ltib.org/documentation-LtibFaq#ref_89
Post by Александр Глухов
Hello, I have a problem in LTIB. I need to install PostgreSQL on
ARMv5
Post by Александр Глухов
with tcp/ip access. I'm trying to do it in LTIB. I already downloaded
sources and put it in rpm/SOURCES. And now I need to create a
postgresql.spec file. Could you help me in it, because I have not
enought experience in it? Thank you in advance.
http://www.ltib.org/documentation-LtibFaq#ref_89 recommend put your
source at /opt/freescale/pkgs/
Post by Александр Глухов
With best regards,
Alexandr Glukhov
_______________________________________________
LTIB home page: http://ltib.org
Ltib mailing list
https://lists.nongnu.org/mailman/listinfo/ltib
_______________________________________________
LTIB home page: http://ltib.org
Ltib mailing list
https://lists.nongnu.org/mailman/listinfo/ltib
Александр Глухов
2014-10-23 05:31:57 UTC
Permalink
Thank you, but I already red it. I create file with:

%define pfx /opt/freescale/rootfs/%{_target_cpu}
 
 
Summary        : PostgreSQL for arm
Name            : postgresql
Version        : 9.3.5
Release        : 1
License        :
Vendor          : PostgreSQL
Packager        :
Group          : System Environment/Libraries
URL            :  http://
Source          : %{name}-%{version}.tar.bz2
BuildRoot      : %{_tmppath}/%{name}
Prefix          : %{pfx}
 
 
%Description
%{summary}
 
 
%Prep
%setup
 
 
%Build
./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build}
make
 
 
%Install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT/%{pfx}
 
 
%Clean
rm -rf $RPM_BUILD_ROOT
 
 
%Files
%defattr(-,root,root)
%{pfx}/*

but I get error, when run ./ltib -p postgresql.spec

checking for zic... no
configure: error:
When cross-compiling, either use the option --with-system-tzdata to use
existing time-zone data, or set the environment variable ZIC to a zic
program to use during the build.
error: Bad exit status from /home/ubuntu/Projects/TionPro28/ltib/ltib/tmp/rpm-tmp.2856 (%build)
I hope this help you  http://www.ltib.org/documentation-LtibFaq#ref_89
Post by Александр Глухов
Hello, I have a problem in LTIB. I need to install PostgreSQL on ARMv5
with tcp/ip access. I'm trying to do it in LTIB. I already downloaded
sources and put it in rpm/SOURCES. And now I need to create a
postgresql.spec file. Could you help me in it, because I have not
enought experience in it? Thank you in advance.
With best regards,
Alexandr Glukhov
_______________________________________________
LTIB home page:  http://ltib.org
Ltib mailing list
  https://lists.nongnu.org/mailman/listinfo/ltib
_______________________________________________
LTIB home page:  http://ltib.org
Ltib mailing list
https://lists.nongnu.org/mailman/listinfo/ltib
Loading...