Proposal: Remove BuildRequires: exceptions from the guidelines
by Jason L Tibbitts III
TL;DR: There's a proposal for nuking the list of BuildRequires
exceptions from the packaging guidelines.
Important note: this is just an idea. We're not currently changing the
guidelines based on this. Nothing is set in stone. It may end up that
nothing happens. Don't panic.
A couple of times recently, people have floated proposals to the FPC
about removing certain things from the buildroot. (Specifically, perl
and gcc*.) And the bottom line for these is that while FPC tries to
maintain a list of BuildRequires: exceptions, this is really up to
releng and whatever rpm happens to pull in at any particular time.
This means that whatever list FPC maintains, it's going to get outdated
eventually, and giving packagers the idea that they don't have to
actually specify all of their dependencies restricts what releng can do
and, perhaps, what dependencies the RPM package can drop without
breaking builds.
So, the generally stated proposal:
I would like to get FPC out of the business of specifying this list of
exceptions, and instead just indicate that packagers should completely
specify their dependencies.
My specific proposal can be seen in
https://fedorahosted.org/fpc/ticket/497; the draft is at
https://fedoraproject.org/wiki/User:Tibbs/BuildReqDraft2. You can use
the history tab to see the differences between that and the current
guidelines.
Now, the real issue is in what packagers can depend upon. Obviously you
have RPM and an environment necessary to build a package (which means
you have to have a shell to execute the scripts that make up the RPM
sections, and redhat-rpm-config, and whatever RPM happens to use to
execute %patch, which I guess could be some internal library if the RPM
devs wanted). But what else? That's the open question.
The draft currently says:
---
You may assume that you have everything necessary for RPM to function
and process your spec file (so of course RPM is present, along with
redhat-rpm-config and what is necessary for RPM to apply patches, unpack
archives, and run the shell scripts which make up the spec file
sections.) You should not assume any other packages are present, as RPM
dependencies and anything brought into the buildroot by the build system
may change over time.
---
Honestly, I'm not completely satisfied with that but I can't come up
with anything better. Polite discussion is welcomed and encouraged.
- J<
8 years
questions about license file migration
by Björn Persson
Hi, I'm working to update my packages to use %license, and I have two
questions:
1: Must license files be placed in /usr/share/licenses/<package>, or is
it only required that they are tagged as license files in the package?
For example, if a package's build system installs a license in
/usr/share/doc/<package>, is the spec required to move it from there to
/usr/share/licenses/<package>, or is it enough to tag it with %license
in the file list?
2: When a package has a list of authors separate from the license file,
should that list also be tagged as a license file, or is it considered
regular documentation? It seems to me that *who* gives out a license is
important information that belongs together with the license.
Björn Persson
8 years, 3 months
Summary/Minutes from today's FPC Meeting (2015-02-26 17:00 - 18:20 UTC)
by James Antill
======================
#fedora-meeting-1: fpc
======================
Meeting started by geppetto at 17:01:00 UTC. The full logs are available
at
http://meetbot.fedoraproject.org/fedora-meeting-1/2015-02-26/fpc.2015-02-...
.
Meeting summary
---------------
* Roll Call (geppetto, 17:01:01)
* Schedule (geppetto, 17:04:17)
* LINK:
https://lists.fedoraproject.org/pipermail/packaging/2015-February/010483....
(geppetto, 17:04:23)
* #501 Fix bootstrap guidelines (geppetto, 17:05:08)
* LINK: https://fedorahosted.org/fpc/ticket/501 (geppetto, 17:05:12)
* ACTION: Proposal: Reverse conditionals in bootstrap examples, to
make it less confusing (+1:7, 0:0, -1:0) (geppetto, 17:13:49)
* #435 %py3dir not removed by rpmbuild --clean (geppetto, 17:13:58)
* LINK: https://fedorahosted.org/fpc/ticket/435 (geppetto, 17:14:03)
* ACTION: Policy change to remove py3dir from python policy (+1:6,
0:1, -1:0) (geppetto, 17:22:30)
* ACTION: Extra note about copies (+1:6, 0:0, -1:0) (geppetto,
17:39:12)
* #338 %doc and %_pkgdocdir duplicate files and cause conflicts
(geppetto, 17:39:21)
* LINK: https://fedorahosted.org/fpc/ticket/338 (geppetto, 17:39:26)
* ACTION: %doc and %_pkgdocdir duplicate files and cause conflicts
(+1:6, 0:0, -1:1) (geppetto, 17:58:15)
* #325 Temporary bundling exception of yajl library (geppetto,
17:58:28)
* LINK: https://fedorahosted.org/fpc/ticket/325 (geppetto, 17:58:33)
* ACTION: Can you carry the patches within Fedora, to use the system
library from ruby and alter jajl? If not we need a clearer timeline
on when upstream is going to do something. (geppetto, 18:14:46)
* Open Floor (geppetto, 18:15:15)
Meeting ended at 18:20:40 UTC.
Action Items
------------
* Proposal: Reverse conditionals in bootstrap examples, to make it less
confusing (+1:7, 0:0, -1:0)
* Policy change to remove py3dir from python policy (+1:6, 0:1, -1:0)
* Extra note about copies (+1:6, 0:0, -1:0)
* %doc and %_pkgdocdir duplicate files and cause conflicts (+1:6, 0:0,
-1:1)
* Can you carry the patches within Fedora, to use the system library
from ruby and alter jajl? If not we need a clearer timeline on when
upstream is going to do something.
Action Items, by person
-----------------------
* **UNASSIGNED**
* Proposal: Reverse conditionals in bootstrap examples, to make it
less confusing (+1:7, 0:0, -1:0)
* Policy change to remove py3dir from python policy (+1:6, 0:1, -1:0)
* Extra note about copies (+1:6, 0:0, -1:0)
* %doc and %_pkgdocdir duplicate files and cause conflicts (+1:6, 0:0,
-1:1)
* Can you carry the patches within Fedora, to use the system library
from ruby and alter jajl? If not we need a clearer timeline on when
upstream is going to do something.
People Present (lines said)
---------------------------
* geppetto (79)
* Rathann (36)
* tibbs (32)
* tomspur (23)
* racor (17)
* orionp (16)
* zodbot (10)
* limburgher (10)
* mbooth (7)
Generated by `MeetBot`_ 0.1.4
.. _`MeetBot`: http://wiki.debian.org/MeetBot
8 years, 3 months
rpmbuild changes in Fedora 23 Rawhide?
by Michael Schwendt
Been running into a Rawhide rebuild failure caused by a strangely
packaged libcanberra-devel: https://bugzilla.redhat.com/1195363
First observation: The -devel package does not explicitly depend
on all three library base packages. => Two of the three .so symlinks
on the -devel pkg point to non-existing targets.
Closer look: There used to be _automatic_ Requires on the library
SONAMEs. Those are missing in the recently rebuilt libcanberra-devel
package.
Is this an expected change in rpmbuild for Rawhide?
8 years, 3 months
Can %license be inside folder specified in %doc?
by Miro Hrončok
Hi,
consider the foollowing %files section
%files
%license %{_datadir}/%{name}/docs/LICENSE
%doc %{_datadir}/%{name}/docs
Is it OK? Building the RPM nly generates warning about a file being
listed twice. Rpmlint is silent.
The thing I want to avoid is to use the following instead:
%files
%license %{_datadir}/%{name}/docs/LICENSE
%doc %{_datadir}/%{name}/docs/every
%doc %{_datadir}/%{name}/docs/other
%doc %{_datadir}/%{name}/docs/file
%doc %{_datadir}/%{name}/docs/in
%doc %{_datadir}/%{name}/docs/here
%doc %{_datadir}/%{name}/docs/one
%doc %{_datadir}/%{name}/docs/by
%doc %{_datadir}/%{name}/docs/1
Thanks for your help.
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
8 years, 3 months
Few questions regarding spec file standard
by Eric Griffith
Hey everyone, first message to the mailing list and a new packager in
general. I've gone over the wiki and the docs but a few things are
still unclear to me.
1) rpmlint complains about source0 not being a valid URL, but it
rpmbuild can't find the source if I have it correct... Currently it
says:
Source0:
https://github.com/01org/thermal_daemon/archive/v%{version}.tar.gz
But when I do "rpmbuild -ba thermal_daemon.spec" (following Fedora
Documentation http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/R...
) then rpmbuild complains about:
error: File /home/egriffith/rpmbuild/SOURCES/v1.30.tar.gz: No such
file or directory
presumably because its just looking at "v%{version}.tar.gz". What is
the appropriate fix here? The upstream source is in fact:
https://github.com/01org/thermal_daemon/archive/v%{version}.tar.gz (in
this case v1.30.tar.gz)
but the download link gives you "thermal_daemon-1.3.tar.gz" which is
in my SOURCES directory. So do I rename thermal_daemon-1.3.tar.gz to
be "v1.30.tar.gz" or do I modify "Source0" to not be 100% faithful to
the actual URL? Or is there an override I can use to specify that the
downloaded files have a different name than the upstream source URL?
2) %build section. The original spec file had 'autoreconf' the
compilation instructions had ./autogen.sh. Which is the correct one to
use? Current spec uses autogen.sh
3) Is a "BuildRequires: systemd" necessary or is it just redundant?
4) Can someone link or explain the Requires(post)/(preun)/(postun),
same with %post, %preun, %postun
5) %files does every single file need to be listed here or just
'important ones? I left out /usr/share/src, /usr/lib and a couple
others.
6) Upstream name is "thermal_daemon" but I see it packaged elsewhere
as "thermald" and the binary / .service is thermald. Preference goes
to...?
8 years, 3 months
Summary/Minutes from today's FPC Meeting (2015-02-19 17:00 - 18:45 UTC)
by James Antill
======================
#fedora-meeting-1: fpc
======================
Meeting started by geppetto at 17:00:46 UTC. The full logs are available
at
http://meetbot.fedoraproject.org/fedora-meeting-1/2015-02-19/fpc.2015-02-...
.
Meeting summary
---------------
* Roll Call (geppetto, 17:00:46)
* Schedule (geppetto, 17:04:19)
* LINK:
https://lists.fedoraproject.org/pipermail/packaging/2015-February/010471....
(geppetto, 17:04:21)
* #492 Reverse weak dependencies (geppetto, 17:04:37)
* LINK: https://fedorahosted.org/fpc/ticket/492 (geppetto, 17:04:43)
* ACTION: Create a real policy in the ticket, probably as a new page
that is linked to, using the information provided by the dnf
maintainer. Include examples for packagers, and how to change the
dnf settings. (geppetto, 17:21:33)
* ACTION: Also include "normal" weak deps., so we can at least make
sure they both line up correctly. Although we'll probably vote on
them separately. (geppetto, 17:22:25)
* #493 Bundling exception: python-execnet bundles python-apipkg
(geppetto, 17:23:12)
* LINK: https://fedorahosted.org/fpc/ticket/493 (geppetto, 17:23:35)
* ACTION: apipkg is in rawhide, check back if you need anything else.
If we don't hear anything we'll close the ticket in a few weeks.
(geppetto, 17:32:17)
* #495 Proposal: Package Guidelines: PreupgradeAssistant contents
packages (geppetto, 17:32:26)
* LINK: https://fedorahosted.org/fpc/ticket/495 (geppetto, 17:32:30)
* ACTION: PreupgradeAssistant contents packages (+1:6, 0:0, -1:0)
(geppetto, 17:57:49)
* LINK: https://github.com/phracek/preupgrade-assistant (tibbs|w,
17:57:55)
* #497 Clean up BuildRequires section; don't try to define the minimal
build env (geppetto, 18:01:03)
* LINK: https://fedorahosted.org/fpc/ticket/497 (geppetto, 18:01:09)
* ACTION: tibbs Tweak email with feedback and post again, will look at
voting on something next week. (geppetto, 18:13:45)
* #498 Seeking guidance: Apps using default Python in Fedora vs. EPEL
(geppetto, 18:14:02)
* LINK: https://fedorahosted.org/fpc/ticket/498 (geppetto, 18:14:08)
* LINK:
https://fedoraproject.org/wiki/User:Tomspur/Unversioned_Python_Macros#Byt...
(tibbs|w, 18:26:51)
* ACTION: Apps using default Python in Fedora vs. EPEL (+1:6, 0:0,
-1:0) (geppetto, 18:28:12)
* Open Floor (geppetto, 18:28:35)
* LINK:
https://lists.fedoraproject.org/pipermail/packaging/2015-February/010471....
… we've got 7 anchient tickets (geppetto, 18:29:52)
* LINK: https://fedorahosted.org/fpc/ticket/221 (tibbs|w, 18:30:36)
* #221 Bundling exception request: numptyphysics and Box2D (geppetto,
18:31:02)
* LINK: https://fedorahosted.org/fpc/ticket/221 (geppetto, 18:31:10)
* ACTION: retiring package, so doesn't matter. (geppetto, 18:33:54)
* Open Floor (geppetto, 18:34:44)
Meeting ended at 18:45:42 UTC.
Action Items
------------
* Create a real policy in the ticket, probably as a new page that is
linked to, using the information provided by the dnf maintainer.
Include examples for packagers, and how to change the dnf settings.
* Also include "normal" weak deps., so we can at least make sure they
both line up correctly. Although we'll probably vote on them
separately.
* apipkg is in rawhide, check back if you need anything else. If we
don't hear anything we'll close the ticket in a few weeks.
* PreupgradeAssistant contents packages (+1:6, 0:0, -1:0)
* tibbs Tweak email with feedback and post again, will look at voting on
something next week.
* Apps using default Python in Fedora vs. EPEL (+1:6, 0:0, -1:0)
* retiring package, so doesn't matter.
Action Items, by person
-----------------------
* **UNASSIGNED**
* Create a real policy in the ticket, probably as a new page that is
linked to, using the information provided by the dnf maintainer.
Include examples for packagers, and how to change the dnf settings.
* Also include "normal" weak deps., so we can at least make sure they
both line up correctly. Although we'll probably vote on them
separately.
* apipkg is in rawhide, check back if you need anything else. If we
don't hear anything we'll close the ticket in a few weeks.
* PreupgradeAssistant contents packages (+1:6, 0:0, -1:0)
* tibbs Tweak email with feedback and post again, will look at voting
on something next week.
* Apps using default Python in Fedora vs. EPEL (+1:6, 0:0, -1:0)
* retiring package, so doesn't matter.
People Present (lines said)
---------------------------
* geppetto (121)
* tibbs|w (113)
* tomspur (34)
* mbooth (19)
* limburgher (19)
* orionp (10)
* zodbot (8)
* hhorak (2)
* tomspur_ (1)
Generated by `MeetBot`_ 0.1.4
.. _`MeetBot`: http://wiki.debian.org/MeetBot
8 years, 3 months