Re: %pretrans [package name]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/2/20 1:04 AM, Jerry James wrote:
Hi all,

I need a little help.  Sagemath packages up through version 9.1
bundled mathjax (several times!  with 1 png file for every single
glyph in every single font!), which made the documentation very large.
When I built version 9.2, I attempted to unbundle mathjax, replacing
the relevant directories with symlinks.  This requires a %pretrans
scriptlet, as described here:

https://docs.fedoraproject.org/en-US/packaging-guidelines/Directory_Replacement/

My first attempt added a script starting with "%pretrans doc-en -p
<lua>", since sagemath-doc-en is the package containing the
directories-turned-symlinks.  I built that version successfully in
mock, installed the old RPMs into a mock chroot, and then successfully
upgraded to the new version without RPM file conflicts.  Success!

Except that when I tried to build that version in koji, the SRPM
creation step failed.  I unfortunately did not write down the error,
but it pointed to the %pretrans line in the spec, and I somehow
deduced from the error message that something did not understand the
package name just after %pretrans.  So I changed it to "%pretrans -p
<lua>" in the most recent commit to the sagemath package git
repository, hoping that that would be okay, because it would still run
before the RPM transaction, right? Well, that didn't work:
https://bugzilla.redhat.com/show_bug.cgi?id=1903009

So now what?  How does one get "%pretrans [subpackage] -p <lua>" to
pass muster with koji?  Am I missing a trick?

Try this (note the -n):

    %pretrans -n doc-en -p <lua>

See an example in here:

https://src.fedoraproject.org/rpms/python-notebook/blob/master/f/python-notebook.spec#_175

--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux