1 |
Neat! Did you add the final find string to the bug you created? |
2 |
|
3 |
Great work, |
4 |
g2boojum |
5 |
|
6 |
Daniel Hurt wrote: [Wed Jul 07 2004, 01:24:54PM EDT] |
7 |
> Do not think that I ever told you what the command replacement should |
8 |
> be. But here it is. |
9 |
> |
10 |
> The +0111 perm flag is not accepted on OpenBSD, you can just replace it |
11 |
> with a series of "Or"ed tests. |
12 |
> |
13 |
> -perm +0111 = \( -perm 0100 -or -perm 0010 -or -perm 0001 \) |
14 |
> |
15 |
> The second regex actually does nothing in portage right now. I |
16 |
> submitted a bug about it. But the replacement should be either of the |
17 |
> following two commands depending on what they want the behavior in |
18 |
> portage to be. |
19 |
> |
20 |
> 1) -name *.so |
21 |
> 2) \( -name *.so -or -name *.so.* \) |
22 |
> |
23 |
> So the final command would look something like this: |
24 |
> find "${x}" -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 -or |
25 |
> -name *.so \) |
26 |
> |
27 |
> I was able to verify the perm check. I ran it for all the files in my |
28 |
> system both ways and then ran a diff on the list of files both methods |
29 |
> generated and they were identical and so I am sure that it works. |
30 |
> |
31 |
> It seems that openBSD has a more restrictive find command than FreeBSD |
32 |
> because the original command works on FreeBSD. I do not have an openBSD |
33 |
> system to verify that the command works on that machine, but from |
34 |
> reading the man page, it should work. So if someone could verify that |
35 |
> the final form of the command works, that would be great. |
36 |
> |
37 |
> Dan |
38 |
> |
39 |
> Grant Goodyear wrote: |
40 |
> >If anybody is feeling bored, one of the portage fixes we need is to |
41 |
> >rewrite the following line so that it works w/ BSD find: |
42 |
> > |
43 |
> >find "${x}" -type f \( -perm +0111 -or -regex '\.so$|\.so\.' \) -print0 |
44 |
> > |
45 |
> >Help? |
46 |
> > |
47 |
> >Thanks, |
48 |
> >g2boojum |
49 |
> |
50 |
|
51 |
-- |
52 |
Grant Goodyear |
53 |
Gentoo Developer |
54 |
g2boojum@g.o |
55 |
http://www.gentoo.org/~g2boojum |
56 |
GPG Fingerprint: D706 9802 1663 DEF5 81B0 9573 A6DC 7152 E0F6 5B76 |