LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 120 70.18%
No 45 26.32%
Not sure 6 3.51%
Voters: 171. You may not vote on this poll

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

Rep: Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241

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, 05:42 PM   #32
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 3,980
Blog Entries: 1

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
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, 06:02 PM   #33
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.7.1908
Posts: 4,072

Rep: Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386
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, 10:25 AM   #34
acamara
LQ Newbie
 
Registered: Oct 2009
Posts: 1

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 10:26 AM. Reason: grammar
 
Old 10-20-2019, 11:23 AM   #35
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,644

Rep: Reputation: 111Reputation: 111
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, 01: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 02:14 PM.
 
Old 10-20-2019, 03: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, 07:22 PM   #38
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,745

Rep: Reputation: 684Reputation: 684Reputation: 684Reputation: 684Reputation: 684Reputation: 684
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, 08:39 PM   #39
DaveC49
LQ Newbie
 
Registered: Aug 2016
Posts: 3

Rep: Reputation: Disabled
Yes
 
Old 11-05-2019, 08:48 AM   #40
//////
Member
 
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: Arch x86_64 | Xubuntu 18.04 bridge | Fedora 31 | windows 10 pro
Posts: 436

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

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, 03:42 PM   #42
System59
LQ Newbie
 
Registered: Jun 2019
Location: The Netherlands
Distribution: Arch-Linux | Xfce
Posts: 1

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

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, 04:51 PM   #44
bgstack15
Member
 
Registered: Jul 2017
Distribution: korora
Posts: 68

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 04:52 PM. Reason: add content
 
Old 11-06-2019, 05:26 PM   #45
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 1,244

Rep: Reputation: 570Reputation: 570Reputation: 570Reputation: 570Reputation: 570Reputation: 570
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 05:29 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05: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 04: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 09:09 PM
i think that i will never ever ever ever switch to mac teamstatic84 General 11 01-03-2004 01:25 PM
Have you ever made a donation or a purchase to an open source organisation/project ? dukeinlondon Linux - General 8 11-14-2003 06:41 AM

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

All times are GMT -5. The time now is 10:14 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration