1 |
ferringb 11/11/18 04:04:58 |
2 |
|
3 |
Added: pkgcore-0.7.5-dosym.patch |
4 |
Log: |
5 |
bug 379899; honor portage dosym behaviour, rather than forcing breakage on users while PMS decides to shit or get off the pot |
6 |
|
7 |
(Portage version: 2.1.10.19/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 sys-apps/pkgcore/files/pkgcore-0.7.5-dosym.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/pkgcore/files/pkgcore-0.7.5-dosym.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/pkgcore/files/pkgcore-0.7.5-dosym.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: pkgcore-0.7.5-dosym.patch |
16 |
=================================================================== |
17 |
From 87e10f2a3b5d9867c104ffb4ed023bff0a64f218 Mon Sep 17 00:00:00 2001 |
18 |
From: Brian Harring <ferringb@×××××.com> |
19 |
Date: Thu, 17 Nov 2011 16:27:30 -0800 |
20 |
Subject: [PATCH] allow dosym some-file directory/ despite PMS |
21 |
|
22 |
This conflicts with PMS (gentoo bug 379899), but neither the usage nor |
23 |
spec is being corrected to rectify it. Rather than break things for |
24 |
users, we now allow it. |
25 |
--- |
26 |
pkgcore/ebuild/eapi-bash/helpers/common/dohard | 7 ++++--- |
27 |
1 files changed, 4 insertions(+), 3 deletions(-) |
28 |
|
29 |
diff --git a/pkgcore/ebuild/eapi-bash/helpers/common/dohard b/pkgcore/ebuild/eapi-bash/helpers/common/dohard |
30 |
index 13ebeda..d00946f 100755 |
31 |
--- a/pkgcore/ebuild/eapi-bash/helpers/common/dohard |
32 |
+++ b/pkgcore/ebuild/eapi-bash/helpers/common/dohard |
33 |
@@ -8,9 +8,10 @@ check_args 2 |
34 |
ln_option= |
35 |
src_prefix= |
36 |
if [[ ${HELPER_NAME} == dosym ]]; then |
37 |
- # T while nonportable, is to ensure that if there is a directory |
38 |
- # conflict, it doesn't just create the sym w/in |
39 |
- ln_option=snT |
40 |
+ ln_option=sn |
41 |
+ if [[ ${2} == */ ]] || [[ -d $2 && ! -L $2 ]]; then |
42 |
+ echo "QA: dosym target '$2' omits the filename target; see bug 379899" >&2 |
43 |
+ fi |
44 |
else |
45 |
src_prefix="${D}" |
46 |
fi |
47 |
-- |
48 |
1.7.8.rc1 |