Bug 27309 - [PATCH] Wrong search path
Summary: [PATCH] Wrong search path
Status: REOPENED
Alias: None
Product: Sisyphus
Classification: Development
Component: unrtf (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Ilya Mashkin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-08 16:04 MSK by Dmitry Chistikov
Modified: 2016-05-07 14:35 MSK (History)
3 users (show)

See Also:


Attachments
Search path fix (293 bytes, patch)
2012-05-08 16:06 MSK, Dmitry Chistikov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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