r/programming • • Mar 10 '11

It's time to stop using Subversion

http://altdevblogaday.org/2011/03/09/its-time-to-stop-using-subversion/
257 Upvotes

543 comments sorted by

View all comments

Show parent comments

1

u/kreiger Mar 14 '11

Include the dependencies in the project instead of installing them.

1

u/[deleted] Mar 14 '11

I take it you mean, automate the install of the deps the same way I install the project? I spoke to one of the team leaders, he says that wouldn't be efficient and it's not the way things are done. Besides, there would be far too many to include...

1

u/kreiger Mar 14 '11

I mean, include the dependencies in the project repo, so the build system will get them at the same time as the project.

"Not the way things are done" isn't a complete argument, and i think the efficiency argument needs some more fleshing out. You need to get the dependencies some way, and it's best if it is automatically reproducible.

1

u/[deleted] Mar 14 '11

Like I said there are a lot of deps. If you're interested trying running "apt-rdepends wireshark"...

The build system builds my project source just like it would have to with the dependencies. I could find RPMs for some of them but it would still be a hefty task.

Anyway the team leader suggested I pull in the dependencies from a public server that the company uses and that's what I'm working on right now. It's not on the same server as projects but it'll insure that the program can be build in our labs...

Anyway, I'm a student on my first work term so sorry if I don't fully grasp what you mean...

1

u/kreiger Mar 14 '11

If you can pull in well-specified dependencies from a central server, that is fine too. As long as it is automatically reproducible.

What i was talking about was for example having a subdirectory "lib" or similar, which contained all the already built dependencies. In the Java case that would be a bunch of jar-files. But as i understand it you're coding in C which is slightly harder with its platform dependency.

1

u/[deleted] Mar 14 '11

Well don't build-packages go in multiple directories? /usr/bin, /usr/lib etc...

Anyway, right now my issue is pulling in the packages from my change-root jail...

1

u/kreiger Mar 14 '11 edited Mar 14 '11

I mean you'd put them in <project>/deps/lib (or similar), and reference them there instead of installing them in the system.

1

u/[deleted] Mar 14 '11

Sounds a little complex; I've never done that before...

1

u/kreiger Mar 14 '11 edited Mar 14 '11

I've never done it with C code myself, but you'd probably use the -I and -L parameters of the C compiler to tell it where to find the includes and libraries in the project. And you'd need a <project>/deps/include for the *.h files.

1

u/[deleted] Mar 15 '11

Uggh! Sounds like a lot of reading and troubleshooting to me lol.

The thing is any of the upper level dev team members could probably solve this issue in less than a day. It would be no problem for them. But I'm brand new to all of this. The build system, using git, even linux(I've only been using it for 3 months).

Anyway, thanks for your input. In all likelihood I'll have to ask someone to sit down with me and help me out.