Summary: | error while emerging app-arch/rzip-2.0-r1 | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | Dirk Schoenberger <dirk.schoenberger> |
Component: | Mac OSX | Assignee: | Gentoo for Mac OS X <ppc-macos> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ferringb |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | PPC | ||
OS: | OS X | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
rzip-2.0-darwin.patch
extended patch that uses autoconf to check fort strndup patches applied to the sources strutils.c strutils.h patched ebuild cleaned up patch updated ebuild patch. |
Description
Dirk Schoenberger
2005-09-13 14:20:13 UTC
Created attachment 68517 [details, diff]
rzip-2.0-darwin.patch
Weird. I didn't get the error you report, though I got a problem with strndup
which is not available on BSD it seems. So I made a simple patch which appears
to work for me, attached here. I'd like to find out why you have those errors
which I don't have.
> Weird. I didn't get the error you report, though I got a problem with strndup
> which is not available on BSD it seems. So I made a simple patch which appears
> to work for me, attached here. I'd like to find out why you have those errors
> which I don't have.
Didn't work for me ;(
However, I could get it at least to compile if I add a
#include <stdint.h> in main.c or rzip.h
do you have the latest XCode tools installed? > do you have the latest XCode tools installed?
XCode 2.0 (came with my Tiger CD)
Build 514, I suppose.
Latest is XCode 2.1, I think.
but which one do you have installed? I use XCode 2.1, build 621 > but which one do you have installed?
XCode 2.0 (came with my Tiger CD)
Build 514
Do you care about upgrading? We only support the latest XCode tools, because it also solves a lot of linker problems. > Do you care about upgrading? We only support the latest XCode tools, because it
> also solves a lot of linker problems.
Done upgrading to XCode 2.1
With the patch rzip emerges fine.
Ok, then I will check this one on Pather today, and see if it works there too with the latest Xcode available there. I think I can check this in later today. Thanks for trying Dirk. compiled and worked on Panther also. I am hestitant to put this in portage in the same ebuild. ferringb, could you advise on this patch whether to apply is unconditional or not, and put it in the current ebuild, or in a -r2? And do you agree with it? Yuck. Conditionally pull in a strndup function is my preferred solution. Created attachment 68679 [details, diff]
extended patch that uses autoconf to check fort strndup
this patch uses autoconf to check for strndup and uses replacement code only
when not available.
Created attachment 68680 [details, diff]
patches applied to the sources
Another attempt to fix the issue, this time a little bit decent.
I created a separate file that holds the strndup implementation. It's header
file is now included by the main.c file. The strndup code is optional based on
the existence of strndup according to configure.
Created attachment 68681 [details]
strutils.c
strutils.c file which implements strndup
Created attachment 68682 [details]
strutils.h
header file for strutils.c
Created attachment 68688 [details, diff]
patched ebuild
these are my changes to the ebuild to get the previously supplied files and
patches working
> these are my changes to the ebuild to get the previously supplied files and
> patches working
I think the code looks good, and the package emerges fine.
Created attachment 68987 [details, diff]
cleaned up patch
Hola. cleaned up the patch a bit, fixing up lot of old/icky autoconf crap with
it, and lack of DESTDIR make support.
please take it for a spin;
Created attachment 68988 [details, diff]
updated ebuild patch.
> Hola. cleaned up the patch a bit, fixing up lot of old/icky autoconf crap with > it, and lack of DESTDIR make support. > please take it for a spin; Emerges fine here. patch is in as rzip-2.0-r1, keyword at your leisure. ;) -r2 I assume/know for sure. now also available for ~ppc-macos-xians Brian, thanks for your additional patching/efforts! This "cleaned up" patch that is "fixing up lot of old/icky autoconf crap with it" broke rzip on at least x86. See bug [217552]. And yes, I choose ugly but working over nice but breaking silently every time. |