<double post>
|
Quote:
See the info about the files, Slackware 13 current, post # 30, etc. And read this thread again. ..... |
1 Attachment(s)
I read over the thread while working in the VM and taking notes so you can follow what I did (attached).
Needles to say, it failed: Code:
|
Nearly went off the page!
|
Well; I'll keep trying to help albeit not being successful.
Try this:- http://bbs.archlinux.org/viewtopic.php?id=89952 |
Hmmm, that sounds like it might be the problem.
Do you think running a search-and-replace that changes "png_set_gray_1_2_4_to_8" to "png_set_expand_gray_1_2_4_to_8" over the Núcleo source would fix it, or at least fix part of it?? |
How about this:
Code:
find . -type f -exec sed --in-place 's:png_set_gray_1_2_4_to_8:png_set_expand_gray_1_2_4_to_8:g' {} ; |
Quote:
It looks like it might work. I don't think you can harm your system at all like that. At worst you'd have to reinstall stuff pertaining to libpng so I think you're okay. Thing is that looks like it's supposed to work in the current directory so it wouldn't be possible to harm your system like that. Hopefully it works!!! Good luck! ;) :) |
This is using libpng14, no system files modified:
I tried running it on the Núcleo source and it just messed it up, didn't even compile a little bit. I will try something else, though: prepend '#define png_set_gray_1_2_4_to_8 png_set_expand_gray_1_2_4_to_8\n' to every .c, .h, .cc, .cpp, and .cxx file. I know that you can append to a file using ">>", but how do you prepend to one? |
Quote:
Is that what you are looking for? |
I created this pipeline, it should append echo's output to $file:
Code:
echo '#define png_set_gray_1_2_4_to_8 png_set_expand_gray_1_2_4_to_8' | cat - "$file" > "$file".temp && mv "$file".temp "$file" |
Quote:
(Is that it?) |
Code:
find -name '*.cxx' -exec sed --in-place '1 s:^.*$:#define png_set_gray_1_2_4_to_8 png_set_expand_gray_1_2_4_to_8\n&:' '{}' ';' |
SUCCESS!!! make finished with a 0 exit code!
(Note that this is using libpng14!) Anyway, I would like to use the AUR package instead of make install. Is there a way to have makepkg run my pipeline on the source code before compiling? |
I added my two commands to the build function in the PKGBUILD and it worked!
Code:
build() { Code:
$ pacman -Qs nucleo |
All times are GMT -5. The time now is 03:15 AM. |