OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Mar 29, 2024 12:52 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Arcrascent OS
PostPosted: Wed Dec 10, 2014 6:33 pm 
Offline
Member
Member
User avatar

Joined: Wed Mar 21, 2012 3:01 pm
Posts: 930
Hi,

In response to your build system script that does everything and pokes what it shouldn't, I wrote a wiki article on what I think is wrong with this approach: http://wiki.osdev.org/Hard_Build_System

I encourage you to merely document what needs to be done and trust the user to do it.

I have no idea why you need to mess with /usr/bin/gcc but it scares the **** out of me. You do know there is such a thing as $PATH, right?

If you're going to grant us access to your code upon request anyways, you might as well just open it up anyway. My interest is cursory and I don't know what to expect, I'm not going to explicitly ask for access as that implies I am obligated to look closely. Chances are, if you release the sources freely, nobody is going to care in a negative way. (It's hard enough to make anyone pay mind to my freely available OS.) On a personal note, I find the source code of hobbyist operating systems much more interesting than a mere binary release or screenshots. You present nothing to play with or comment on here, I don't understand the purpose of this topic? A bit premature? But that's just my personal feelings, I'm happy to see active osdevers regardless of how far they are public releasewise. :)


Top
 Profile  
 
 Post subject: Re: Arcrascent OS
PostPosted: Wed Dec 10, 2014 8:45 pm 
Offline
Member
Member
User avatar

Joined: Mon Jun 16, 2014 5:33 pm
Posts: 213
Location: Costa Rica
As I think open software is the way, I don't see any objective in making it closed source. Think of it a little bit: every OSDever on here has its own project. Almost no one here takes care of the other ones' projects. BUT, we certainly, even not noticing it, participate other projects when answering/posting threads. Please don't misunderstand me. I'm only presenting my personal opinion. If you wanna make it privative and/or lucrative software, it's your software :roll: .

Touching the other topic; I don't know how sortie makes those stuffed wiki articles from nowhere; but that's for another thread :wink: . Think more in depth about it: what if /usr/bin/gcc isn't a symlink? That's merely possible (in a fucked up system). What if BTW it's NOT the GNU Compiler Collection, but rather something a crazy servermaster put in there? Also, if you're working in Ubuntu it's even worse. APT and friends use /usr/xxx for package-managed stuff. If you still wanna install something system-wide, do it in /usr/local/xxx at least! Or even better, modify your script to use the system's utilities.

Let's do an experiment:
1- Compile and install GCC (GNU C Compiler...) with these flags:
Code:
--prefix=/usr --program-prefix=""

2- Let's run your buildscript...
3- Congratulations! You just trashed GCC with and older version! Also, you now have LOTS of bloated /usr folders due to the old GCC's libraries and runtime support. Also, you took 30 minutes to build GCC (x2 with that of your buildscript) and went nowhere!

What happens? The servermaster will come and see what you just did with his lovely GCC. The webmaster will then execute this on his terminal:
Code:
sudo userdel -r you

:mrgreen: :mrgreen: :mrgreen:

_________________
Happy New Code!
Hello World in Brainfuck :D:
Code:
++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.


Top
 Profile  
 
 Post subject: Re: Arcrascent OS
PostPosted: Sun Aug 23, 2015 12:35 am 
Offline
Member
Member
User avatar

Joined: Mon Nov 03, 2014 2:20 pm
Posts: 27
Location: Seoul, South Korea
KemyLand wrote:
Let's do an experiment:
1- Compile and install GCC (GNU C Compiler...) with these flags:
Code:
--prefix=/usr --program-prefix=""

2- Let's run your buildscript...
3- Congratulations! You just trashed GCC with and older version! Also, you now have LOTS of bloated /usr folders due to the old GCC's libraries and runtime support. Also, you took 30 minutes to build GCC (x2 with that of your buildscript) and went nowhere!

What happens? The servermaster will come and see what you just did with his lovely GCC. The webmaster will then execute this on his terminal:
Code:
sudo userdel -r you

:mrgreen: :mrgreen: :mrgreen:


Good one, @KemyLand :mrgreen:

_________________
Joonyoung Lee
Student at 한성과학고등학교(Hansung Science High School) & Ambitious OSDever
Arcrascent OS | Source <-- My OSDev Project
“One of my most productive days was throwing away 1000 lines of code.” - Ken Thompson


Top
 Profile  
 
 Post subject: Re: Arcrascent OS
PostPosted: Sun Aug 23, 2015 12:15 pm 
Offline
Member
Member

Joined: Sat Mar 01, 2014 2:59 pm
Posts: 1146
sortie wrote:
You do know there is such a thing as $PATH, right?
Actually you don't need to fiddle with $PATH at all. Just use relative paths to executable files. So if you're in "/home/my_user/osdev_build/" and you want to execute "/home/my_user/osdev_build/build_tools/custom_gcc", you don't have to "sudo cp /home/my_user/osdev_build/build_tools/custom_gcc" to "/usr/bin/gcc" and then "gcc <args>" you can just "./build_tools/custom_gcc <args>" and it will do the same thing without messing up the system's gcc.

_________________
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 31 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group