Bug 1622467 - sample files installed in wrong path
Summary: sample files installed in wrong path
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: eccodes
Version: 28
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jos de Kloe
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-27 09:41 UTC by Davide Cesari
Modified: 2018-08-28 07:04 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-08-28 07:04:33 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
test program (288 bytes, text/x-csrc)
2018-08-27 09:41 UTC, Davide Cesari
no flags Details

Description Davide Cesari 2018-08-27 09:41:02 UTC
Created attachment 1478904 [details]
test program

Description of problem:

During rpm build, the "sample" files are explicitly moved from their natural installation destination /usr/share/eccodes/sample to /usr/share/doc/eccodes/samples/, thus getting packaged in the doc package. However, despite the name, these are not documentation files, they are needed by user programs for creating grib messages from scratch and they are searched in the /usr/share/eccodes/samples directory, this can be verified by launching the codes_info program.

Probably none of the executable programs installed with eccodes package make use of them, but user programs linking libeccodes and using grib_handle_new_from_samples function do.

So they should reasonably belong to the eccodes-data package and be left in their original installation directory.

I cannot tell about the files in the analogous ifs_samples directory since I do not know in which cases they are used.

Version-Release number of selected component (if applicable):
2.7.3-1.fc28.x86_64

How reproducible:
Always

Steps to Reproduce:
1. build the attached program samples.c with the command gcc -o samples samples.c -leccodes
2. execute ./samples

Expected results:
<nothing>

Actual results:
ECCODES ERROR   :  Unable to load sample file regular_ll_pl_grib2.tmpl
                    in /usr/share/eccodes/samples
Error: unable to create handle from sample regular_ll_pl_grib2

Comment 1 Jos de Kloe 2018-08-27 19:55:24 UTC
Thanks for your report.
A fix for this issue has been implemented and has been in updates-testing for the last 10 days. It has been pushed to stable today, with the update to eccodes 2.8.0 so updating the package should fix your problem.

Please let me know if this indeed fixes your issue.

Comment 2 Davide Cesari 2018-08-28 07:04:33 UTC
I confirm, just installed eccodes-2.8.0-3.fc28.x86_64 and the samples are found at the expected location, thanks.


Note You need to log in before you can comment on or make changes to this bug.