[opensuse-buildservice] /etc/sysconfic/... not allowed anymore
Hi all, since some time I used to build the hylafax+ package for openSUSE. Just for the 11.1 release I get the error message after all compiles went OK: Quote: .. running 01-check-debuginfo ... testing for empty debuginfo packages ... running 02-check-gcc-output ... testing for serious compiler warnings (using /usr/lib/build/checks-data/check_gcc_output) (using //.build.log) ... running 03-check-binary-kernel-log ... running 04-check-filelist ... checking filelist hylafax: "/etc/sysconfig/hylafax" is not allowed anymore in SuSE Linux. System halted. /quote Anybody an ides what has changed? and what has to be used instead? Thanks! -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Axel Braun escribió:
Anybody an ides what has changed? and what has to be used instead?
You need to use the fillup macro instead of adding files to /etc/sysconfig directly. -- "We have art in order not to die of the truth" - Friedrich Nietzsche Cristian Rodríguez R. Software Developer Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/
Am Mittwoch 28 Januar 2009 schrieb Cristian Rodríguez:
Anybody an ides what has changed? and what has to be used instead?
You need to use the fillup macro instead of adding files to /etc/sysconfig directly.
yes, the macro is used in %post %{fillup_and_insserv hylafax} /sbin/chkconfig --add hylafax I assume what is calling the problems is the line in %install: install -m 644 %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/hylafax resp in the %files section. I'm not totally clear about the documentation in http://en.opensuse.org/SUSE_Package_Conventions/RPM_Macros#3.6._.25fillup_an... Do i have to add a file /var/adm/fillup-templates/sysconfig.hylafax to the spec file with the content of the current /etc/sysconfig/hylafax? Thanks Axel -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Axel Braun escribió:
Do i have to add a file /var/adm/fillup-templates/sysconfig.hylafax to the spec file with the content of the current /etc/sysconfig/hylafax?
yes. %{__install} -m 644 %{SOURCE13} %{buildroot}/var/adm/fillup-templates/sysconfig.%{name} -- "We have art in order not to die of the truth" - Friedrich Nietzsche Cristian Rodríguez R. Software Developer Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/
Axel Braun escribió:
/sbin/chkconfig --add hylafax
do not use chkconfig directly in spec files BTW, let that job the "insserv" part of the previuosly used macro.. -- "We have art in order not to die of the truth" - Friedrich Nietzsche Cristian Rodríguez R. Software Developer Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/
Le mercredi 28 janvier 2009, à 16:03 -0300, Cristian Rodríguez a écrit :
Axel Braun escribió:
Anybody an ides what has changed? and what has to be used instead?
You need to use the fillup macro instead of adding files to /etc/sysconfig directly.
Everybody thinks it's logical to know how to fix the error, but, well the error could explicitly mention the solution :-) I filed https://bugzilla.novell.com/show_bug.cgi?id=470965 Vincent -- Les gens heureux ne sont pas pressés. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
* Axel Braun [2009-01-28 19:59:22]:
Hi all,
since some time I used to build the hylafax+ package for openSUSE. Just for the 11.1 release I get the error message after all compiles went OK:
Quote: .. running 01-check-debuginfo ... testing for empty debuginfo packages ... running 02-check-gcc-output ... testing for serious compiler warnings (using /usr/lib/build/checks-data/check_gcc_output) (using //.build.log) ... running 03-check-binary-kernel-log ... running 04-check-filelist ... checking filelist hylafax: "/etc/sysconfig/hylafax" is not allowed anymore in SuSE Linux. System halted. /quote
Anybody an ides what has changed? and what has to be used instead?
That has to go to /var/adm/fillup-templates and installed with the %fillup macro. See also: http://de.opensuse.org/Paketbau/SUSE-Paketkonventionen/RPM- Makros#3.6._.25fillup_and_insserv Bernhard -- Bernhard Walle, SUSE LINUX Products GmbH, Architecture Development
Hello Folks, excuse my Thread Hijacking. But my Problem is similar to the Poststarters Problem. Project: home:saigkill Package: boinc-client If the Package is building, the file named "boinc-client" was created in /etc/sysconfig. Now i've included in the %post section: %{fillup_and_insserv -f -y boinc-client boinc-client} After the building the checks runs. Now the check says: Installed (but unpackaged) file(s) found: /etc/sysconfig/boinc-client If i include in the %file Section: %{_sysconfdir}/sysconfig/boinc-client the output says: checking filelist boinc-client: "/etc/sysconfig/boinc-client" is not allowed anymore in SuSE Linux. What can i do? -- Sincereley yours Sascha Manns openSUSE Marketing Team (Weekly News) openSUSE Build Service Web: http://saschamanns.gulli.to Blog: http://lizards.opensuse.org/author/saigkill -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 2009-02-01 11:21:20 +0100, Sascha 'saigkill' Manns wrote:
Hello Folks,
excuse my Thread Hijacking. But my Problem is similar to the Poststarters Problem. Project: home:saigkill Package: boinc-client
If the Package is building, the file named "boinc-client" was created in /etc/sysconfig. Now i've included in the %post section: %{fillup_and_insserv -f -y boinc-client boinc-client}
After the building the checks runs. Now the check says: Installed (but unpackaged) file(s) found: /etc/sysconfig/boinc-client
Simply move it to %{buildroot}/var/adm/fillup-templates/sysconfig.boinc-client in the %install section. Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hello Marcus, On Sonntag 01 Februar 2009 11:30:38 Marcus Hüwe wrote:
On 2009-02-01 11:21:20 +0100, Sascha 'saigkill' Manns wrote:
excuse my Thread Hijacking. But my Problem is similar to the Poststarters Problem. Project: home:saigkill Package: boinc-client Simply move it to %{buildroot}/var/adm/fillup-templates/sysconfig.boinc-client in the %install section. Now i have seperated the sysconfig.boinc-client File and added it to Source. Than my %install Section: # install template for sysconfig install -D -m644 %{S:5} %{buildroot}/var/adm/fillup- templates/sysconfig.boinc-client
The %post: # Macro to use an sysconfig File %{fillup_and_insserv -f -y boinc-client} Then i included in the %files Section: /etc/sysconfig/boinc-client /var/adm/fillup-templates/sysconfig.boinc-client If i delete the Row witth /etc/sysconfig the check says: Unpackaged File. But if i let it so the check says: "not allowed in SuSE Linux". Is an other Error present in my Spec? -- Sincereley yours Sascha Manns openSUSE Marketing Team (Weekly News) openSUSE Build Service Web: http://saschamanns.gulli.to Blog: http://lizards.opensuse.org/author/saigkill -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 2009-02-01 17:18:33 +0100, Sascha 'saigkill' Manns wrote:
Then i included in the %files Section: /etc/sysconfig/boinc-client /var/adm/fillup-templates/sysconfig.boinc-client
If i delete the Row witth /etc/sysconfig the check says: Unpackaged File. But if i let it so the check says: "not allowed in SuSE Linux".
Make sure that this sysconfig file doesn't get installed into %{sysconfdir}/sysconfig. So either adjust the boinc-sysconfig.patch or add something like "%__rm %{buildroot}%{_sysconfdir}/sysconfig/boinc-client" to the %install section. Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Now i had maked osc ci to the boinc-package, so everyone can see the misere. ;-) -- Sincereley yours Sascha Manns openSUSE Marketing Team (Weekly News) openSUSE Build Service Web: http://saschamanns.gulli.to Blog: http://lizards.opensuse.org/author/saigkill -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (6)
-
Axel Braun
-
Bernhard Walle
-
Cristian Rodríguez
-
Marcus Hüwe
-
Sascha 'saigkill' Manns
-
Vincent Untz