LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


View Poll Results: Have you ever modified the source code of an open source application?
Yes 352 58.37%
No 224 37.15%
Not sure 27 4.48%
Voters: 603. You may not vote on this poll

Reply
  Search this Thread
Old 10-19-2019, 03:10 PM   #31
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196

Yes, I have modified code and then used the modified versions for my own purposes numerous times.

My one effort to contribute substantial code to an existing project left me sour, and I have not had much enthusiasm for such things since. In that case, after contributing code for a significant new feature, and having it accepted, as well as money, a few suggestions and bug fixes, the originator of the application abruptly took it all proprietary with the next major version - binary only by subscription - thank you very much...

I continued to maintain, extend and use the final free code base for several years (still do, but have now shifted my use to another application). I also joined a fork of the project initiated by others and contributed much effort and code to that, but due to conflicting visions and lack of clear leadership that project fragmented and died a quiet death.

As far as submitting my changes back to other projects, not as often. I do not often think that my own changes are significant enough or would be particularly useful to others unless they are an actual bugfix. In the case of bug fixes, I have submitted a few but nothing much worthy of note.
 
Old 10-19-2019, 04:42 PM   #32
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Yes. When the gcc compiler updated to be more picky about the "style" of x86 assembler. One file in the linux kernel had 3x styles of assembler in it, preventing the kernel from compiling. I converted the other two styles to the one that worked and successfully compiled that kernel. The next patch that came out contained the fixes for that as well, so I never got to submit a patch or anything, but I used it. Although functionally it changed nothing other than the ability to compile the source.

When I was getting into video editing via command line, I modified ppmchange to do green screen masks. Since my lighting sucked and things were more yellow than green. So adding custom code to be more tailored to the conditions helped accomplish the task of sorts.

Beyond that I've written a number of bash scripts over the years. Mostly to remember complex command options for me. Or to do rather repetitive math in variable conditions. One script launches a few Xephyr windows and uses Xdmx to stack them vertically, and launch a really tall xterm in that X session. Not so useful for editing code, but pretty useful for looking at large source files, or seeing long ps outputs on ONE 1080p screen. Or viewing the entire man page for hier on one 1080p screen. Or one I did scrubs iwlist output to put the relevant network details one line per network with signal strength as the first part so I can sort it by quality. Not so much change as in creation in those instances.
 
1 members found this post helpful.
Old 10-19-2019, 05:02 PM   #33
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,732

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Quote:
Originally Posted by MannyVel View Post
I have never "modified the source code of an open source application".
BUT....

..... I HAVE programmed in Basic, Pascal, C, DOS, Unix/Linux Shell, SQL, MS Access, Python.
..... I HAVE used graphical code debuggers that trace the code execution visually line by line, loop by loop.
..... I HAVE compiled code into applications for use on different systems

sooOOoo .... what difference does it make if it's 'Open source applications' ?

Am I missing something here?
Just curious.
My 2 cents:
I too started by making computers do what people wanted them to do, and long enough ago that I've written two general ledger systems, an accounts payable system, complete inventory control systems for both materials and product "from blank screens" long before such systems/applications were available off the shelf. Those were all proprietary, of course, as they were owned by the companies that employed me to write them.

I believe the point of the poll and thread is that with the advent of open source, one can now modify the "off the shelf" software without asking permission of anyone to do so, albeit at their own risk of course.
As can be seen by the responses, many have done just that.
As I said, I've never chosen to do that beyond applying patches that other wrote, which I classified as a "No" answer to the pool.
 
Old 10-20-2019, 09:25 AM   #34
acamara
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
yes, by the past

I did it with php until the 5.6 version to jail an application under some directories

Last edited by acamara; 10-20-2019 at 09:26 AM. Reason: grammar
 
Old 10-20-2019, 10:23 AM   #35
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Yes a kernel module, the bttv for my TV tuner card. It would always default to the PAL European standard, I needed NTSC to use it here in Canada. I checked the source trying to figure it out and found the place where it was set when loaded and changed it to the correct version. I did this for months every time I upgraded the kernel on my install, then I discovered you could pass an option to a module on boot to have it load the correct option and never had to do it again.
 
Old 10-20-2019, 12:39 PM   #36
sjekoken
LQ Newbie
 
Registered: May 2009
Posts: 2

Rep: Reputation: 0
Yes, but not in production

Yes and no. I'll alter source code sometimes in a sandbox environment (1) as part of learning what the software does and how it does it; and (2) as an easy way to check out whether the changes I want were worth doing an add-on or a module.

There are four reasons I've never messed with source code in a production environment ... (1) I don't want to get sued; (2) Having to stop and redo everything Everytime an update is released; (3) chance of opening a security vulnerability that no one other than a hacker would ever think to look for; and (4) never really had the need.

Last edited by sjekoken; 10-20-2019 at 01:14 PM.
 
