Bug 27795 - /usr/sbin/service instead of /sbin/service
Summary: /usr/sbin/service instead of /sbin/service
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: rpm-macros-apache2 (show other bugs)
Version: unstable
Hardware: all Linux
: P3 major
Assignee: Michael Shigorin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-03 16:02 MSK by Michael Shigorin
Modified: 2012-10-03 16:19 MSK (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Shigorin 2012-10-03 16:02:51 MSK
$ rpm --eval %postun_apache2conf 
/usr/sbin/service httpd2 condreload
$ ls -l /usr/sbin/service
/bin/ls: cannot access /usr/sbin/service: No such file or directory
$ rpm -qf `grep -rl postun_apache2conf /etc/rpm/macros.d`
rpm-macros-apache2-3.8-alt1

Для исправления придётся пересобирать также все пакеты, собранные с неисправными версиями rpm-macros-apache2 и использующие %post_apache2conf/%postun_apache2conf, либо втыкать в пакет service костыль в виде симлинка /usr/sbin/service.

Спасибо lakostis@ за обнаружение проблемы.
Comment 1 Dmitry V. Levin 2012-10-03 16:08:48 MSK
(In reply to comment #0)
> $ rpm --eval %postun_apache2conf 
> /usr/sbin/service httpd2 condreload
> $ ls -l /usr/sbin/service
> /bin/ls: cannot access /usr/sbin/service: No such file or directory
> $ rpm -qf `grep -rl postun_apache2conf /etc/rpm/macros.d`
> rpm-macros-apache2-3.8-alt1

Спасибо, уже заметили:

$ rpmquery -p --lastchange Sisyphus/files/SRPMS/rpm-macros-apache2-3.8-alt2.src.rpm 
* Wed Oct 03 2012 Aleksey Avdeev <solo@altlinux.ru> 3.8-alt2
- Fix macros %post_apache2conf and %postun_apache2conf:
  use /sbin/service

> Для исправления придётся пересобирать также все пакеты, собранные с
> неисправными версиями rpm-macros-apache2 и использующие
> %post_apache2conf/%postun_apache2conf, либо втыкать в пакет service костыль в
> виде симлинка /usr/sbin/service.

А много таких?

> Спасибо lakostis@ за обнаружение проблемы.

И ему тоже спасибо. :)
Comment 2 Repository Robot 2012-10-03 16:19:37 MSK
awstats-7.1-alt2.cvs20120604 -> sisyphus:

* Wed Oct 03 2012 L.A. Kostis <lakostis@altlinux> 7.1-alt2.cvs20120604
- update russian search engines.
- rebuild due /usr/sbin/service -> /sbin/service migration (ALT #27795).

* Wed Oct 03 2012 L.A. Kostis <lakostis@altlinux> 7.1-alt1.cvs20120604
- Bug fixes:
  + fix permissions for .pl files.
  + awstats.pl: fix opera version detection (upstream #3564921)
  + browsers_phone.pm: add missing %BrowsersFamily (upstream #3430233)

* Tue Oct 02 2012 L.A. Kostis <lakostis@altlinux> 7.1-alt0.1.cvs20120604
- Updated to CVS 2012/06/04 shapshot.
- re-apply all azol@ patches.
- update buildreq: add perl-Switch, perl-CGI.