[Bug 1074245] New: error in the posttrans scriptlet of package ghostscript-fonts-std
http://bugzilla.opensuse.org/show_bug.cgi?id=1074245 Bug ID: 1074245 Summary: error in the posttrans scriptlet of package ghostscript-fonts-std Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: PC OS: openSUSE Factory Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: bnc-team-screening@forge.provo.novell.com Reporter: comes@naic.edu QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- There is an error message about a command not found when the posttrans scriptlet of package ghostscript-fonts-std is executed. Ther scriptlet look like this: posttrans scriptlet (using /bin/sh): if [ -e /run/fontpackages/reconfigure-fonts ]; then if test -x /usr/sbin/fonts-config ; then LC_ALL=POSIX /usr/sbin/fonts-config --quiet fi rm /run/fontpackages/reconfigure-fonts fi if [ -e /run/fontpackages/reconfigure-fonts-cjk ]; then if test -x /usr/sbin/acroread-cidfont-config ; then /usr/sbin/acroread-cidfont-config fi if test -x /usr/sbin/ghostscript-cjk-config ; then /usr/sbin/ghostscript-cjk-config fi rm /run/fontpackages/reconfigure-fonts-cjk fi -n ghostscript-fonts-std exit 0 And the line causing the error is the one before exit 0 at the end that should be removed. Also a proper indentation would not hurt: posttrans scriptlet (using /bin/sh): if [ -e /run/fontpackages/reconfigure-fonts ]; then if test -x /usr/sbin/fonts-config ; then LC_ALL=POSIX /usr/sbin/fonts-config --quiet fi rm /run/fontpackages/reconfigure-fonts fi if [ -e /run/fontpackages/reconfigure-fonts-cjk ]; then if test -x /usr/sbin/acroread-cidfont-config ; then /usr/sbin/acroread-cidfont-config fi if test -x /usr/sbin/ghostscript-cjk-config ; then /usr/sbin/ghostscript-cjk-config fi rm /run/fontpackages/reconfigure-fonts-cjk fi exit 0 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1074245 http://bugzilla.opensuse.org/show_bug.cgi?id=1074245#c1 Egbert Eich <eich@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |eich@suse.com, | |jengelh@inai.de, | |tchvatal@suse.com, | |werner@suse.com --- Comment #1 from Egbert Eich <eich@suse.com> --- Background: In the %posttrans macro in the spec file of ghostscript-fonts-other there appears the '-n ghostscript-fonts-std' argument to the %reconfigure_fonts_postun macro: %if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150000 %reconfigure_fonts_postun -n ghostscript-fonts-std %else [..] This macro however doesn't have a -n argument (in fact, it has no arguments at all) - See https://build.opensuse.org/package/view_file/M17N:fonts/fontpackages/rpm-mac... : %reconfigure_fonts_posttrans \ if [ -e %{__fontsconfigrunflag} ]; then \ %reconfigure_fonts \ [..] Thus, anything after the macro invocation is simply added after the macro. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com