[opensuse-buildservice] Deleting .svn directories
Hi, I'm stuck with something that should be pretty simple, I'm trying to delete .svn directories as part of the build process for a package, "find" appears to find the directories but while trying to delete them it gets "No such file or directory". As this is reaaaaaally basic and is not working, is there any OBS particularity that would cause this?. Ref: https://build.opensuse.org/package/live_build_log?arch=x86_64&package=kannel&project=home%3Aciriarte%3ASLES-missing&repository=SLE_11_SP2 Regards, -- Ciro Iriarte http://cyruspy.wordpress.com -- -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Mon, 11 Jun 2012 07:54:21 -0400
Ciro Iriarte
Hi, I'm stuck with something that should be pretty simple, I'm trying to delete .svn directories as part of the build process for a package, "find" appears to find the directories but while trying to delete them it gets "No such file or directory".
As this is reaaaaaally basic and is not working, is there any OBS particularity that would cause this?.
Regards,
Hi Grab the source with the export command eg; svn export -r175 http://gimp-dds.googlecode.com/svn/trunk/ gimp-dds Else something like; # Remove cvs files find source/ -name .svn* -exec rm {} \; find examples/ -name .svn* -exec rm {} \; -- Cheers Malcolm °¿° (Linux Counter #276890) openSUSE 12.1 (x86_64) Kernel 3.1.10-1.9-desktop up 7:37, 4 users, load average: 0.13, 0.06, 0.05 CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On 11 июня 2012 07:54:21 Ciro Iriarte wrote:
Hi, I'm stuck with something that should be pretty simple, I'm trying to delete .svn directories as part of the build process for a package, "find" appears to find the directories but while trying to delete them it gets "No such file or directory".
As this is reaaaaaally basic and is not working, is there any OBS particularity that would cause this?.
Maybe you need write that find . -name .svn -exec rm -rf {} \; or find . -name .svn -print0 | xargs -0 rm -rf -- Friendly openSUSE Community -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
2012/6/11 EGD
On 11 июня 2012 07:54:21 Ciro Iriarte wrote:
Hi, I'm stuck with something that should be pretty simple, I'm trying to delete .svn directories as part of the build process for a package, "find" appears to find the directories but while trying to delete them it gets "No such file or directory".
As this is reaaaaaally basic and is not working, is there any OBS particularity that would cause this?.
Maybe you need write that
find . -name .svn -exec rm -rf {} \;
It was already like that, wasn't it?
or
find . -name .svn -print0 | xargs -0 rm -rf
That did it..
-- Friendly openSUSE Community --
Thanks! -- Ciro Iriarte http://cyruspy.wordpress.com -- -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On 11 июня 2012 14:14:47 Ciro Iriarte wrote:
2012/6/11 EGD
: On 11 июня 2012 07:54:21 Ciro Iriarte wrote:
Hi, I'm stuck with something that should be pretty simple, I'm trying to delete .svn directories as part of the build process for a package, "find" appears to find the directories but while trying to delete them it gets "No such file or directory".
Maybe you need write that
find . -name .svn -exec rm -rf {} \;
It was already like that, wasn't it?
Will not know until you try it... :) -- Friendly openSUSE Community -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Monday, June 11, 2012, Ciro Iriarte
Hi, I'm stuck with something that should be pretty simple, I'm trying to delete .svn directories as part of the build process for a package, "find" appears to find the directories but while trying to delete them it gets "No such file or directory".
As this is reaaaaaally basic and is not working, is there any OBS particularity that would cause this?.
Ref: https://build.opensuse.org/package/live_build_log?arch=x86_64&package=kannel &project=home%3Aciriarte%3ASLES-missing&repository=SLE_11_SP2
Hi, I had a look also at your specfile and noticed two things: 1) Why do you perform a rm -rf %{buildroot} just before you perform the installation of your package ? 2) As that you already uploaded the source and build them, why do you want to remove these .svn directories ? I am sure that they won't cause any issues during the installation of the package and in the end this wouldn't do anything. The source tarball is not affected and the .svn directories are not being installed. Regards Raymond -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
2012/6/11 Raymond Wooninck
On Monday, June 11, 2012, Ciro Iriarte
wrote: Hi, I'm stuck with something that should be pretty simple, I'm trying to delete .svn directories as part of the build process for a package, "find" appears to find the directories but while trying to delete them it gets "No such file or directory".
As this is reaaaaaally basic and is not working, is there any OBS particularity that would cause this?.
Ref: https://build.opensuse.org/package/live_build_log?arch=x86_64&package=kannel &project=home%3Aciriarte%3ASLES-missing&repository=SLE_11_SP2
Hi,
I had a look also at your specfile and noticed two things:
1) Why do you perform a rm -rf %{buildroot} just before you perform the installation of your package ?
Hmm, in fact, it was already there in the original spec file, probably to make sure that no strange files or files from a previous attempt are there.
2) As that you already uploaded the source and build them, why do you want to remove these .svn directories ? I am sure that they won't cause any issues during the installation of the package and in the end this wouldn't do anything. The source tarball is not affected and the .svn directories are not being installed.
OBS complains with ".svn" is not allowed anymore or something along the lines... Those get copied in /usr/share/doc/packages.
Regards
Raymond
Regards, -- Ciro Iriarte http://cyruspy.wordpress.com -- -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Monday 11 June 2012, Ciro Iriarte wrote:
Hi, I'm stuck with something that should be pretty simple, I'm trying to delete .svn directories as part of the build process for a package, "find" appears to find the directories but while trying to delete them it gets "No such file or directory".
As this is reaaaaaally basic and is not working, is there any OBS particularity that would cause this?.
Ref: https://build.opensuse.org/package/live_build_log?arch=x86_64&package =kannel&project=home%3Aciriarte%3ASLES-missing&repository=SLE_11_SP2
IMO your command find . -name .svn -exec rm -rf '{}' ';' works a expected but after deleting a particular .svn directory find still wants to enter it for further search and complains that this is not possible. These are just warnings which you would usually always expect if you delete directories while you have a find running on them. Generally it's a good idea to use xargs instead of -exec: find . -name ".svn" | xargs rm -rf cu, Rudi
Regards,
-- Ciro Iriarte http://cyruspy.wordpress.com -- -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
IMO your command find . -name .svn -exec rm -rf '{}' ';'
find . -name .svn -delete This also enables the -depth option, which deleted the directory contents before the directory. Perhaps that helps? Yours sincerely, Roger Oberholtzer OPQ Systems / Ramböll RST Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholtzer@ramboll.se ________________________________________ Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
2012/6/11 Roger Oberholtzer
IMO your command find . -name .svn -exec rm -rf '{}' ';'
find . -name .svn -delete
This also enables the -depth option, which deleted the directory contents before the directory. Perhaps that helps?
Yours sincerely,
Roger Oberholtzer
OPQ Systems / Ramböll RST
Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholtzer@ramboll.se ________________________________________
Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se
Tried your suggestion, it doesn't fail with "No such file" but it gives me: find: cannot delete `./solaris/etc/.svn': Directory not empty find: cannot delete `./solaris/.svn': Directory not empty In theory, -delete implies -depth also. Regards, -- Ciro Iriarte http://cyruspy.wordpress.com -- -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (6)
-
Ciro Iriarte
-
EGD
-
Malcolm
-
Raymond Wooninck
-
Roger Oberholtzer
-
Ruediger Meier