LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-30-2011, 08:46 AM   #1
DJRcomputing
Member
 
Registered: Mar 2011
Location: /usa/pa/manheim
Distribution: Debian 5 + Xfce
Posts: 64

Rep: Reputation: 6
Question Program pkg modules vs ./configure --with --enable flags


Curiosity, "How do they do it?!" question:

Having gone through PHP ./configure hell to get v5.3.6...

(Why does it wait until AFTER what generates a 2700 line config.log to tell me that I got a flag wrong?? Sometimes it wanted the DIR, sometimes not, and it helps if I don't misspell apxs(2). I lost track of how many times I ran ./configure. *sigh*)

...and with the understanding that if I want to add/enable something in the future, I have to reinstall PHP, how do the Debian devs do it? All one has to do is click on an option in Synaptic later, then apply, and POOF! Added...

Then again, maybe I'm misunderstanding what it takes to change something regarding PHP & other programs if installed from source.
 
Old 05-30-2011, 11:00 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
30 packages are built from "php-5.3.6" http://packages.debian.org/source/sid/php5

wget http://ftp.de.debian.org/debian/pool...3.6-11.diff.gz
zcat php5_5.3.6-11.diff.gz | patch -p1 : To see all the Debian options in
the file 'rules'.

PHP uses unusual many options. Unlike other libraries / aplications.
I haven't build php as Debian packages, but for the php rpm packages
( Fedora ) you have 79 configure options added.

One way of building with "deb build" is :
1) apt-get build-dep php5
2) apt-get -b source php5=5.3.6-11
(The 'deb src <url> sid main etc.' must be added to /etc/apt/sources.list).
You can try it out quite easy : The packages will be built in
/home/<user-name>/<folder>/ , to "the current directory".

..
 
Old 06-02-2011, 08:51 AM   #3
DJRcomputing
Member
 
Registered: Mar 2011
Location: /usa/pa/manheim
Distribution: Debian 5 + Xfce
Posts: 64

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by knudfl View Post
PHP uses unusual many options. Unlike other libraries / aplications.
Glad to know it wasn't just my imagination. Oy.
Quote:
Originally Posted by knudfl View Post
One way of building with "deb build" is :
1) apt-get build-dep php5
2) apt-get -b source php5=5.3.6-11
Sadly, trying that didn't work for me. Step 1 ultimately yielded:
Code:
# apt-get build-dep php5
...
E: Build-Depends dependency for php5 cannot be satisfied because no available versions
 of package autoconf can satisfy version requirements
And Step 2 ultimately:
Code:
# apt-get -b source php5=5.3.6-11
...
dpkg-checkbuilddeps: Unmet build dependencies: (dependency hell)
...
dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; aborting.
dpkg-buildpackage: warning: (Use -d flag to override.)
Build command 'cd php5-5.3.6 && dpkg-buildpackage -b -uc' failed.
E: Child process failed
Even though I have php 5.3.6 installed. Hahaha! Guess it didn't like that I didn't go through aptitude to get there. Those apt-get options are good to know, though, and made me study apt-get's man page. Previously, I had only been familiar w/ CheckInstall, which seems a bit more complicated. *shrug*
Quote:
Originally Posted by knudfl View Post
30 packages are built from "php-5.3.6" http://packages.debian.org/source/sid/php5

...for the php rpm packages ( Fedora ) you have 79 configure options added.
When building packages ourselves, though, does that automatically install all of the options? I guess I was wondering how the Debian devs managed to turn something non-modular into something that seems to be, in that after installing core php5, one could later add php5-[module] with just a Synaptic click.
 
Old 06-02-2011, 04:35 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by DJRcomputing View Post
I guess I was wondering how the Debian devs managed to turn something non-modular into something that seems to be, in that after installing core php5, one could later add php5-[module] with just a Synaptic click.
All the relevant options are turned on for the compilation and then the various different resulting libs are put in different binary packages for you to install at your leisure.

Cheers,

Evo2.
 
1 members found this post helpful.
Old 06-02-2011, 06:23 PM   #5
DJRcomputing
Member
 
Registered: Mar 2011
Location: /usa/pa/manheim
Distribution: Debian 5 + Xfce
Posts: 64

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by evo2 View Post
All the relevant options are turned on for the compilation and then the various different resulting libs are put in different binary packages for you to install at your leisure.
I somewhat suspected as much, as I muck through a related issue in another thread of mine. Thanks for confirming that much at least. I think. LOL!

Debian devs make it look so easy.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Any program automatically convert .deb to .pkg.tar.gz/xz cyker Arch 3 07-20-2010 01:57 AM
Compiling 2.6.23.1, do i need 2.6.23.1 headers and modules pkg from slackware package agentc0re Slackware 32 11-19-2007 02:21 AM
Error with xdm's configure script and missing pkg-config files julz_51 Linux - Software 0 02-22-2006 09:55 AM
How to enable modules beejayzed Linux - Newbie 1 02-02-2004 05:18 AM
wine and program option flags synaptical Linux - Software 0 11-13-2003 09:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:06 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