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

Fred Liu fred.fliu at gmail.com
Mon Apr 23 03:30:35 PDT 2018


Yeah, it is better for it is just one step!

Thanks.

Fred

2018-04-23 18:29 GMT+08:00 Tomas Jedlicka <tomas.jedlicka at oracle.com>:
> One more note that you can also use git archive to export clean source tree.
>
> git archive -o ~/rpmbuild/SOURCES/libdtrace-ctf-0.8.0.tar.bz2
> --prefix=libdtrace-ctf-0.8.0/ <revision/branch>
>
> Tomas
>
> On 04/23/2018 12:26 PM, Tomas Jedlicka wrote:
>> 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
>
>
> _______________________________________________
> 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