Author Topic: some contrib unix.cbp problems  (Read 6240 times)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
some contrib unix.cbp problems
« on: December 24, 2006, 08:27:56 pm »
Although I was used to building Cb on linux with made, I finally tried it out with the cbp project files.
A few contrib plugins are giving me (similar) problems [Code Snippets and Library Finder].
Focusing on Code Snippets :
the post build -> execution of ./update gives me errors (i compared it to the ./update of wxSmith, they seem very alike, and the wxSmith one works).
This is the error message :
Quote
Running project post-build steps
./update
/bin/sh: ./update: Permission denied

Even if I comment all lines of the ./update, I still get this error.

[EDIT] : the wxSmith was is reported as "IsExecutable" in the file properties in Suse 10.2, where the CodeSnippet one is not. I put it manually to isexecutable --> problem remains
« Last Edit: December 24, 2006, 08:32:53 pm by killerbot »

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: some contrib unix.cbp problems
« Reply #1 on: December 24, 2006, 10:18:34 pm »
The problem is the 'update' file. In the wxSmith directory it has the executable flag, which is correct. In 'codesnippets' (and probably in the directory of the lib finder, too) it dosn't have this flag, it is just a regular file.
That means: 'chmod +x update' in both directories should fix your problem.

The other thing is: These problems should be fixed in the svn-repository. As I never used the project files (and thus never touched 'update') the access control flags for these files here are the same as after a fresh and clean checkout. That means that somehow the executable flag can be saved in the svn repository and is indeed stored for some of update-scripts. But obviously not for the update-scripts in these two directories. That means that someone with write access to the repository and with the necessary knowledge should be able to fix this ;)
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: some contrib unix.cbp problems
« Reply #2 on: December 24, 2006, 10:27:37 pm »
Strange, although I already made them executable, they lost it again, made them executable again and now it works.
So still to find out, how to update in svn.

[EDIT]
for 1 of the 2 svn commit thinks something has changed, but I don't know how to write the comment for it (yes I don't know vi, and to be honest, what i see from it now makes me angry) :-(  [so I issued svn commit]
[EDIT2] : kdesvn helped me out : so libfinder done  [well I doubt it, in another view, I did the svn update, and it is still not executable, or should a new clean checkout be done ??]

[EDIT3] : will give up for now, pff, other time better luck ;-)
« Last Edit: December 24, 2006, 10:47:55 pm by killerbot »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7790
    • My Best Post
Re: some contrib unix.cbp problems
« Reply #3 on: December 24, 2006, 11:04:26 pm »
Try this; I think this should work under windows, not sure under linux
Code
svn propset svn:executable ON src\plugins\contrib\codesnippets\update
svn propset svn:executable ON src\plugins\contrib\lib_finder\update

Edited command it requires the ON word usage under windows.

Tim S
« Last Edit: December 25, 2006, 01:30:32 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Game_Ender

  • Lives here!
  • ****
  • Posts: 551
Re: some contrib unix.cbp problems
« Reply #4 on: December 25, 2006, 12:17:14 am »
You can also use the make your commands of the form "svn commit -m "My Message here, that didn't require the use of an editor"".  Or you could just change the default editor in your config or environment.  I think SVN either checks a variables in its config file or uses the EDITOR environment variable.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: some contrib unix.cbp problems
« Reply #5 on: December 25, 2006, 10:00:40 am »
thanks for all the info, since I don't have svn on my windows install [in windows for the moment], i tried it out with Tortoise svn and I hoped it worked.
This is what I did : right click in explorer ->Tortoise svn->Properties -> Add
In the drop down box (Property name) choose svn:executable, and as Property value I typed in ON.


Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: some contrib unix.cbp problems
« Reply #6 on: December 25, 2006, 11:05:43 am »
I just ran 'svn update' and now both files have the executable flags. That means it should work now. :)
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.