First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 58931
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: osx porters <osx@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Joe Jezak <josejx@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
libperl-5.8.4-r1.ebuild.diff Fixes libperl on OSX patch Joe Jezak 2004-07-30 13:47 0000 2.43 KB Details | Diff
perl-5.8.4.ebuild.diff Fixes perl on OSX patch Joe Jezak 2004-07-30 13:47 0000 1.64 KB Details | Diff
perl.blocked List of files blocking the merge text/plain Joe Jezak 2004-10-07 22:09 0000 38.31 KB Details
libperl-5.8.4-r1.ebuild.patch Unified diff for libperl patch Joe Jezak 2004-10-07 22:13 0000 3.99 KB Details | Diff
perl-5.8.4.ebuild.patch Unified diff for perl patch Joe Jezak 2004-10-07 22:14 0000 2.61 KB Details | Diff
get_libname.patch Provides the correct lib ending for .so or .dylib patch Joe Jezak 2005-08-06 09:01 0000 402 bytes Details | Diff
libperl-5.8.7.patch Fix for latest libperl using the get_libname patch patch Joe Jezak 2005-08-06 09:01 0000 4.22 KB Details | Diff
perl-5.8.7.patch Fix for latest perl using the get_libname patch patch Joe Jezak 2005-08-06 09:02 0000 2.94 KB Details | Diff
libperl-5.8.7.ebuild.patch Fix for latest libperl using the get_libname patch patch Kito (RETIRED) 2005-08-06 13:31 0000 4.53 KB Details | Diff
perl-5.8.7.patch 65242: Fix for latest perl using the get_libname patch patch Kito (RETIRED) 2005-08-06 13:37 0000 3.55 KB Details | Diff
perl-5.8.7.patch Fix for latest perl using the get_libname patch patch Kito (RETIRED) 2005-08-08 11:31 0000 3.54 KB Details | Diff
get_libname.patch eutils patch to provide the correct lib suffix for .so or .dylib patch Kito (RETIRED) 2005-08-08 11:36 0000 408 bytes Details | Diff
libperl-5.8.7.ebuild.patch libperl-5.8.7.ebuild.patch patch Kito (RETIRED) 2005-08-12 08:47 0000 2.53 KB Details | Diff
perl-5.8.7.ebuild.patch perl-5.8.7.ebuild.patch patch Kito (RETIRED) 2005-08-12 08:59 0000 1.38 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 58931 depends on: Show dependency tree
Bug 58931 blocks: 57640 57677
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-07-30 13:46 0000
I didn't get too much response from the mailing list on this, so I've decided
to post a bug about this.

Below is the text from my mailing list post:

There were two major problems with the ebuilds preventing it from building:
1. The slotting system incorrectly assumed that we were dealing with
.so files, so that needed to be fixed.  I used some global variables
to get this fixed.  It looks fine on ppc as well, so I think it's okay.
2. As far as I can tell, the -soname patch basically adds versioning
to .so libraries.  With dylib, we already get versioning, so as long
as programs that depend on libperl depend on 5.8.0, we should be okay
to just drop that patch for OSX.  If any one needs more explanation,
or has concerns that this is completely wrong please let me know.

So it builds now, but there are a few issues remaining:
1. There are a few errors at the end of the ebuild, it looks like
preplib and preplib.so need to have some OSX modifications, probably
just using ranlib instead of ldconfig, but I haven't looked at it yet.
2. Perl installs to /usr, overwriting the apple install.  I didn't
even notice at first, so there's no apparent ill effects, yet I'm
still a little wary about just going ahead and doing this.  Does
anyone have any suggestions or comments on this?
3. It would be pretty easy to change the behaviour of #2 to maybe
install in /usr/local, but we would have to adapt to this.  I'm really
not sure what the "right" answer is.
4. Perl modules still don't work quite right, they get installed into
/usr instead of / like perl is expecting.  I haven't had a chance to
look at this yet.

Thanks!

------- Comment #1 From Joe Jezak 2004-07-30 13:47:27 0000 -------
Created an attachment (id=36479) [edit]
Fixes libperl on OSX

------- Comment #2 From Joe Jezak 2004-07-30 13:47:50 0000 -------
Created an attachment (id=36480) [edit]
Fixes perl on OSX

------- Comment #3 From Mamoru KOMACHI (RETIRED) 2004-08-31 01:19:12 0000 -------
*** Bug 62334 has been marked as a duplicate of this bug. ***

------- Comment #4 From Joe Jezak 2004-10-07 22:09:52 0000 -------
Created an attachment (id=41338) [edit]
List of files blocking the merge

------- Comment #5 From Joe Jezak 2004-10-07 22:13:27 0000 -------
Created an attachment (id=41339) [edit]
Unified diff for libperl

------- Comment #6 From Joe Jezak 2004-10-07 22:14:07 0000 -------
Created an attachment (id=41340) [edit]
Unified diff for perl

------- Comment #7 From Hasan Khalil (RETIRED) 2005-01-23 12:58:22 0000 -------
This depends on bug 67162. Will take a look at it when 67162 has gotten
somewhere. Until then, this 
bug should remain frozen.

