Bug 27309

Summary: [PATCH] Wrong search path
Product: Sisyphus Reporter: Dmitry Chistikov <dd1email>
Component: unrtfAssignee: Ilya Mashkin <oddity>
Status: REOPENED --- QA Contact: qa-sisyphus
Severity: normal    
Priority: P3 CC: icesik, lav, oddity
Version: unstable   
Hardware: all   
OS: Linux   
Attachments:
Description Flags
Search path fix none

Description Dmitry Chistikov 2012-05-08 16:04:53 MSK
unrtf ищет свои файлы в /usr/local/lib, а они лежат в /usr/lib:

$ unrtf first_inf.rtf
/usr/local/lib/unrtf/html.conf: No such file or directory
no config directories

Решение: приложить патч (см. вложение).

(Кроме меня, unrtf'ом никто не пользуется? ;))
Comment 1 Dmitry Chistikov 2012-05-08 16:06:10 MSK
Created attachment 5456 [details]
Search path fix
Comment 2 Igor Zubkov 2012-11-07 04:05:39 MSK
Приложенный патч не будет работать на x86_64. Сделал вот так:

sed -i s,/usr/local/lib/unrtf/,/usr/lib/unrtf/,g src/path.h

и отправил на сборку.
Comment 3 Igor Zubkov 2012-11-07 04:08:05 MSK
(В ответ на комментарий №2)
> Приложенный патч не будет работать на x86_64. Сделал вот так:
> 
> sed -i s,/usr/local/lib/unrtf/,/usr/lib/unrtf/,g src/path.h

Конечно же sed -i 's,/usr/local/lib/unrtf/,%_libdir/unrtf/,g' src/path.h

> и отправил на сборку.
Comment 4 Repository Robot 2012-11-07 04:11:36 MSK
unrtf-0.21.2-alt1 -> sisyphus:

* Wed Nov 07 2012 Igor Zubkov <icesik@altlinux> 0.21.2-alt1
- 0.21.1 -> 0.21.2
- debuginfo
- fix search path (closes: #27309)
Comment 5 Vitaly Lipatov 2016-05-07 14:35:17 MSK
 $ rpm -q unrtf
unrtf-0.21.2-alt1

 $ unrtf
/usr/local/lib/unrtf/html.conf: No such file or directory