Jump to content

[Rozwiązane] Kompilowanie Kadu 1.0-Rc2


tele
 Share

Recommended Posts

Podczas kompilacji mi wyskoczyło coś takiego

 

 

extracting debug info from /home/gg/rpmbuild/BUILDROOT/kadu-1.0-rc2.x86_64/usr/bin/kadu
/usr/lib/rpm/sepdebugcrcfix: Updated 50 CRC32s, 0 CRC32s did match.
21228 blocks
+ '[' '%{buildarch}' = noarch ']'
+ QA_CHECK_RPATHS=1
+ case "${QA_CHECK_RPATHS:-}" in
+ /usr/lib/rpm/check-rpaths
*******************************************************************************
*
* WARNING: 'check-rpaths' detected a broken RPATH and will cause 'rpmbuild'
*          to fail. To ignore these errors, you can set the '$QA_RPATHS'
*          environment variable which is a bitmask allowing the values
*          below. The current value of QA_RPATHS is 0x0000.
*
*    0x0001 ... standard RPATHs (e.g. /usr/lib); such RPATHs are a minor
*               issue but are introducing redundant searchpaths without
*               providing a benefit. They can also cause errors in multilib
*               environments.
*    0x0002 ... invalid RPATHs; these are RPATHs which are neither absolute
*               nor relative filenames and can therefore be a SECURITY risk
*    0x0004 ... insecure RPATHs; these are relative RPATHs which are a
*               SECURITY risk
*    0x0008 ... the special '$ORIGIN' RPATHs are appearing after other
*               RPATHs; this is just a minor issue but usually unwanted
*    0x0010 ... the RPATH is empty; there is no reason for such RPATHs
*               and they cause unneeded work while loading libraries
*    0x0020 ... an RPATH references '..' of an absolute path; this will break
*               the functionality when the path before '..' is a symlink
*          
*
* Examples:
* - to ignore standard and empty RPATHs, execute 'rpmbuild' like
*   $ QA_RPATHS=$[ 0x0001|0x0010 ] rpmbuild my-package.src.rpm
* - to check existing files, set $RPM_BUILD_ROOT and execute check-rpaths like
*   $ RPM_BUILD_ROOT=<top-dir> /usr/lib/rpm/check-rpaths
*  
*******************************************************************************
ERROR   0001: file '/usr/bin/kadu' contains a standard rpath '/usr/lib64' in [/usr/lib64]
błąd: Błędny stan wyjścia z /var/tmp/rpm-tmp.NPAgT2 (%install)

 

 

To znaczy ze nowe kadu ma architektórę " noarch "   ?

Chciałem się upewnić bo generalnie z

" QA_RPATHS=$[ 0x0001|0x0010 ] rpmbuild my-package.src.rpm "

sie kompiluje bez problemu.

Link to comment
Share on other sites

Szczerze mówiąc nie kojarzę, by Kadu zmieniło się na noarch.

Mam źródła w stanie po instalacji, mógłbym spróbować zbudować pakiety RPM, ale za nic w świecie nie wiem jak.

Wiem tylko tyle, że RPMBuild jest w sprawie potrzebny.

Link to comment
Share on other sites

Kadu nie ma architektury noarch. Poszukaj czy w Twoim specu nie ma Buildarch: noarch. Jeśli Ci wczystko działa to się nie przejmuj. Jak chcesz drążyć temat, to błędy z check-rpaths można rozwiązać dodając: chrpath --delete %{buildroot}%{_bindir}%{name} w sekcji %install.

Możesz też poszukać odpowiednika opcji --disable-rpath dla kompilacji kadu (przyda się cmake-gui). Można też tak.

Link to comment
Share on other sites

Dzięki!

 

Subaru nie próbowałeś się nauczyć robić plik spec do zbudowania paczek rpm ?

Chciałbyś spróbować ?

 

Edytowane:

Dobrze ze dziury jeszcze w dysku mi nie wypalilo....

- mianowicie metoda prob i bledow probowalem sie pozbyc bledu rpath ,

wczesniej robilem jakos

QA_RPATHS=$[ 0x0001|0x0010 ] rpmbuild my-package.src.rpm

ale teraz mi to jakos nie dziala :wacko:

- sama kompilacja przebiegla raczej prawidlowo i instaluje sie tez

- problem jest tylko przy budowaniu paczki,

w koncu na stronie ubuntu w opisie zmian znalazlem ze oni dodali u siebie opcje

-DCMAKE_SKIP_RPATH=True

do cmake, sprawdzilem i na Fedorze to dziala.

%define name	kadu
%define version 1.3



Summary:	A Gadu-Gadu and XMPP protocol instant messenger client
Summary(de):	Ein Gadu-Gadu- und XMPP-Protokoll Sofortnachrichtenklient
Summary(pl):	Nowoczesny komunikator obsługujący sieci Gadu-Gadu i XMPP
Name:		%{name}
Version:	%{version}
#for pclos Release:	mkrel 1
Release:	1
License:	GPLv2+
#Group:		Networking/Instant messaging
Group:          Applications/Internet
URL:		http://www.kadu.net
Source0:	%{name}-%{version}.tar.bz2
#BuildArch:      x86_64


