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
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.
I confirm, just installed eccodes-2.8.0-3.fc28.x86_64 and the samples are found at the expected location, thanks.