[FZH] FZUG 的编译环境

Zhenbo Li litimetal at gmail.com
Fri Jun 19 14:36:28 UTC 2015


Hi
对于 copr-deploy 的架构,我还是不太清晰

buildserver 的环境是什么样的呢?*

* 我的意思是,编译时都会有哪些软件包?
我之前与一位打包者交流时得到的是这样的回复

> As I compiled wine-gecko in clean Fedora21 (thanks Docker), I found
> `yum install unzip tar` is necessary for mach.
> However, yum-builddep won't install them. Is this a bug?

No this is not a bug. Fedora packages are built using a tool called
'mock' which prepares a clean environment with a pre-defined set of
packages. This set of packages are part of a group called
'buildsys-build'. The contents of this group can be viewed with the
command: dnf groupinfo buildsys-build

Regards,

Erik


请问,编译 rpm 的环境,就只有 buildsys-build 吗?

谢谢

在 2015年6月13日 下午2:17,Zhenbo Li <litimetal在gmail.com> 写道:
> 我摸索了一下,发现下载源代码的工作不是由 rpmbuild 进行的。具体的操作如下:
>
> spectool -g -R prog.spec
> dnf builddep prog.spec
> rpmbuild -ba prog.spec
> # Further tests
>
>https://github.com/FZUG/copr-deploy 上提到,
> “当发现新版本时,后端 (backend service) 使用 ansible playbook 在 Builder Server 创建新
> builder 实例;“
> 请问,FZUG 的 builder 是如何配置的呢?
>
> 谢谢
>
> 在 2015年6月13日 上午10:22,Li Junliang <lijunliang_dna在aliyun.com> 写道:
>> 对spec不是很熟悉,不过可以参考以下链接
>> http://lists.gnu.org/archive/html/viewmail-info/2012-06/msg00034.html
>>
>> 从该邮件上看,自动下载源代码需要在%pre阶段做一些额外处理,不提供对应文件是会报错。
>>
>> 我一般都还是将对应源代码下载到SOURCES下。
>>
>> 在 2015-06-13六的 09:09 +0800,Zhenbo Li写道:
>>> 我下载了这个 spec
>>> https://raw.githubusercontent.com/FZUG/repo/master/rpms/SPECS/wiznote
>>> /wiznote.spec
>>>
>>> $ rpmbuild -ba wiznote.spec
>>> error: File /home/lizhenbo/rpmbuild/SOURCES/WizQTClient
>>> -8addfa1.tar.gz:
>>> No such file or directory
>>>
>>> 我看了一下 spec 文件,
>>> URL:        https://github.com/WizTeam/WizQTClient
>>> Source0:    https://github.com/WizTeam/WizQTClient/archive/%{_commit}
>>> /%{repo}-%{_shortcommit}.tar.gz
>>>
>>> 不应该可以自动下载源代码吗?
>>> 请问,我应该如何编译出该 rpm 包呢?
>>> 谢谢
>>>
>>> 在 2015年6月13日 上午12:07,xiaofeng <wasphin在gmail.com> 写道:
>>> > 2015-06-09 20:36 GMT+08:00 Dee.H.Y <dongfengweixiao在gmail.com>:
>>> >
>>> > > 我要是没有记错,rpmbuild -a foo.spec 可以从spec生成src.rpm
>>> >
>>> >
>>> > 在 Source 齐全的情况下, rpmbuild -s xx.spec 是可以产生对应 src.rpm 的,
>>> > 但是需要有所有的 Source;
>>> >
>>> >  copr 下应该有提供简便的命令, 至少 fedpkg 下是有的,
>>> > 下面是文档链接, 没怎么仔细看
>>> >
>>> > https://fedorahosted.org/copr/wiki/UserDocs
>>> >
>>> > --
>>> > xiaofeng
>>> >
>>> > --
>>> > gpg key fingerprint:
>>> > 2048R/5E63005B
>>> > C84F 671F 70B7 7330 4726  5EC8 02BC CBA2 5E63 005B
>>> >
>>> > Distribution: Fedora 17 (Beefy Miracle)
>>> > Fedora Project <https://fedoraproject.org/>
>>> > --
>>> > trans-zh_cn mailing list
>>> > trans-zh_cn在lists.fedoraproject.org
>>> > https://admin.fedoraproject.org/mailman/listinfo/trans-zh_cn
>>> > --
>>> > Fedora中文郵件列表:
>>> > https://admin.fedoraproject.org/mailman/listinfo/chinese
>>>
>>>
>>>
>>> --
>>> Have a nice day!
>>> Zhenbo Li
>>> --
>>> Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
>> --
>> Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
>
>
>
> --
> Have a nice day!
> Zhenbo Li



-- 
Have a nice day!
Zhenbo Li


More information about the Chinese mailing list