------- Comment #8 From Kito (RETIRED) 2005-07-18 11:51:51 0000 -------
Reopening to get this in the tree for Darwin and the progressive profiles.

------- Comment #9 From Joe Jezak 2005-08-06 09:01:03 0000 -------
Created an attachment (id=65240) [edit]
Provides the correct lib ending for .so or .dylib

------- Comment #10 From Joe Jezak 2005-08-06 09:01:49 0000 -------
Created an attachment (id=65241) [edit]
Fix for latest libperl using the get_libname patch

------- Comment #11 From Joe Jezak 2005-08-06 09:02:30 0000 -------
Created an attachment (id=65242) [edit]
Fix for latest perl using the get_libname patch

------- Comment #12 From Kito (RETIRED) 2005-08-06 13:31:24 0000 -------
Created an attachment (id=65257) [edit]
Fix for latest libperl using the get_libname patch

add userland conditional and fix install_name

------- Comment #13 From Kito (RETIRED) 2005-08-06 13:37:49 0000 -------
Created an attachment (id=65259) [edit]
65242: Fix for latest perl using the get_libname patch

minor fixes

------- Comment #14 From Michael Cummings (RETIRED) 2005-08-08 10:54:39 0000 -------
(In reply to comment #13)
> Created an attachment (id=65259) [edit]
> 65242: Fix for latest perl using the get_libname patch
> 
> minor fixes

Just not sure that this block is right (the rest of it looks good)

Shouldn't this be an elseif (elsif? whatever, you know what I mean :) instead of
if...else [ if ...else...]

@@ -139,10 +139,13 @@
 
 	if [[ ${KERNEL} == "FreeBSD" && "${ELIBC}" = "FreeBSD" ]]; then
 		osname="freebsd"
+	else if [[ ${USERLAND} == "Darwin" ]]; then
+		osname="darwin"
 	else
 		# Default setting
 		osname="linux"
 	fi
+	fi
 

------- Comment #15 From Kito (RETIRED) 2005-08-08 11:31:57 0000 -------
Created an attachment (id=65463) [edit]
Fix for latest perl using the get_libname patch

changed extra if block 

------- Comment #16 From Kito (RETIRED) 2005-08-08 11:36:03 0000 -------
Created an attachment (id=65464) [edit]
eutils patch to provide the correct lib suffix for .so or .dylib

s/ppc-macos/userland_Darwin

------- Comment #17 From Kito (RETIRED) 2005-08-08 13:09:45 0000 -------
(From update of attachment 65464 [edit])
inCVS multilib.eclass

------- Comment #18 From Michael Cummings (RETIRED) 2005-08-10 02:26:25 0000 -------
I have working ebuilds for both libperl(gotcha:) and perl based on the last
libname patch, but one question - userland_darwin isn't a use flag...

------- Comment #19 From Kito (RETIRED) 2005-08-10 06:52:18 0000 -------
its a use-expanded variable set in in the profiles along with kernel and elibc.
it should be userland_Darwin 
(uppercase `D`), GNU systems have userland_gnu, elibc_glibc

------- Comment #20 From Michael Cummings (RETIRED) 2005-08-10 07:48:39 0000 -------
/usr/portage/profiles $ grep -risl userland_dar *
/usr/portage/profiles $

hence my confusion :) But if you all say its cool, I'll go with it. 

------- Comment #21 From Kito (RETIRED) 2005-08-10 08:00:16 0000 -------
% grep -r USERLAND . 
./make.defaults:USE_EXPAND="LINGUAS USERLAND KERNEL ELIBC"
./make.defaults:USERLAND="Darwin"

Yeah, portage adds the `userland_` part of it. You will still get some QA warnings as the use-expanded 
vars haven't been silenced in portage quite yet.

------- Comment #22 From Michael Cummings (RETIRED) 2005-08-12 03:22:55 0000 -------
patch(variation i think) applied to libperl and perl. eat it up yum.

------- Comment #23 From Kito (RETIRED) 2005-08-12 06:37:42 0000 -------
${coredir}/libperl$(get_libname).${PERLSLOT}

Stuff like that won't work, as dylibs need the version to come before the suffix, libfoo.1.dylib as opposed 
to the ELF convention of libfoo.so.1

That was the motivation for the get_libname function, to handle that transparently, so the version should 
be passed to the function as well:
  LIBPERL="libperl$(get_libname ${PERLSLOT}.${SHORT_PV})"

Also need to skip the regexp-nossp.patch for Darwin/OS X. 

------- Comment #24 From Kito (RETIRED) 2005-08-12 08:47:29 0000 -------
Created an attachment (id=65764) [edit]
libperl-5.8.7.ebuild.patch

Almost there...

------- Comment #25 From Kito (RETIRED) 2005-08-12 08:59:18 0000 -------
Created an attachment (id=65765) [edit]
perl-5.8.7.ebuild.patch

------- Comment #26 From Michael Cummings (RETIRED) 2005-08-14 13:23:16 0000 -------
patches posted

------- Comment #27 From Kito (RETIRED) 2005-08-14 13:51:10 0000 -------
working great. Thanks mcummings!

First Last Prev Next    No search results available      Search page      Enter new bug