#Obsoletes:	%{name}-dev < %version
Provides:	%{name}
#BuildRoot:   	%{_tmppath}/%{name}-%{version}-buildroot
BuildRequires:  cmake                   >= 2.8.12.1
BuildRequires:  desktop-file-utils      >= 0.22 
#for pclos BuildRequires:  {_lib}alsa2-devel >= 
BuildRequires:  alsa-lib-devel >= 1.0.27.2
#for pclos BuildRequires:  {_lib}enchant-devel
BuildRequires:  enchant-devel  >= 1.6.0
#for pclos BuildRequires:  {_lib}gadu-devel	
BuildRequires:  libgadu-devel	>= 1.12.0
#for pclos BuildRequires:  {_lib}gsm-devel
BuildRequires:  gsm-devel	>= 1.0.13
#for pclos BuildRequires:  {_lib}idn-devel
BuildRequires:  libidn-devel >=  1.28
#for pclos BuildRequires:  {_lib}mpdclient-devel 
BuildRequires:  libmpdclient-devel   >= 2.7
#for pclos BuildRequires:  {_lib}openssl-devel
BuildRequires:  openssl-devel
#for pclos BuildRequires:  {_lib}png-devel
BuildRequires:  libpng-devel  >= 1.6.6
#for pclos BuildRequires:  {_lib}pulseaudio-devel
BuildRequires:  pulseaudio-libs-devel
#for pclos BuildRequires:  {_lib}qt4-devel        >= 4.8.0
BuildRequires:  qt-devel        >= 4.8.6
#for pclos BuildRequires:  {_lib}qca2-devel
BuildRequires:  qca2-devel      >= 2.0.3
#for pclos BuildRequires:  {_lib}sndfile-devel
BuildRequires:  libsndfile-devel     >= 1.0.25
#for pclos BuildRequires:  {_lib}x11-devel
BuildRequires:  libX11-devel   >= 1.6.1
#for pclos BuildRequires:  {_lib}xext-devel
BuildRequires:  libXext-devel   >= 1.3.2
#for pclos BuildRequires:  {_lib}xfixes-devel
BuildRequires:  libXfixes-devel   >=  5.0.1
#for pclos BuildRequires:  {_lib}zlib-devel
BuildRequires:  zlib-devel   >=   1.2.8
BuildRequires:  phonon-devel    >= 4.7.1
#for pclos BuildRequires:  x11-proto-devel
BuildRequires:  xorg-x11-proto-devel      >= 7.7
#for pclos BuildRequires:	libindicate-qt-devel
BuildRequires:  aspell-devel     >= 0.60.6.1
BuildRequires:   qtwebkit-devel    >= 2.3.3
BuildRequires:    sqlite-devel     >=  3.8.4.3


Requires:	glibc >= 2.16
#for pclos Requires:	libstdc++6 >= 4.7.2
Requires:	libstdc++ >= 4.8.2
#for pclos Requires:	%{_lib}xscrnsaver1
Requires:	libXScrnSaver  >= 1.2.2
Requires:	qca2   >= 2.0.3
#for pclos Requires:	qt4-database-plugin-sqlite
#for pclos Requires:	task-qt4 >= 4.8.0
Requires:	qt5-qtbase >= 5.2.1
# lib archive need be installed but something not detect rpmbuild
#BuildRequires:  libarchive-devel <= 2.6.0



%description
Kadu is a Polish instant messenger using the Gadu-Gadu and XMPP (since 0.6.6 version) protocol.
Kadu is a free software, open-source software and does not contain advertisements (as opposed
to the official Gadu-Gadu client, which is closed-source and adware).

%description -l de.UTF-8
Kadu ist ein polnischer Sofortnachrichtenklient, der das Gadu-Gadu und XMPP (seit Version 0.6.6)
Protokoll benutzt. Kadu ist freie Software, OpenSource Software und enthält keine Werbung (wie es
beim offiziellen Gadu-Gadu-Klient der Fall ist).

%description -l pl.UTF-8
Kadu to jeden z najpopularniejszych klientów sieci Gadu-Gadu dla systemu Linux.
Od wersji 0.6.6 wspiera protokół XMPP. Jest to w pełni funkcjonalny komunikator obsługujący
konferencje, animowane emotikony, powiadomienia dźwiękowe, przesyłanie plików oraz
szyfrowanie rozmów przy użyciu OpenSSL, a dodatkowo nie wyświetla żadnych reklam.
Został wykonany w oparciu o bibliotekę Qt4.

#-----------------------------------------------------------------------------------

#%package -n %{name}-devel
#Summary:	Development files for Kadu
#Summary(de):	Entwicklungsdateien für Kadu
#Summary(pl):	Pliki nagłówkowe dla Kadu
#Group:		Networking/Instant messaging
#Requires:	%name

#%description -n %{name}-devel
#Development files for Kadu

#%description -n %{name}-devel -l de.UTF-8
#Entwicklungsdateien für Kadu

#%description -n %{name}-devel -l pl.UTF-8
#Pliki nagłówkowe dla Kadu

#------------------------------------------





%prep
#-D - nie usuwaj katalogu przed rozpakowanie
#-q - tryb cichy
#-n - paczka z źródłem nazywa się ianczej niż rpm
# setup -q -n kadu-%{ver}


%setup -q -n kadu-%{version}
%setup -q -T -D 

# patch1 -p1 
# patch2 -p1

%build

mkdir build
cd build
# -DCMAKE_SKIP_RPATH=True --> Don't check RPATH
%{cmake}  -DCMAKE_SKIP_RPATH=True -DCMAKE_USE_PTHREADS:BOOL=ON -DBUILD_DESCRIPTION="Fedora" ..
make -k VERBOSE=1 %{?_smp_mflags}




%install

rm -rf $RPM_BUILD_ROOT
cd build
make install DESTDIR=$RPM_BUILD_ROOT

%post
%{update_menus}
%{update_desktop_database}
%update_icon_cache hicolor

%postun
%{clean_menus}
%{clean_desktop_database}
%clean_icon_cache hicolor

%clean
#[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
...
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...