----------------------------------------
3.5: Adjust the tool chain and GCC spec to test the new environment
----------------------------------------
Adjustment tool Chain: Save the old, then use the new translation,
Mv-v/tools/bin/{ld,ld-old}
Mv-v/tools/$ (gcc-dumpmachine)/bin/{ld,ld-old}
Mv-v/tools/bin/{ld-new,ld}
ln-sv/tools/bin/ld/tools/$ (Gcc-dumpmachine)/bin/ld
Fix the GCC spec file so that it executes the new dynamic connector. (question: Does gcc use spec files?)
#定义文件变量, export con
the root directory used for package creation and the features provided by the package. They are not actively used by RPM like the Three macros above during packaging, but must write several lines in the description file. That is:
% Vendor vertical and horizontal software production center% Packager Yu Yiqi% Distribution Xiao Zhao '2001Buildroot: % buildrootProvides: % _ provides
3) % _ topdir, % _ builddir, % _ rpmdir, % _ sourcedir, % _ specdir, % _ srcrpmdir:
These six macros a
helloworld-1.0.0
4. In ~ Use rpmdev-newspec in the/rpmbuild/SPECS directory to generate a spec skeleton File
$ Rpmdev-newspec helloworld. spec
Edit the helloworld. spec file with the following content:
Name: helloworldVersion: 1.0.0Release: 1% {? Dist}Summary: helloworld
Group: Development/ToolsLicense: GPL# URL:Source0: Too Many name‑‑0000version‑.tar.gz
# BuildRequires:# Requires:
% Description
% Prep% Setup-q
% BuildMkdir-p $ RPM_BUILD_ROOT/usr/b
more vivid ).
Yum install rpmdevtools # rpm workshop quick creation tool
Useradd-m builder # create a temporary user to create an RPM package. If an error occurs, the build program will not damage the existing system environment.
su - builder
Rpmdev-setuptree # create a workshop
The following directory structure will be generated under the Home Directory of the builder User:
tree -L 1~/rpmbuild/
rpmbuild/
├── BUILD
├── RPMS
├── SOURCES
├── SPEC
Package source code into an rpm installation package under CentOS
Platform: centos6.5
First, build the environment:[Cpp] view plaincopyprint?
[Root @ localhostbinbin] # yuminstall-yrpm-build
[Cpp] view plaincopyprint?
[Root @ localhostbinbin] # yuminstallredhat-rpm-config
There will be an rpmbuild directory under the/root directory.[Cpp] view plaincopyprint?
[Root @ localhostrpmbuild] # pwd
/Root/rpmbuild
Go to the directory, which contains five folders: BUILD BUILDROOT RPMS SOURCES
is a relatively messy note that needs to be sorted outHow to become an OpenStack contributorOpenStack is just a technical frameworkOpenStack FoundationTechnical Committee code management, Quality assuranceThe Board of Directors determines the future direction of OpenStack Platinum members, gold members, individual membersUser Committee collects the needs of different users for OpenStack开发流程、版本发布管理开发者、用户、社区生态体系管理收集用户需求商标管理社区事务管理(summit meetup )法律问题OpenStack contributors need to knowRegister Https
list ends in a terminating statement if the list is not empty and its final statement is terminating.=>A statement list ends in a terminating statement if the list is not empty and its final non-empty statement is terminating.
Specs is abstract, examples are vivid, we use an example to illustrate this change:
// go17-examples/language/f.gopackage ffunc f() int { return 3 ;}
For the list of statements in the body of the F function in F.go (state
0, please use the physical machine installation, the virtual machine did not compile successfully 1, first check the system version, need to be CENTOS6, kernel 2.6cat /etc/*releaseuname -r2. Download kernel rpm from Redhat websitewget ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/os/SRPMS/kernel-2.6.32-220.23.1.el6.src.rpmIf this is not possible, please download it from the network disk. Connection:3. Get Kerel source code from rpm vim ~/.rpmmacros; Add:%_topdir/home/pukong/rpms%_
extends WordSpec with MustMatchers {"An empty Set produce NoSuchElementException when head is invoked" in {a [condition] must be thrownBy {Set. empty. the description after the head is executed is [info] ScalaExceptionTest: [info]-An empty Set produce NoSuchElementException when head is invoked [info] ScalaTest [info] Run completed in 1 second, 247 milliseconds. [info] Total number of tests run: 1 [info] Suites: completed 1, aborted 0 [info] Tests: succeeded 1, failed 0, canceled 0, i
InstallationSome software packages end with. src. rpm. These software packages are rpm packages that contain source code and need to be compiled during installation. There are two ways to install such software packages:Method 1:1. Execute rpm-ivh your-package.src.rpm2. cd/usr/src/redhat/SPECS3. rpmbuild-bp your-package.specs A specs file with the same name as your package4. cd/usr/src/redhat/BUILD/your-package/a directory with the same name as your p
temporary files generated during the packaging process; RPMS is used to save the generated binary RPM package; SOURCES is used to save the packaged source files (including compressed files); SPECS is used to save. spec script; SRPMS is used to save the generated source code rpm package.
mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
Use the following command to generate the macro file required by rpm
-- add myhttpd
% Preun //Operations performed by detaching the rpm package
/Etc/init. d/myhttpd stop
Chkconfig -- del myhttpd
% Changelog //You can use rpm-q -- changelog httpd to define some log files.
* Wed Mar 26 2014 zhangzhg
-First rpm from httpd-2.2.25
[Tom @ server1 ~] $
Step 3: Generate related directories
[Tom @ server1 ~] $ Ls
Httpd-2.2.25.tar.gz httpd. spec
[Tom @ server1 ~] $ Rpmbuild httpd. spec //Generate related directories with Error Type prompts, which is normal
Error: Fi
To install the src. rpm package containing the source code, first install a software rpm-build.
After the software is installed, the/usr/src/RedHat folder is generated in the Red Hat 5 environment. The folder contains the following folders:
BUILDROOT: stores temporary compilation files.
BUILD: stores compiled files
SOURCE: storage SOURCE code package, such as tar.gz tar.bz2
RPMS: stores rpm packages after successful conversion.
SRPMS: stores the src. rpm package to be converted.
Install rpmbuild
Sudo yum install rpm-buildConfigurations of common users
/Home/you/rpmbuild/assume that the rpm directory is to be built
Let's talk about the usage of rpmbuild. Here is an example:
Echo "% _ topdir/home/you/rpmbuild"> ~ /. Rpmmacros
Mkdir-p/home/you/rpmbuild/{SPECS, BUILD, SRPMS, RPMS, SOURCES}
The configuration in/usr/lib/rpm/macros allows you to change the specific build configuration item. If an error occurs, you can modify this
practice is the correct content, citing a lot of specifications content:
OK, so let's walk through the specs here. https://drafts.csswg.org/cssom-view/#dom-element-getclientrects says:
If the element on which it is invoked does not has an associated layout box return a empty sequence and stop this Algor Ithm.
where "layout box" links to https://drafts.csswg.org/cssom-view/#layout-box which says, a "layou
packageInstallation: Rpm-rebuild *.src.rpm Cd/usr/src/dist/rpms Description: The rpm--rebuild *.src.rpm command compiles the source code and generates a binary RPM package under/usr/src/dist/rpms, and then installs the binary package. Packgename as mentioned earlier, the two methods are as follows:FA 1:rpm-i your-package.src.rpmcd/usr/src/redhat/specsrpmbuild-bp your-package.specs #一个和你的软件包同名的specs文件cd/usr /src/redhat/build/your
In the words "Automake: from C to make", I started with a C language source code file and made a standard tar package.
How do I make an RPM package with a bar bag?
I have learned how to make RPM packages by referring to Linuxfans.org's article, "the RPM package principle (update 2010.11.22)". The following will show the process. establish a development environment first need software such as compilers
Yum Groupinstall "Development Tools"
and then do a little bit of the RPM configuration
E
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.