Re: sylfilter is FTBFS in Rawhide

2021-09-22 Thread Globe Trotter via devel
Thanks, this has addressed the problem.






On Wednesday, September 22, 2021, 10:52:28 AM CDT, Dan Horák  
wrote: 





On Wed, 22 Sep 2021 15:43:36 + (UTC)
Globe Trotter via devel  wrote:

> 
> 
> 
> 
> 
> >On Wednesday, September 22, 2021, 08:32:05 AM CDT, Vitaly Zaitsev via devel 
> > wrote: 
> 
> 
> 
> 
> 
> > On 22/09/2021 15:24, Globe Trotter via devel wrote:
> >> So, it appears that there is  a standard /usr/lib64? But is it being set 
> >> directly by the spec file? How do I unset it? Any suggestions?

then you might need the "hard" way of removing rpath (add after running
configure)

# Don't use rpath!
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool



        Dan

___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: sylfilter is FTBFS in Rawhide

2021-09-22 Thread Dan Horák
On Wed, 22 Sep 2021 15:43:36 + (UTC)
Globe Trotter via devel  wrote:

> 
> 
> 
> 
> 
> >On Wednesday, September 22, 2021, 08:32:05 AM CDT, Vitaly Zaitsev via devel 
> > wrote: 
> 
> 
> 
> 
> 
> > On 22/09/2021 15:24, Globe Trotter via devel wrote:
> >> So, it appears that there is  a standard /usr/lib64? But is it being set 
> >> directly by the spec file? How do I unset it? Any suggestions?

then you might need the "hard" way of removing rpath (add after running
configure)

# Don't use rpath!
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool



Dan
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: sylfilter is FTBFS in Rawhide

2021-09-22 Thread Globe Trotter via devel





>On Wednesday, September 22, 2021, 08:32:05 AM CDT, Vitaly Zaitsev via devel 
> wrote: 





> On 22/09/2021 15:24, Globe Trotter via devel wrote:
>> So, it appears that there is  a standard /usr/lib64? But is it being set 
>> directly by the spec file? How do I unset it? Any suggestions?

> https://docs.fedoraproject.org/en-US/packaging-guidelines/#_removing_rpath

-- 

Based on this document, I added


%__arch_install_post\
/usr/lib/rpm/check-rpaths \
/usr/lib/rpm/check-buildroot

to my (new) file .rpmmacros.

However, when I compile I do not get any error at all when I use:

rpmbuild -ba sylfilter.spec

Is there something else that i have to do. Again, I have the --disable-rpath 
flag set but appears to have no effect on koji.



###  for Fedora  ###

Name: sylfilter
Summary:  A generic message filter library and command-line tools
Version:  0.8
Release:  21%{?dist}
License:  BSD
URL:  http://sylpheed.sraoss.jp/sylfilter/
Source0:  http://sylpheed.sraoss.jp/sylfilter/src/sylfilter-%{version}.tar.xz
BuildRequires: make
BuildRequires:  gcc
BuildRequires: sqlite-devel
BuildRequires: glib2-devel
BuildRequires: sylpheed-devel

%package devel
Summary: Development files for sylfilter
Requires: sylfilter%{?_isa} = %{version}-%{release}
Requires: sqlite-devel
Requires: glib2-devel

%description
This is SylFilter, a generic message filter library, and some command-line tools
that provide a Bayesian filter which is very popular as a spam filtering
algorithm.

SylFilter is also internationalized and can be applied to any languages.

The SylFilter library provides simple but powerful C APIs and can be used from
C programs.

SylFilter can be used as a command-line tool inside a junk filter mail program
similar to major tools such as bogofilter and bsfilter etc.

For further details, see http://sylpheed.sraoss.jp/sylfilter/

%description devel
Development files for sylfilter

%prep
%setup -q

%build
%configure --disable-rpath --with-libsylph=sylpheed --with-libsylph-dir=/usr 
--disable-static
%{make_build}

%install
%{make_install}
rm %{buildroot}%{_libdir}/*.la

%ldconfig_scriptlets

%files
%doc README
%{_bindir}/sylfilter
%{_libdir}/libsylfilter.*
%{_libdir}/libsylfilter.so.*
%license COPYING

%files devel
%{_libdir}/libsylfilter.so
%{_includedir}/sylfilter
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: sylfilter is FTBFS in Rawhide

2021-09-22 Thread Globe Trotter via devel
> On Wednesday, September 22, 2021, 08:32:05 AM CDT, Vitaly Zaitsev via devel 
>  wrote: 





>  On 22/09/2021 15:24, Globe Trotter via devel wrote:
>  So, it appears that there is  a standard /usr/lib64? But is it being set 
>directly by the spec file? How do I unset it? Any suggestions?

> 
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_removing_rpath

-- 

Interesting, I do have the following in the spec file:

%configure --disable-rpath --with-libsylph=sylpheed --with-libsylph-dir=/usr 
--disable-static


(This is recommended as a fix.)

Thanks!
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: sylfilter is FTBFS in Rawhide

2021-09-22 Thread Vitaly Zaitsev via devel

On 22/09/2021 15:24, Globe Trotter via devel wrote:

So, it appears that there is  a standard /usr/lib64? But is it being set 
directly by the spec file? How do I unset it? Any suggestions?


https://docs.fedoraproject.org/en-US/packaging-guidelines/#_removing_rpath

--
Sincerely,
  Vitaly Zaitsev (vit...@easycoding.org)
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure