[opensuse-buildservice] chmod after unpacking
Hello, i had in my %setup: %setup -q -n skrooge %Patch1 -p1 Now i would chmod a file after unpack. The absolute PATH is: /skrooge/po/listFiles.sh Now must: chmod +x listFiles.sh. How can i insert this in my spec? Which format? -- Sincereley yours Sascha Manns Open-News-Network e.V. Web: http://saschamanns.gulli.to -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Sascha Manns escribió:
How can i insert this in my spec?
at the very beggining of the %build section, like this: %build chmod -x skrooge/po/listFiles.sh -- "Good, Fast, Cheap: Pick any two (you can't have all three)." Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/
On Montag 03 November 2008 22:33:05 Sascha Manns wrote:
Hello,
i had in my %setup: %setup -q -n skrooge %Patch1 -p1
Now i would chmod a file after unpack. The absolute PATH is: /skrooge/po/listFiles.sh Now must: chmod +x listFiles.sh.
How can i insert this in my spec? Which format?
In most cases, it is better not to do a chmod, but just to package the file with different rights/ownership: %attr(0755,-,-) /your_file in the file list. bye adrian -- Adrian Schroeter SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Dienstag 04 November 2008 08:31:07 Adrian Schröter wrote:
On Montag 03 November 2008 22:33:05 Sascha Manns wrote:
Hello,
i had in my %setup: %setup -q -n skrooge %Patch1 -p1
Now i would chmod a file after unpack. The absolute PATH is: /skrooge/po/listFiles.sh Now must: chmod +x listFiles.sh.
How can i insert this in my spec? Which format?
In most cases, it is better not to do a chmod, but just to package the file with different rights/ownership:
%attr(0755,-,-) /your_file
in the file list.
Sorry, you want to run the script during build ? You can just run the chmod in %build section before. But I personally prefer just to write "bash .../listFile.sh" in the spec file to select the right interpreter. bye adrian -- Adrian Schroeter SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Mon, Nov 03, 2008 at 10:33:05PM +0100, Sascha Manns wrote:
i had in my %setup: %setup -q -n skrooge %Patch1 -p1
Now i would chmod a file after unpack. The absolute PATH is: /skrooge/po/listFiles.sh
Are you saying that a file from a tar archive is unpacked with the wrong permissions? Sounds like a bug to me. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hello Michael, Am Dienstag 04 November 2008 10:01:48 schrieb Michael Schroeder:
Now i would chmod a file after unpack. The absolute PATH is: /skrooge/po/listFiles.sh Are you saying that a file from a tar archive is unpacked with the wrong permissions? Sounds like a bug to me. Yes. If i build normaly the Package, the build fails: listFiles.sh Permission denied. If i make chmod on this file, the build finished. I must make chmod before compiling...
-- Sincereley yours Sascha Manns Open-News-Network e.V. Web: http://saschamanns.gulli.to -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hello @all, Am Montag 03 November 2008 22:33:05 schrieb Sascha Manns:
Now i would chmod a file after unpack. The absolute PATH is: /skrooge/po/listFiles.sh Now must: chmod +x listFiles.sh. I've solved the Problem. I changed the upstream. Thanks to all who answered me :-) -- Sincereley yours
Sascha Manns Open-News-Network e.V. Web: http://saschamanns.gulli.to -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (4)
-
Adrian Schröter
-
Cristian Rodríguez
-
Michael Schroeder
-
Sascha Manns