FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor


 
 
LinkBack Thread Tools
 
Old 10-20-2010, 09:32 PM
Neal Becker
 
Default unowned dirs

Adam Jackson wrote:

> On Wed, 2010-10-20 at 17:07 -0400, Neal Becker wrote:
>
>> BTW, it's annoying that rpm allows only 1 %files -f.
>
> http://rpm.org/wiki/Releases/4.8.0
>
> %files now accepts multiple filelists through -f (ticket #70,
> RhBug:475359)
>
> - ajax

I guess fedora guidelines need updating then.

--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 
Old 10-20-2010, 09:35 PM
Ville Skyttä
 
Default unowned dirs

On Thursday 21 October 2010, Neal Becker wrote:

> Right now I have:
> %dir %{python_sitearch}/mercurial
> %dir %{python_sitearch}/hgext
>
> I guess owning the parent dirs is not sufficient?

Right.

> I could auto-generate a list of directories, but don't know what to do with
> it.
>
> Right now, I auto-generate lists of files, which are then used as:
> %files -f %{name}-base+hg.lang.files

Something like this in an appropriate place in %install should work
(untested):

find $RPM_BUILD_ROOT%{python_sitearch}/{mercurial,hgext}/* -type d
| sed -e "s|^$RPM_BUILD_ROOT(.*)|%%dir 1|" >> %{name}-base+hg.lang.files

(Or drop the "/*" and the explicitly listed mercurial and hgext %dir's you now
have in %files.)
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 
Old 10-20-2010, 09:49 PM
Neal Becker
 
Default unowned dirs

Ville Skyttä wrote:

> On Thursday 21 October 2010, Neal Becker wrote:
>
>> Right now I have:
>> %dir %{python_sitearch}/mercurial
>> %dir %{python_sitearch}/hgext
>>
>> I guess owning the parent dirs is not sufficient?
>
> Right.
>
>> I could auto-generate a list of directories, but don't know what to do
>> with it.
>>
>> Right now, I auto-generate lists of files, which are then used as:
>> %files -f %{name}-base+hg.lang.files
>
> Something like this in an appropriate place in %install should work
> (untested):
>
> find $RPM_BUILD_ROOT%{python_sitearch}/{mercurial,hgext}/* -type d
> | sed -e "s|^$RPM_BUILD_ROOT(.*)|%%dir 1|" >>
> | %{name}-base+hg.lang.files
>
> (Or drop the "/*" and the explicitly listed mercurial and hgext %dir's you
> now have in %files.)

So I can have:
%dir blah

in a file included by -f? Didn't know that. (Wonder if it's documented?)

--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 
Old 10-20-2010, 09:50 PM
Orcan Ogetbil
 
Default unowned dirs

On Wed, Oct 20, 2010 at 5:14 PM, Adam Jackson wrote:
> On Wed, 2010-10-20 at 17:07 -0400, Neal Becker wrote:
>
>> BTW, it's annoying that rpm allows only 1 %files -f.
>
> http://rpm.org/wiki/Releases/4.8.0
>
> %files now accepts multiple filelists through -f (ticket #70,
> RhBug:475359)
>

What is wrong with
cat list1 list2 list3 > listall
%files -f listall

or even
cat list1 list2 >> list3
%files -f list3

Orcan
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 
Old 10-20-2010, 09:55 PM
Neal Becker
 
Default unowned dirs

Orcan Ogetbil wrote:

> On Wed, Oct 20, 2010 at 5:14 PM, Adam Jackson wrote:
>> On Wed, 2010-10-20 at 17:07 -0400, Neal Becker wrote:
>>
>>> BTW, it's annoying that rpm allows only 1 %files -f.
>>
>> http://rpm.org/wiki/Releases/4.8.0
>>
>> %files now accepts multiple filelists through -f (ticket #70,
>> RhBug:475359)
>>
>
> What is wrong with
> cat list1 list2 list3 > listall
> %files -f listall
>
> or even
> cat list1 list2 >> list3
> %files -f list3
>
> Orcan

That's what I used to do. It's annoying (I have a low tolerance)

--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 
Old 10-21-2010, 08:09 AM
Michael Schwendt
 
Default unowned dirs

On Wed, 20 Oct 2010 17:49:56 -0400, Neal wrote:

> So I can have:
> %dir blah
>
> in a file included by -f? Didn't know that. (Wonder if it's documented?)

It's an "include file" afterall. You can use other macros than only %dir.
Or what do you think about how %find_lang works, for example?
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 

Thread Tools




All times are GMT. The time now is 06:18 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org