Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 507936 - app-arch/unrar: please review prefix changes
Summary: app-arch/unrar: please review prefix changes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: Inclusion, PATCH
Depends on:
Blocks: prefix-gx86
  Show dependency tree
 
Reported: 2014-04-17 20:12 UTC by Christoph Junghans (RETIRED)
Modified: 2014-05-09 00:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch against gx86 version (unrar-5.1.2.ebuild.patch,809 bytes, patch)
2014-04-17 20:12 UTC, Christoph Junghans (RETIRED)
Details | Diff
patch against gx86 version (unrar-5.1.2.ebuild.patch,773 bytes, patch)
2014-04-25 16:55 UTC, Christoph Junghans (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Junghans (RETIRED) gentoo-dev 2014-04-17 20:12:18 UTC
Created attachment 375152 [details, diff]
patch against gx86 version

After the solaris patch got merged upstream and interix support was dropped, there is only one trivial change left to link a shared lib on Darwin.
Comment 1 SpanKY gentoo-dev 2014-04-20 03:13:23 UTC
Comment on attachment 375152 [details, diff]
patch against gx86 version

>+	if [[ ${CHOST} == *-darwin* ]] ; then
>+		sed -i \
>+			-e "/libunrar/s:.so:$(get_libname ${PV%.*.*}):" \

don't duplicate common ones.  use an array:
  local sed_args=(
    -e ....
  )
  ...
  sed -i "${sed_args[@]}" Makefile || die

>+			-e "s:-shared:-dynamiclib -install_name ${EPREFIX}/usr/lib/libunrar$(get_libname ${PV%.*.*}):" \

shouldn't you be using $(get_libdir) here ?
Comment 2 Christoph Junghans (RETIRED) gentoo-dev 2014-04-25 16:55:38 UTC
Created attachment 375700 [details, diff]
patch against gx86 version

(In reply to SpanKY from comment #1)
> Comment on attachment 375152 [details, diff] [details, diff]
> patch against gx86 version
> 
> >+	if [[ ${CHOST} == *-darwin* ]] ; then
> >+		sed -i \
> >+			-e "/libunrar/s:.so:$(get_libname ${PV%.*.*}):" \
> 
> don't duplicate common ones.  use an array:
>   local sed_args=(
>     -e ....
>   )
>   ...
>   sed -i "${sed_args[@]}" Makefile || die
Done.

> 
> >+			-e "s:-shared:-dynamiclib -install_name ${EPREFIX}/usr/lib/libunrar$(get_libname ${PV%.*.*}):" \
> shouldn't you be using $(get_libdir) here ?
Not 100% needed as prefix is no-multilib, but it doesn't hurt to put it.
Comment 3 Ruud Koolen (RETIRED) archtester gentoo-dev Security 2014-04-25 16:57:28 UTC
>Not 100% needed as prefix is no-multilib,

Yet. It will be in the future.
Comment 4 SpanKY gentoo-dev 2014-05-08 19:42:19 UTC
(In reply to Christoph Junghans from comment #2)

lgtm; feel free to commit
Comment 5 Christoph Junghans (RETIRED) gentoo-dev 2014-05-09 00:10:19 UTC
+  09 May 2014; Christoph Junghans <ottxor@gentoo.org> unrar-5.1.4.ebuild:
+  added prefix support (bug #507936)
+