summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/20110506/004477.html
blob: 5bcfd03b6c6acbc2fde3d9aa773089d07985200c (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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-dev] Notice on rpm-mageia-setup's find-requires script
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Notice%20on%20rpm-mageia-setup%27s%20find-requires%20script&In-Reply-To=%3C20110506162837.GO21938%40mars-attacks.org%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="004476.html">
   <LINK REL="Next"  HREF="004488.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-dev] Notice on rpm-mageia-setup's find-requires script</H1>
    <B>nicolas vigier</B> 
    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Notice%20on%20rpm-mageia-setup%27s%20find-requires%20script&In-Reply-To=%3C20110506162837.GO21938%40mars-attacks.org%3E"
       TITLE="[Mageia-dev] Notice on rpm-mageia-setup's find-requires script">boklm at mars-attacks.org
       </A><BR>
    <I>Fri May  6 18:28:37 CEST 2011</I>
    <P><UL>
        <LI>Previous message: <A HREF="004476.html">[Mageia-dev] Notice on rpm-mageia-setup's find-requires script
</A></li>
        <LI>Next message: <A HREF="004488.html">[Mageia-dev] Notice on rpm-mageia-setup's find-requires script
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#4477">[ date ]</a>
              <a href="thread.html#4477">[ thread ]</a>
              <a href="subject.html#4477">[ subject ]</a>
              <a href="author.html#4477">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>On Fri, 06 May 2011, Thierry Vignaud wrote:

&gt;<i> On 6 May 2011 16:58, nicolas vigier &lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">boklm at mars-attacks.org</A>&gt; wrote:
</I>&gt;<i> &gt;&gt; &gt;&gt;&gt; &gt; The second.
</I>&gt;<i> &gt;&gt; &gt;&gt;&gt;
</I>&gt;<i> &gt;&gt; &gt;&gt;&gt; Ouch.
</I>&gt;<i> &gt;&gt; &gt;&gt;&gt;
</I>&gt;<i> &gt;&gt; &gt;&gt;&gt; I guess we need to rebuild all perl packages since mid april then.
</I>&gt;<i> &gt;&gt; &gt;&gt;
</I>&gt;<i> &gt;&gt; &gt;&gt; Not all perl packages. Only the packages including perl scripts.
</I>&gt;<i> &gt;&gt; &gt; But I doubt there is an easy way finding those packages :(
</I>&gt;<i> &gt;&gt;
</I>&gt;<i> &gt;&gt; In order to remain on the safe side, we should just rebuild all
</I>&gt;<i> &gt;&gt; packages build in that time frame...
</I>&gt;<i> &gt;
</I>&gt;<i> &gt; Or someone can make a script to extract all packages and find perl
</I>&gt;<i> &gt; scripts.
</I>&gt;<i> 
</I>&gt;<i> Why may miss somes.
</I>&gt;<i> I would prefer staying on the safe side...
</I>
If done correctly, we should not miss any of them.

Something like this (copied from find-requires) will find all perl
scripts from list of files given on stdin:

filelist=`sed &quot;s/[]['\&quot;*?{}]/\\\\\&amp;/g&quot;`
scriptlist=`echo &quot;$filelist&quot; | grep -v /usr/doc | grep -v /usr/share/doc | xargs -r file | \
        egrep &quot;:.* (commands|script)&quot; | cut -d: -f1`
for f in $scriptlist; do
    [ -r $f -a -x $f ] || continue
    interp=`head -n 1 $f | grep '^#!' | sed -e 's/^\#\![        ]*//' | cut -d&quot; &quot; -f1`
    interplist=&quot;$interplist $interp&quot;
    case $interp in
    */perl)     perllist=&quot;$perllist $f&quot; ;;
    esac
done

So we can make a script that will extract an rpm in a temporary
directory with rpm2cpio, find perl scripts, and print source rpm if a
perl script is found. And after running this script on all packages we
have the list of what we need to rebuild.

I won't have time to do it now or this weekend, but will try to do it
on monday if nobody does it before.

</PRE>


<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="004476.html">[Mageia-dev] Notice on rpm-mageia-setup's find-requires script
</A></li>
	<LI>Next message: <A HREF="004488.html">[Mageia-dev] Notice on rpm-mageia-setup's find-requires script
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#4477">[ date ]</a>
              <a href="thread.html#4477">[ thread ]</a>
              <a href="subject.html#4477">[ subject ]</a>
              <a href="author.html#4477">[ 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>