Zitat von Geert Stappers <[email protected]>:

> Op 20120815 om 12:36 schreef [email protected]:
>>
>> Zitat von Geert Stappers <[email protected]>:
>>
>> > Op 20120814 om 15:10 schreef [email protected]:
>> >> Hello List
>> >>
>> >> is it possible to get the compile time options used for building the
>> >> binary? It would be nice to have so we could build updates as close as
>> >> possible to original packages for example on Ubuntu.
>> >
>> > Beware the next information is untested:
>> >
>> >   cd /usr/scr
>> >   apt-get source bacula
>> >   cd bacula*  # wildcard for version
>> >   cd debian
>> >   grep configure rules
>> >
>> > That should give you the compile time options.
>> >
>> >
>> >> Many Thanks
>> >
>> > Please verify and provide feedback.
>> >
>>
>> Ouput of the grep command:
>>
>> # These are used for cross-compiling and for saving the configure script
>> configure-stamp-%: extract-stamp-%
>>              QMAKE=/usr/bin/qmake-qt4 ./configure --config-cache \
>> build-stamp-%: configure-stamp-%
>>
>> But the "rules" file is the place to look.
>
> Yes,   debian/rules   is the file with compile time options.
>

With this help and some search around i finally managed to build  
Bacula 5.2.10 the Debian/Ubuntu way like this:

1.) Create new directory and grab build environment with "apt-get  
source bacula"

2.) Get build dependencies with apt-get build-dep bacula

3.) Extract original source in another dir and copy over the "debian"  
dir from the Ubuntu build environment

4.) With "debchange -i" create a new Changelog entry with correct  
version number

5.) Do a "debuild -us -uc -i -I" and correct any debian patch failures

Voila, new deb packages with version 5.2.10 :-)

Thanks for the help

Andreas



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to