summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2012-November/019931.html
blob: f517b1d711ac575ad4fa1c928b0b9abffd0c3843 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-dev] default $PATH after UsrMove
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20default%20%24PATH%20after%20UsrMove&In-Reply-To=%3C509FE898.4090400%40free.fr%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="019953.html">
   <LINK REL="Next"  HREF="019950.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-dev] default $PATH after UsrMove</H1>
    <B>Luc Menut</B> 
    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20default%20%24PATH%20after%20UsrMove&In-Reply-To=%3C509FE898.4090400%40free.fr%3E"
       TITLE="[Mageia-dev] default $PATH after UsrMove">lmenut at free.fr
       </A><BR>
    <I>Sun Nov 11 19:04:08 CET 2012</I>
    <P><UL>
        <LI>Previous message: <A HREF="019953.html">[Mageia-dev] Small project for a Python programmer
</A></li>
        <LI>Next message: <A HREF="019950.html">[Mageia-dev] default $PATH after UsrMove
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#19931">[ date ]</a>
              <a href="thread.html#19931">[ thread ]</a>
              <a href="subject.html#19931">[ subject ]</a>
              <a href="author.html#19931">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>Hi,

After UsrMove, /bin and /sbin are symlinks to /usr/bin and /usr/sbin.
For the moment, the default $PATH in cauldron is still /bin:/usr/bin:... 
for normal users, and /sbin:/usr/sbin/... for root, so that 'which 
a-binary' report that all /usr/[s]bin/... binaries are located in /bin 
or /sbin instead.
(some discussions about this on fedora devel mailing list [1]).

While it is not optimal to prefer the indirect path via symlink instead 
of the direct /usr/[s]bin/ path, it can trigger weird bugs difficult to 
detect, when there is automatic prefix detection based on the location 
of a binary (either at buildtime or at runtime).
eg. bug #7119 is due to an incorrect detection of the X11 prefix at 
buildtime; it is detected as &quot;/&quot; instead of &quot;/usr&quot;, so that 
systemsettings searchs evdev.xml at &quot;/share/X11/xkb/rules/evdev.xml&quot; 
instead of &quot;/usr/share/X11/xkb/rules/evdev.xml&quot;.
It seems to introduce non-optimal path for interpreter program in 
shebang line for some perl or python scripts [1].

So, we should probably drop /bin and /sbin from all search paths, in 
shadow-utils (/etc/login.defs), util-linux (&quot;/bin/su - &quot; doesn't use 
/etc/login.defs), openssh, ...

I think that we should drop these dirs from our defaults $PATH, before a 
future mass rebuild.

WDYT?



Regards,
Luc


[1] from Fedora
<A HREF="http://lists.fedoraproject.org/pipermail/devel/2012-February/162720.html">http://lists.fedoraproject.org/pipermail/devel/2012-February/162720.html</A>
<A HREF="http://lists.fedoraproject.org/pipermail/devel/2012-September/171559.html">http://lists.fedoraproject.org/pipermail/devel/2012-September/171559.html</A>
<A HREF="http://lists.fedoraproject.org/pipermail/devel/2012-October/173220.html">http://lists.fedoraproject.org/pipermail/devel/2012-October/173220.html</A>
<A HREF="https://bugzilla.redhat.com/show_bug.cgi?id=797557">https://bugzilla.redhat.com/show_bug.cgi?id=797557</A>

[2] on my system, grep &quot;#\!/bin/perl&quot; /usr/bin/*
/usr/bin/aclocal:#!/bin/perl -w
/usr/bin/aclocal-1.12:#!/bin/perl -w
/usr/bin/aclocal-1.8:#!/bin/perl -w
/usr/bin/aclocal-1.9:#!/bin/perl -w
/usr/bin/automake:#!/bin/perl -w
/usr/bin/automake-1.12:#!/bin/perl -w
/usr/bin/automake-1.8:#!/bin/perl -w
/usr/bin/automake-1.9:#!/bin/perl -w
/usr/bin/c_rehash:#!/bin/perl5
/usr/bin/diffpp:#!/bin/perl
/usr/bin/gdialog:#!/bin/perl
/usr/bin/sliceprint:#!/bin/perl
/usr/bin/xscreensaver-getimage-file:#!/bin/perl5 -w
/usr/bin/xscreensaver-getimage-video:#!/bin/perl5 -w
/usr/bin/xscreensaver-text:#!/bin/perl5 -w

grep &quot;#\!/bin/python&quot; /usr/bin/*
/usr/bin/bzr:#!/bin/python
/usr/bin/cheetah:#!/bin/python
/usr/bin/cheetah-analyze:#!/bin/python
/usr/bin/cheetah-compile:#!/bin/python
/usr/bin/django-admin.py:#!/bin/python
/usr/bin/easy_install:#!/bin/python
/usr/bin/easy_install-2.7:#!/bin/python
/usr/bin/mako-render:#!/bin/python
/usr/bin/manhole:#!/bin/python
/usr/bin/mgarepo:#!/bin/python
/usr/bin/ndiff:#!/bin/python
/usr/bin/pyhtmlizer:#!/bin/python
/usr/bin/tap2deb:#!/bin/python
/usr/bin/tap2rpm:#!/bin/python
/usr/bin/tapconvert:#!/bin/python
/usr/bin/trial:#!/bin/python
/usr/bin/twistd:#!/bin/python
</PRE>




















<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="019953.html">[Mageia-dev] Small project for a Python programmer
</A></li>
	<LI>Next message: <A HREF="019950.html">[Mageia-dev] default $PATH after UsrMove
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#19931">[ date ]</a>
              <a href="thread.html#19931">[ thread ]</a>
              <a href="subject.html#19931">[ subject ]</a>
              <a href="author.html#19931">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>