How to recompile 'gcc-4.9-4.9.2' package with different prefix?

Valeriy Solovyov weldpua2008 at gmail.com
Thu Apr 21 07:55:17 UTC 2016


Can I use something like this:

apt-get build-dep -y gcc-4.9-multilib apt-get source -y gcc-4.9-multilib
dpkg-source -x gcc-4.9_4.9.2-0ubuntu1~12.04.dsc cd gcc-4.9-4.9.2
*PF=opt/dev-tools-4.9* dpkg-buildpackage -rfakeroot -b

Or this:

apt-get build-dep -y gcc-4.9-multilib apt-get source -y gcc-4.9-multilib
dpkg-source -x gcc-4.9_4.9.2-0ubuntu1~12.04.dsc cd gcc-4.9-4.9.2

tar -xf gcc-4.9.2.tar.xz

cd gcc-4.9.2

./contrib/download_prerequisites

$PWD/../gcc-4.9.3/configure --prefix=/opt/dev-tools-4.9 \
-v --with-pkgversion='Ubuntu/Linaro 4.9.2-0ubuntu1~12.04' \
--program-suffix=-4.9 --enable-shared --enable-linker-build-id
--with-system-zlib \
--libexecdir=/opt/rdwr_tools/radware-dev-tools-4.9/lib
--without-included-gettext \
--enable-threads=posix
--with-gxx-include-dir=/opt/dev-tools-4.9/include/c++/4.9 \
--libdir=/opt/dev-tools-4.9/lib --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes \
--enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror \
--with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64
--with-tune=generic \
--enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu  --with-sysroot=/
--enable-nls
 make;make install



On Wed, Apr 20, 2016 at 10:39 PM, Ralf Mardorf <ralf.mardorf at alice-dsl.net>
wrote:

> On Wed, 20 Apr 2016 20:25:57 +0300, Valeriy Solovyov wrote:
> >On Wed, Apr 20, 2016 at 4:06 PM, YunQiang Su wrote:
> >>On Tue, Apr 19, 2016 at 10:18 PM, Ralf Mardorf wrote:
> >>> On Tue, 19 Apr 2016 16:55:34 +0300, Valeriy Solovyov wrote:
> >>>>
> >>>>how I can change all --prefixes?
> >>>
> >>>The configure options should be in the file debian/rules. There
> >>>might be an install file, assumed files aren't handled by the
> >>>upstream build system.
> >>
> >>Debian packages don't support so many/heavy configuration changes,
> >>until you have a big patch.
> >
> >How I can patch sources but don't rebuild?
>
> In general you need to edit the rules file or files and a possible
> install file, usually with an editor. For some packages this is easy
> to do, gcc-4.9 is a "little" bit tricky. It's not just that configure
> provides --prefix=, --libdir=, --libexecdir= etc., there's not just a
> single debian/rules file. The wording "big patch" could be reworded to
> "you need a lot to rewrite using an editor, before you can start
> compiling and building the package".
>
> It's not helpful to top post, after the first reply bottom posted,
> especially since bottom/inline posting is preferred Ubuntu mailing list
> etiquette.
>
> Regards,
> Ralf
>
> --
> Ubuntu-devel-discuss mailing list
> Ubuntu-devel-discuss at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20160421/fdfba0bb/attachment.html>


More information about the Ubuntu-devel-discuss mailing list