[DTrace-users] Is it possible to make rpm package from libdtrace-ctf source?

Tomas Jedlicka tomas.jedlicka at oracle.com
Mon Apr 23 03:32:22 PDT 2018


We have a separate build infrastructure. Thus we export the sources
and use internal build machines to create the package. Then the package
travels via QA/release chain towards the yum repositories.

For local dev builds we do exactly what you have figured out already :)

Tomas

On 04/23/2018 12:28 PM, Fred Liu wrote:
> Tomas,
>
> Just curious, how do you make rpm packages for repo on Oracle Linux?
>
> Thanks.
>
>
> Fred
>
> 2018-04-23 18:26 GMT+08:00 Tomas Jedlicka <tomas.jedlicka at oracle.com>:
>> Hi Fred,
>>
>> Sorry for late reply. This is correct approach. At this moment
>> we don't have any packaging target directly in our makefiles.
>>
>> Tomas
>>
>>
>> On 04/23/2018 12:24 PM, Fred Liu wrote:
>>> OK. Using manual hacking as following:
>>> 1): mv libdtrace-ctf libdtrace-ctf-0.8.0
>>> 2): tar cvfj libdtrace-ctf-0.8.0.tar.bz2 libdtrace-ctf-0.8.0/
>>> 3): mv libdtrace-ctf-0.8.0.tar.bz2 ~/rpmbuild/SOURCES/
>>> 4): rpmbuild -ba libdtrace-ctf.spec
>>>
>>> Thanks.
>>>
>>> Fred
>>>
>>> 2018-04-23 13:49 GMT+08:00 Fred Liu <fred.fliu at gmail.com>:
>>>> Hello,
>>>>
>>>> When I tried to make rpm packages in linux-uek tree like below:
>>>>
>>>> [root at pvg04 linux-uek]# make rpm
>>>>     CHK     include/config/kernel.release
>>>> make clean
>>>> /bin/sh ./scripts/package/mkspec >./kernel.spec
>>>>     TAR     kernel-4.14.32+.tar.gz
>>>> rpmbuild  --target x86_64 -ta kernel-4.14.32+.tar.gz
>>>> Building target platforms: x86_64
>>>> Building for target x86_64
>>>> error: Failed build dependencies:
>>>> libdtrace-ctf >= 0.5.0 is needed by kernel-4.14.32+-1.x86_64
>>>> libdtrace-ctf-devel >= 0.5.0 is needed by kernel-4.14.32+-1.x86_64
>>>> make[1]: *** [rpm] Error 1
>>>> make: *** [rpm] Error 2
>>>>
>>>>
>>>> I can successfully build source in libdtrace-ctf but it looks no rpm
>>>> options for Makefile.
>>>>
>>>> Is it possible to make rpm package from libdtrace-ctf source?
>>>>
>>>>
>>>> Thanks.
>>>>
>>>> Fred
>>> _______________________________________________
>>> DTrace-users mailing list
>>> DTrace-users at oss.oracle.com
>>> https://oss.oracle.com/mailman/listinfo/dtrace-users
>>
>> _______________________________________________
>> DTrace-users mailing list
>> DTrace-users at oss.oracle.com
>> https://oss.oracle.com/mailman/listinfo/dtrace-users




More information about the DTrace-users mailing list