mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-04 05:44:53 +00:00
[BUG] rpm build errors - missing freetype sources in tar.gz and configure mismatches between src and rpm #476
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tomas-kuchta on GitHub (Jan 13, 2019).
Please prefix your issue with one of the following: [BUG], [PROPOSAL], [QUESTION].
CCExtractor version (using the --version parameter preferably) : 0.87
In raising this issue, I confirm the following (please check boxes, eg [X] - and delete unchecked ones):
My familiarity with the project is as follows (check one, eg [X] - and delete unchecked ones):
Necessary information
-autoprogram**Video links (replace text below with your links) **
None needed
Additional information
Running ./rpm.sh from package_creators directory fails due to following issues:
./configure --prefix=/usr --enable-ocr
Adding directory full src/freetype directory to the tar file at creation resolves the build issue.
Build done on: openSuSE 42.3 with following ccextractor specific dependencies:
Thank you, Tomas
PS: Make sure you set an alert in GitHub so you get notifications about your ticket. We may need to ask questions and we do everything inside GitHub's system.
@djotaku commented on GitHub (Jan 14, 2019):
I also got hit with the spec file issue.
Also the tarball is missing iso639.h, but that's in the git repo
However, I'm building for Fedora, not OpenSuse. My solution was to copy that file into the tarball and then run the script. I also had to copy the freetype dir into the tarball.
@tomas-kuchta commented on GitHub (Jan 15, 2019):
Missing iso639.h can also be resolved by changing ./configure command to: ./configure --enable-ocr in package_creators/tarball.sh
This is because both ./configure commands in tatrball.sh and rpm.sh needs to be the same <== tarball.sh creates ccextractor-version.tar.gz which is then used as source for rpm.sh <== thus using rpm.sh to verify the content of ccextractor-version.tar.gz which is used to create source .rpm
I did not have the time to get to the root cause of why the freetype sources are not added to the tar file. Perhaps it is due to missing 'autoreconf -i' command inside tarball.sh - just speculating at this point.
I guess, both adding the iso639.h to the .tar as well as matching the .configure commands are equally valid hacks. :-)
@djotaku commented on GitHub (Sep 10, 2019):
I know it's been 9 months, but when I change the config argument in the tarball.sh, it still says it doesn't have that file.
@djotaku commented on GitHub (Sep 10, 2019):
I'm making some potential headway changing the linux/Makefile.am. If I can get it to go all the way, will make a PR
@cfsmp3 commented on GitHub (Jan 25, 2020):
Closing this this was merged. @tomas-kuchta feel free to reopen if it still doesn't work for you.