Thread: [Doxygen-users] Unable to build RPMs for Doxygen v1.8.10
Brought to you by:
dimitri
From: Jean A. <jau...@eu...> - 2015-06-29 08:41:10
|
Hi! Until the release 1.8.9.1, I was able to build Doxygen (binaires ands RPMs) with this command: $ rpmbuild -ta doxygen-<VERSION>.src.tar.gz With the last release, this command fails: "error: Failed to read spec file from doxygen-1.8.10.src.tar.gz" I think it's related to the CMake build. So now, what is the best way to achieve build of RPMs? Thanks a lot! Jean _________________________________________________________________ This message may contain confidential information and is intended for specific recipients unless explicitly noted otherwise. If you have reason to believe you are not an intended recipient of this message, please delete it and notify the sender. This message may not represent the opinion of Euronext N.V. or any of its subsidiaries or affiliates, and does not constitute a contract or guarantee. Unencrypted electronic mail is not secure and the recipient of this message is expected to provide safeguards from viruses and pursue alternate means of communication where privacy or a binding message is desired. |
From: Robert H. <he...@de...> - 2015-06-29 12:22:09
|
At Mon, 29 Jun 2015 08:05:40 +0000 Jean Audibert <jau...@eu...> wrote: > > Hi! > > Until the release 1.8.9.1, I was able to build Doxygen (binaires ands RPMs) with this command: > $ rpmbuild -ta doxygen-<VERSION>.src.tar.gz > > With the last release, this command fails: "error: Failed to read spec file from doxygen-1.8.10.src.tar.gz" > > I think it's related to the CMake build. So now, what is the best way to achieve build of RPMs? > No, more likely simply that somehow the spec file was left out of the source archive. The *might* be related to the CMake build, in that possibly the spec file was left out of the CMake equivelant of AutoMake's 'EXTRA_DIST' variable. > Thanks a lot! > > Jean > > > _________________________________________________________________ > > This message may contain confidential information and is intended for specific recipients unless explicitly noted otherwise. If you have reason to believe you are not an intended recipient of this message, please delete it and notify the sender. This message may not represent the opinion of Euronext N.V. or any of its subsidiaries or affiliates, and does not constitute a contract or guarantee. Unencrypted electronic mail is not secure and the recipient of this message is expected to provide safeguards from viruses and pursue alternate means of communication where privacy or a binding message is desired. > > > ------------------------------------------------------------------------------ > Monitor 25 network devices or servers for free with OpManager! > OpManager is web-based network management software that monitors > network devices and physical & virtual servers, alerts via email & sms > for fault. Monitor 25 devices for free with no restriction. Download now > http://ad.doubleclick.net/ddm/clk/292181274;119417398;o > _______________________________________________ > Doxygen-users mailing list > Dox...@li... > https://lists.sourceforge.net/lists/listinfo/doxygen-users > > -- Robert Heller -- 978-544-6933 Deepwoods Software -- Custom Software Services http://www.deepsoft.com/ -- Linux Administration Services he...@de... -- Webhosting Services |
From: Jean A. <jau...@eu...> - 2015-06-29 13:40:52
|
Hi Robert, Thanks for your answer. Sorry, but I'm not sure to understand. You mean that the SPEC file in doxygen-1.8.10.src.tar.gz\doxygen-1.8.10.src.tar\doxygen-1.8.10\packages\rpm\doxygen.spec.in is useless? So, what is the new procedure to build RPM? Thanks, Jean -----Original Message----- From: Robert Heller [mailto:he...@de...] Sent: lundi 29 juin 2015 14:22 To: Jean Audibert Cc: 'dox...@li...'; Robert Heller Subject: Re: [Doxygen-users] Unable to build RPMs for Doxygen v1.8.10 At Mon, 29 Jun 2015 08:05:40 +0000 Jean Audibert <jau...@eu...> wrote: > > Hi! > > Until the release 1.8.9.1, I was able to build Doxygen (binaires ands RPMs) with this command: > $ rpmbuild -ta doxygen-<VERSION>.src.tar.gz > > With the last release, this command fails: "error: Failed to read spec file from doxygen-1.8.10.src.tar.gz" > > I think it's related to the CMake build. So now, what is the best way to achieve build of RPMs? > No, more likely simply that somehow the spec file was left out of the source archive. The *might* be related to the CMake build, in that possibly the spec file was left out of the CMake equivelant of AutoMake's 'EXTRA_DIST' variable. > Thanks a lot! > > Jean > > > _________________________________________________________________ > > This message may contain confidential information and is intended for specific recipients unless explicitly noted otherwise. If you have reason to believe you are not an intended recipient of this message, please delete it and notify the sender. This message may not represent the opinion of Euronext N.V. or any of its subsidiaries or affiliates, and does not constitute a contract or guarantee. Unencrypted electronic mail is not secure and the recipient of this message is expected to provide safeguards from viruses and pursue alternate means of communication where privacy or a binding message is desired. > > > ------------------------------------------------------------------------------ > Monitor 25 network devices or servers for free with OpManager! > OpManager is web-based network management software that monitors > network devices and physical & virtual servers, alerts via email & sms > for fault. Monitor 25 devices for free with no restriction. Download now > http://ad.doubleclick.net/ddm/clk/292181274;119417398;o > _______________________________________________ > Doxygen-users mailing list > Dox...@li... > https://lists.sourceforge.net/lists/listinfo/doxygen-users > > -- Robert Heller -- 978-544-6933 Deepwoods Software -- Custom Software Services http://www.deepsoft.com/ -- Linux Administration Services he...@de... -- Webhosting Services _________________________________________________________________ This message may contain confidential information and is intended for specific recipients unless explicitly noted otherwise. If you have reason to believe you are not an intended recipient of this message, please delete it and notify the sender. This message may not represent the opinion of Euronext N.V. or any of its subsidiaries or affiliates, and does not constitute a contract or guarantee. Unencrypted electronic mail is not secure and the recipient of this message is expected to provide safeguards from viruses and pursue alternate means of communication where privacy or a binding message is desired. |
From: Robert H. <he...@de...> - 2015-06-29 14:52:17
|
At Mon, 29 Jun 2015 13:40:44 +0000 Jean Audibert <jau...@eu...> wrote: > > Hi Robert, > > Thanks for your answer. > > Sorry, but I'm not sure to understand. > You mean that the SPEC file in > doxygen-1.8.10.src.tar.gz\doxygen-1.8.10.src.tar\doxygen-1.8.10\packages\rpm\doxygen.spec.in > is useless? Its in the wrong place for rpmbuild -ta. I am not sure what CMake's idea of subverting rpmbuild is. For rpmbuild -ta ...tar.gz to work, the SPEC file needs to be at the toplevel of the tarball. I believe CMake has some other ideas, including *NOT* using rpmbuild, but using its own 'logic' that *replaces* rpmbuild instead. I think you have to unpack the archive, build the package 'normally', *then* run some *special* CMake command to build the RPM from the build binaries (I don't really know the exact incantation). You *don't* get a package-version.src.rpm this way. I think esentually you end up building a binary-only (batch) of RPM(s). Which is stupid and unhelpful for anyone 'downstream' of whoever is distributing the RPMs -- eg it means that anyone who needs to rebuild the RPM(s), have to get the original source and built it from scratch. It also means it is not possible to build RPMs with distro-specific patches. And thus, it is probably less than useful for these and other related reasons. > > So, what is the new procedure to build RPM? > > Thanks, > > Jean > > -----Original Message----- > From: Robert Heller [mailto:he...@de...] > Sent: lundi 29 juin 2015 14:22 > To: Jean Audibert > Cc: 'dox...@li...'; Robert Heller > Subject: Re: [Doxygen-users] Unable to build RPMs for Doxygen v1.8.10 > > At Mon, 29 Jun 2015 08:05:40 +0000 Jean Audibert <jau...@eu...> wrote: > > > > > Hi! > > > > Until the release 1.8.9.1, I was able to build Doxygen (binaires ands RPMs) with this command: > > $ rpmbuild -ta doxygen-<VERSION>.src.tar.gz > > > > With the last release, this command fails: "error: Failed to read spec file from doxygen-1.8.10.src.tar.gz" > > > > I think it's related to the CMake build. So now, what is the best way to achieve build of RPMs? > > > > No, more likely simply that somehow the spec file was left out of the source archive. The *might* be related to the CMake build, in that possibly the spec file was left out of the CMake equivelant of AutoMake's 'EXTRA_DIST' variable. > > > > Thanks a lot! > > > > Jean > > > > > > _________________________________________________________________ > > > > This message may contain confidential information and is intended for specific recipients unless explicitly noted otherwise. If you have reason to believe you are not an intended recipient of this message, please delete it and notify the sender. This message may not represent the opinion of Euronext N.V. or any of its subsidiaries or affiliates, and does not constitute a contract or guarantee. Unencrypted electronic mail is not secure and the recipient of this message is expected to provide safeguards from viruses and pursue alternate means of communication where privacy or a binding message is desired. > > > > > > ------------------------------------------------------------------------------ > > Monitor 25 network devices or servers for free with OpManager! > > OpManager is web-based network management software that monitors > > network devices and physical & virtual servers, alerts via email & sms > > for fault. Monitor 25 devices for free with no restriction. Download now > > http://ad.doubleclick.net/ddm/clk/292181274;119417398;o > > _______________________________________________ > > Doxygen-users mailing list > > Dox...@li... > > https://lists.sourceforge.net/lists/listinfo/doxygen-users > > > > > -- Robert Heller -- 978-544-6933 Deepwoods Software -- Custom Software Services http://www.deepsoft.com/ -- Linux Administration Services he...@de... -- Webhosting Services |
From: Dimitri v. H. <do...@gm...> - 2015-06-29 19:29:27
|
Hi Jean, > On 29 Jun 2015, at 10:05 , Jean Audibert <jau...@eu...> wrote: > > Hi! > > Until the release 1.8.9.1, I was able to build Doxygen (binaires ands RPMs) with this command: > $ rpmbuild -ta doxygen-<VERSION>.src.tar.gz > > With the last release, this command fails: "error: Failed to read spec file from doxygen-1.8.10.src.tar.gz" > > I think it's related to the CMake build. So now, what is the best way to achieve build of RPMs? Unfortunately, the spec file has not been updated to the new build system yet :-( Since this was a third party contribution in the past, I'm open for suggestions on how to correct it. Regards, Dimitri |
From: Dimitri v. H. <do...@gm...> - 2015-06-29 19:36:23
|
> On 29 Jun 2015, at 21:29 , Dimitri van Heesch <do...@gm...> wrote: > > Hi Jean, > >> On 29 Jun 2015, at 10:05 , Jean Audibert <jau...@eu...> wrote: >> >> Hi! >> >> Until the release 1.8.9.1, I was able to build Doxygen (binaires ands RPMs) with this command: >> $ rpmbuild -ta doxygen-<VERSION>.src.tar.gz >> >> With the last release, this command fails: "error: Failed to read spec file from doxygen-1.8.10.src.tar.gz" >> >> I think it's related to the CMake build. So now, what is the best way to achieve build of RPMs? > > Unfortunately, the spec file has not been updated to the new build system yet :-( > Since this was a third party contribution in the past, I'm open for suggestions on how to correct it. This looks like a promising starting point: https://schneide.wordpress.com/2013/02/11/build-a-rpm-package-using-cmake/ Regards, Dimitri |
From: Jean A. <jau...@eu...> - 2015-06-29 20:17:26
|
Hi Dimitri, Thanks for your e-mails. In my team we build&package several tools (like Git and CMake) to keep dev boxes (from el5 to el7) up-to-date. So we had to work/rework spec files and builds. Let me see with my colleagues what we can provide/suggest. It would a pleasure to contribute. The current spec file and your link are very good starting points. Best, Jean ----- Message d'origine ----- De : Dimitri van Heesch [mailto:do...@gm...] Envoyé : Monday, June 29, 2015 09:36 PM À : Jean Audibert Cc : dox...@li... <dox...@li...> Objet : Re: [Doxygen-users] Unable to build RPMs for Doxygen v1.8.10 > On 29 Jun 2015, at 21:29 , Dimitri van Heesch <do...@gm...> wrote: > > Hi Jean, > >> On 29 Jun 2015, at 10:05 , Jean Audibert <jau...@eu...> wrote: >> >> Hi! >> >> Until the release 1.8.9.1, I was able to build Doxygen (binaires ands RPMs) with this command: >> $ rpmbuild -ta doxygen-<VERSION>.src.tar.gz >> >> With the last release, this command fails: "error: Failed to read spec file from doxygen-1.8.10.src.tar.gz" >> >> I think it's related to the CMake build. So now, what is the best way to achieve build of RPMs? > > Unfortunately, the spec file has not been updated to the new build system yet :-( > Since this was a third party contribution in the past, I'm open for suggestions on how to correct it. This looks like a promising starting point: https://schneide.wordpress.com/2013/02/11/build-a-rpm-package-using-cmake/ Regards, Dimitri _________________________________________________________________ This message may contain confidential information and is intended for specific recipients unless explicitly noted otherwise. If you have reason to believe you are not an intended recipient of this message, please delete it and notify the sender. This message may not represent the opinion of Euronext N.V. or any of its subsidiaries or affiliates, and does not constitute a contract or guarantee. Unencrypted electronic mail is not secure and the recipient of this message is expected to provide safeguards from viruses and pursue alternate means of communication where privacy or a binding message is desired. |
From: Robert H. <he...@de...> - 2015-06-29 21:52:51
|
At Mon, 29 Jun 2015 21:36:15 +0200 Dimitri van Heesch <do...@gm...> wrote: > > > > On 29 Jun 2015, at 21:29 , Dimitri van Heesch <do...@gm...> wrote: > > > > Hi Jean, > > > >> On 29 Jun 2015, at 10:05 , Jean Audibert <jau...@eu...> wrote: > >> > >> Hi! > >> > >> Until the release 1.8.9.1, I was able to build Doxygen (binaires ands RPMs) with this command: > >> $ rpmbuild -ta doxygen-<VERSION>.src.tar.gz > >> > >> With the last release, this command fails: "error: Failed to read spec file from doxygen-1.8.10.src.tar.gz" > >> > >> I think it's related to the CMake build. So now, what is the best way to achieve build of RPMs? > > > > Unfortunately, the spec file has not been updated to the new build system yet :-( > > Since this was a third party contribution in the past, I'm open for suggestions on how to correct it. > > This looks like a promising starting point: > https://schneide.wordpress.com/2013/02/11/build-a-rpm-package-using-cmake/ The *big downside* to using CPack to make the *binary* RPMs is that the RPM(s) can only be made with CPack -- you don't get a .src.rpm, so it is not possible to later rebuild the RPM using rpmbuild (say if you want to rebuild the Fedora RPM for EL6, because of differences in the Glibc version or something, or want to build it for a different machine type, etc.). With the CPack RPM, all you get is a binary RPM and anyone downsteam *has* to know how to build the package using CMake's tools (which is non-obvious to someone not familure with CMake or CPack). It also breaks things for distro repackagers, who take source RPMs from one distro and rebuild them for another, including creating derived distros. For *most* packages one just gets the source RPMs and does a rpmbuild --rebuild on them -- this process can be automated easily. Using CPack breaks this, requiring manual hand hackery. When I created RPMs (and also debs) for xtrkcad, I created my own spec file and used rpmbuild to create source and binary RPMs and skipped using CPack. (BTW: CPack is a bit broken in that it fails to build proper source archives under some situations.) > > Regards, > Dimitri > ------------------------------------------------------------------------------ > Don't Limit Your Business. Reach for the Cloud. > GigeNET's Cloud Solutions provide you with the tools and support that > you need to offload your IT needs and focus on growing your business. > Configured For All Businesses. Start Your Cloud Today. > https://www.gigenetcloud.com/ > _______________________________________________ > Doxygen-users mailing list > Dox...@li... > https://lists.sourceforge.net/lists/listinfo/doxygen-users > > -- Robert Heller -- 978-544-6933 Deepwoods Software -- Custom Software Services http://www.deepsoft.com/ -- Linux Administration Services he...@de... -- Webhosting Services |