Jump to: navigation, search


632 bytes removed, 19:26, 29 July 2015
no edit summary
* I downloaded the source rpm from that build and manually downloaded and installed required dependencies from the same place.
* I run "rpm -i gcc-4.9.2-6.bb4.src.rpm" to install it on AArch64 builder.
* Due to internal RPM macros, I went had to change one of them in the "~/rpmbuild/SPEC" directory, and run command "rpmbuild -bp SPECS/gcc.spec" to get the prep stage . Information on the rpm.* I created a git repository (default macros can be found here: https://githubfedoraproject.comorg/ArtemLwiki/GCC), copied "~/rpmbuild/BUILD/gcc-4Packaging:RPMMacros.9.2-20150212/" directory into itTo fix the installation path, and pushed it.* I changed "~/git/GCC/gcc-4.9.2-20150212/configure" in added this line as the very first line of the next waysspec file:<pre>@@ -47,7 +47,7 @@ target=aarch64-unknown-linux-gnu
program_transform_name = s,y,y, -prefix = /usr/local+prefix = <pre>%define _prefix /opt/ilp32/usr/local exec_prefix = ${prefix}  srcdir = .</pre>* I committed the changes and run "git format-patch master --stdout > gcc49-makefile.patch" command to get the patch for my changes.* I copied "gcc49-makefile.patch" to "~/rpmbuild/SOURCES/"Due to internal RPM macros, I had to alter many lines in "~/rpmbuild/SPECS/gcc.spec", since the default values were overwriting my patch.Information on the default macros can be found here: .Here is how I changed the spec file:
* I run "export RPM_PACKAGER="Artem Luzyanin <>""
* I run "rpmdev-bumpspec -c "This patch is Changed spec file to create ilp32-capable gcc in a separate tree."" command to add the changes with comments to the spec file.
* I run "rpmbuild -ba --nocheck gcc.spec" command to get the rpms.
I run "rpm -qlp gcc-4.9.2-6.bb1.1.aarch64.rpmgcc.spec" command to check that all gcc files will be installed in the correct place(under /opt/ilp32/).

Navigation menu