Old 10-20-2019, 02:23 PM   #37
Gruddy42
LQ Newbie
 
Registered: Aug 2018
Location: Anaheim, CA
Distribution: OpenSuse Leap & Tumbleweed, Yggdrasil & slackware (both long ago)
Posts: 1

Rep: Reputation: Disabled
Talking

Yes, but it has been a long time. I downloaded my first Linux as source code through a D.C. Hayes 2400 ( it was probably for Slackware 0.93 ) and compiled it on a homebrew 386 running a microsoft o/s. Lots had to fiddled with. Later on I got Coherent and had to disassemble and prod around to get some things working.
 
Old 10-20-2019, 06:22 PM   #38
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Yes
modified a wm for my own use, modded and built a bootable CD both for LFS and released back onto github here:
https://github.com/KeithDHedger
also adapted xsnow, runnit init system with some others for LFS, submitted vario8s bugs and patches to open source projects eg xterm.
 
Old 11-04-2019, 07:39 PM   #39
DaveC49
LQ Newbie
 
Registered: Aug 2016
Posts: 3

Rep: Reputation: Disabled
Yes
 
Old 11-05-2019, 07:48 AM   #40
//////
Member
 
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: Arch Linux && OpenBSD 7.4 && Pop!_OS && Kali && Qubes-Os
Posts: 824

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
yes, some minor modifications.
 
Old 11-06-2019, 09:55 AM   #41
billmoss
LQ Newbie
 
Registered: Mar 2008
Location: NYC
Distribution: slackware, devuan, freeBSD
Posts: 8

Rep: Reputation: 0
printers and such

In the past, printer support for Linux was poor. I would find a similar printer or a module purported to work, and modify it to actually work. I did all of this in ANSI C. Today, for such things as scanners and multi-function devices that are not supported, I run MS Windows in a VM, just easier.
 
Old 11-06-2019, 02:42 PM   #42
System59
LQ Newbie
 
Registered: Jun 2019
Location: The Netherlands
Distribution: debian
Posts: 3

Rep: Reputation: Disabled
I made and develop snippets for Wordpress
 
Old 11-06-2019, 03:28 PM   #43
a-ry
LQ Newbie
 
Registered: Jan 2019
Location: USA
Distribution: Centos, RHEL, Ubuntu
Posts: 4

Rep: Reputation: Disabled
Yes, long ago, before Linux times. Added some debugging switches into sendmail under Solaris. Not sure it counts,
 
Old 11-06-2019, 03:51 PM   #44
bgstack15
Member
 
Registered: Jul 2017
Distribution: korora
Posts: 90

Rep: Reputation: Disabled
I have contributed two pull requests to Cinnamon, the desktop environment used and written by the Linux Mint team. They were very small. I have patched some small projects so they compile in my target distros: usually I revert to previous versions' code because the application upstream follows his dependencies' upstreams aggressively and my distros don't. Sometimes compile flags need to be adjusted, so that may not count. I modify a few hard-coded strings.

I hate Debian's packaging of libdvdcss (I think it was) so I package it myself.

Last edited by bgstack15; 11-06-2019 at 03:52 PM. Reason: add content
 
Old 11-06-2019, 04:26 PM   #45
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,806

Rep: Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207
In the 90s and Y2k I did it very often.

We had a News reader "xvnews" that in year 2000 started to display the posts with wrong dates. A Y2k bug!
So I dived into the C source code, and there was a long section that tried to represent each date in the receivers time zone.
After an hour I still did not find the error, but then I simply disabled the call of this conversion code.
It worked! Of course now it showed the date/time of the posters time zone. If one was really interested in a local date/time one could use a time zone converter in the (just emerging) Internet.

Also I adapted the lpd source code from BSD for Solaris 2.4, in order to replace its awful SysV lpsched.
Worked out great; big thanks to BSD for their portable and versatile code!
Later (in Solaris 2.6 I think) Sun replaced the lpsched by the successor of their experimental "SunSoft Print Client" that was compatible with both lpsched and lpd. My lpd was no longer needed.

Last edited by MadeInGermany; 11-06-2019 at 04:29 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I modified the AODV code part of NS2.31 for selecting a node which have minumamenergy lakshmanarao.k Programming 1 03-11-2015 04:51 PM
LXer: If You've Ever Sold a Used iPod, You May Have Violated Copyright Law LXer Syndicated Linux News 0 06-14-2012 03:10 AM
LXer: "What's this 'DEEE-bee-en' you write about?" Or will Linux ever (ever?) make its move on the d LXer Syndicated Linux News 5 12-21-2010 08:09 PM
i think that i will never ever ever ever switch to mac teamstatic84 General 11 01-03-2004 12:25 PM
Have you ever made a donation or a purchase to an open source organisation/project ? dukeinlondon Linux - General 8 11-14-2003 05:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration