Modify source and compiling

Raspbian

If I had a necessity to modify the program according to my needs, where can I download the source code and that attention should I use to compile (using only raspberry)?

--

+---------------------------------------------------------------------------+ | La paranza e' la danza di una stronza che, sull'isola di Ponza, | | si tirava la patonza. | +-----#21--------------------Campagna contro le pubblicita` idiote.---------+
Reply to
BIG (Umberto)
Loading thread data ...

Which program?

The sources for most of the packages are available from the Raspbian repository. Most o the rest, like the kernel, are downloadable from github.

Reply to
Dom

If it's Raspbian: apt-get source packagename

will get the source. Then run debian/rules inside it to rebuild the package (there are various targets, it's a bit like a makefile). Read up on building Debian packages for more details.

Theo

Reply to
Theo Markettos

ha scritto:

pam_storepw.c from:

formatting link

Ok added deb-src in /etc/sources.list.

Now I have the source of pam-1.1.3 (from raspbian repository) in my /tmp. I have pam_storepw.c and Makefile in /tmp

-rw-r--r-- 1 pi pi 760 Feb 27 07:30 Makefile drwxr-xr-x 14 pi pi 4096 Feb 27 07:15 pam-1.1.3

-rw-r--r-- 1 pi pi 273542 May 4 2012 pam_1.1.3-7.1.diff.gz

-rw-r--r-- 1 pi pi 3095 May 4 2012 pam_1.1.3-7.1.dsc

-rw-r--r-- 1 pi pi 1768872 Apr 11 2012 pam_1.1.3.orig.tar.gz

-rw-r--r-- 1 pi pi 2925 Feb 27 07:32 pam_storepw.c

But do not know how to compile it ...

--
+---------------------------------------------------------------------------+ 
|  Un tacchino all'agnello: Buona pasqua!                                   | 
|  L'agnello al tacchino: Vaffaculo, buon Natale!                           | 
+-----#23------------------------Campagna contro gli auguri idioti.---------+
Reply to
BIG (Umberto)

sudo apt-get build-dep PACKAGENAME apt-get source PACKAGENAME

then go into the source directory, modift it and then do

debian/rules binary that'll make one or more packages

sudo dpkg --install FILENAME.deb

--
Neither the pheasant plucker, nor the pheasant plucker's son.
Reply to
Jasen Betts

What happens if you cd to the directory and run make?

Reply to
Rob Morley

comp.sys.raspberry-pi ha scritto:

Makefile:20: *** missing separator. Stop.

--

+---------------------------------------------------------------------------+ | Avevo un lavoro, un posto fisso che mi rendeva bene e ci mantenevo tutta | | la famiglia. Poi un giorno e' arrivato un tale, che mi ha detto: | | Lazzaro, alzati e cammina! Da quel momento ho perso il posto, il lavoro e | | sono finito in miseria. | +-----#30-----------------Campagna contro i miracoli non richiesti.---------+
Reply to
BIG (Umberto)

Is there a file named "configure" in the directory? If so, what happens if you run "./configure" ?

Reply to
Rob Morley

comp.sys.raspberry-pi ha scritto:

This is the problem. Not exist!

--

+---------------------------------------------------------------------------+ | Aho e che palle, so' tre giorni che ci sminchiazzi le cosiddette! | | Ma la sera ci dai di get/put o ti limiti all'handshaking e ti vieni a | | sfogare co' noi? | +-----#32--------------------Campagna contro le pubblicita` idiote.---------+
Reply to
BIG (Umberto)

That is not the same Makefile as the one at the URL you quote.

Previously:

^^^

araminta$ wget

formatting link

--2014-02-27 21:54:47--

formatting link
Resolving oss.gonicus.de (oss.gonicus.de)... 212.8.3.163 Connecting to oss.gonicus.de (oss.gonicus.de)|212.8.3.163|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 743 [text/plain] Saving to: `Makefile?

100%[======================================>] 743 --.-K/s in 0s 2014-02-27 21:54:48 (14.9 MB/s) - `Makefile? saved [743/743]

araminta$ ls -l Makefile

-rw-rw-r-- 1 richard richard 743 Jun 26 2009 Makefile ^^^

--
http://www.greenend.org.uk/rjk/
Reply to
Richard Kettlewell

Probably retrieved with FTP in textmode on a Windows system? That does not work for Linux textfiles.

Reply to
Rob

Not consistent with the actual size.

--
http://www.greenend.org.uk/rjk/
Reply to
Richard Kettlewell

Ok, normally the file will be larger by as many bytes as there are lines in the file. That seemed reasonable for those given sizes.

Reply to
Rob

comp.sys.raspberry-pi ha scritto:

Sorry, is the _same_ file! I have added some linees of _comments_ (the url of download)!

--
+-------------------------------------------------------------------------+ 
|  Maurizia Paradiso:                                                     | 
| "Se danno la grazia a Berlusconi vado a Londra, mi faccio riattaccare   | 
|  l'uccello e me lo taglio con una motosega, per protesta."              | 
+-----#45--------------------Diamanti di saggezza.------------------------+
Reply to
BIG (Umberto)

Hint: nobody is going to be able to tell you what is wrong with your makefile if they cannot see it.

--
http://www.greenend.org.uk/rjk/
Reply to
Richard Kettlewell

I advise you to wait with such self-invented actions until you fully understand the matter.

You have probably introduced errors in the Makefile with your modifications. This could be simple things like saving it in MS-DOS text format (CR/LF instead of LF), expanding tabs into spaces, or adding things that are not syntactically correct.

The first steps in exploring a new topic is always to reproduce the results that others have achieved. Only when you are able to do that, you should try steps like modifying something and see if it still works or works even better.

Reply to
Rob

Rob in data 12:42, sabato 01 marzo 2014, nel gruppo comp.sys.raspberry-pi ha scritto:

I know the use of "comments"!

I am not idiot at this level, sorry! The original Makefile exit with the same error!

Reply to
BIG (Umberto)

I think you are grossly overestimating yourself.

But anyway, I am not going to help a cracker any further.

Reply to
Rob

you need to be in the right directory before executing make... and running as root..

--
Ineptocracy 

(in-ep-toc?-ra-cy) ? a system of government where the least capable to  
lead are elected by the least capable of producing, and where the  
members of society least likely to sustain themselves or succeed, are  
rewarded with goods and services paid for by the confiscated wealth of a  
diminishing number of producers.
Reply to
The Natural Philosopher

Rob in data 14:05, sabato 01 marzo 2014, nel gruppo comp.sys.raspberry-pi ha scritto:

Plonk!

--

+---------------------------------------------------------------------------+ | Etiam eu urna pellentesque, iaculis lectus a, venenatis ante. | | | +-----#1---------------------Campagna contro le pubblicita` idiote.---------+
Reply to
BIG (Umberto)

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.