Ticket #26 (closed defect: fixed)

Opened 1 year ago

Last modified 8 months ago

Creating rpm for vuurmuur_conf on Fedora 7 fails

Reported by: victor Assigned to: victor
Priority: blocker Milestone: 0.6
Component: vuurmuur-conf Version: 0.5.73
Keywords: Cc:

Description

Message:

+ mkdir -p -m 0700 /var/tmp/vuurmuur_conf-0.5.73-root/usr/ /var/tmp/vuurmuur_conf-0.5.73-root/etc/vuurmuur
+ '[' /usr/ '!=' /usr/ ']'
+ cp /var/tmp/vuurmuur_conf-0.5.73-root/usr/share/vuurmuur/config/vuurmuur_conf.conf.sample /var/tmp/vuurmuur_conf-0.5.73-root/etc/vuurmuur/vuurmuur_conf.conf
+ chmod 0600 /var/tmp/vuurmuur_conf-0.5.73-root/etc/vuurmuur/vuurmuur_conf.conf
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip
+ /usr/lib/rpm/brp-strip-static-archive
+ /usr/lib/rpm/brp-strip-comment-note
Processing files: vuurmuur_conf-0.5.73-1
error: File not found: /var/tmp/vuurmuur_conf-0.5.73-root/usr/share/locale/en@boldquot/LC_MESSAGES/vuurmuur_conf.mo
error: File not found: /var/tmp/vuurmuur_conf-0.5.73-root/usr/share/locale/en@quot/LC_MESSAGES/vuurmuur_conf.mo
error: File not found: /var/tmp/vuurmuur_conf-0.5.73-root/usr/share/locale/de/LC_MESSAGES/vuurmuur_conf.mo
error: File not found: /var/tmp/vuurmuur_conf-0.5.73-root/usr/share/locale/nl/LC_MESSAGES/vuurmuur_conf.mo
error: File not found: /var/tmp/vuurmuur_conf-0.5.73-root/usr/share/locale/pt_BR/LC_MESSAGES/vuurmuur_conf.mo
error: File not found: /var/tmp/vuurmuur_conf-0.5.73-root/usr/share/locale/ru/LC_MESSAGES/vuurmuur_conf.mo
error: File not found: /var/tmp/vuurmuur_conf-0.5.73-root/usr/share/locale/fr/LC_MESSAGES/vuurmuur_conf.mo
error: File not found: /var/tmp/vuurmuur_conf-0.5.73-root/usr/share/locale/nb/LC_MESSAGES/vuurmuur_conf.mo
error: File not found: /var/tmp/vuurmuur_conf-0.5.73-root/usr/share/locale/no/LC_MESSAGES/vuurmuur_conf.mo
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/vuurmuur_conf-0.5.73-root


RPM build errors:
    user alex does not exist - using root
    user alex does not exist - using root
    File not found: /var/tmp/vuurmuur_conf-0.5.73-root/usr/share/locale/en@boldquot/LC_MESSAGES/vuurmuur_conf.mo
    File not found: /var/tmp/vuurmuur_conf-0.5.73-root/usr/share/locale/en@quot/LC_MESSAGES/vuurmuur_conf.mo
    File not found: /var/tmp/vuurmuur_conf-0.5.73-root/usr/share/locale/de/LC_MESSAGES/vuurmuur_conf.mo
    File not found: /var/tmp/vuurmuur_conf-0.5.73-root/usr/share/locale/nl/LC_MESSAGES/vuurmuur_conf.mo
    File not found: /var/tmp/vuurmuur_conf-0.5.73-root/usr/share/locale/pt_BR/LC_MESSAGES/vuurmuur_conf.mo
    File not found: /var/tmp/vuurmuur_conf-0.5.73-root/usr/share/locale/ru/LC_MESSAGES/vuurmuur_conf.mo
    File not found: /var/tmp/vuurmuur_conf-0.5.73-root/usr/share/locale/fr/LC_MESSAGES/vuurmuur_conf.mo
    File not found: /var/tmp/vuurmuur_conf-0.5.73-root/usr/share/locale/nb/LC_MESSAGES/vuurmuur_conf.mo
    File not found: /var/tmp/vuurmuur_conf-0.5.73-root/usr/share/locale/no/LC_MESSAGES/vuurmuur_conf.mo

Change History

09/25/07 12:38:34 changed by victor

The problem seems to be that the .mo files are not installed in the build root, but in the live filesystem. The rpm builder expects them in the build root.

12/05/07 21:37:22 changed by Tiger!P

To solve the problem, you can replace the following line:

%makeinstall prefix=%{root_prefix}

with this line:

%makeinstall prefix=%{root_prefix} localedir=${RPM_BUILD_ROOT}%{locale_prefix}

Then the files should be installed in the build root where the spec file tries to find them.

12/05/07 23:05:23 changed by victor

  • status changed from new to closed.
  • resolution set to fixed.

That seems to work! Thanks!

Closing as it is fixed by changeset:133.

05/15/08 14:11:58 changed by victor

  • status changed from closed to reopened.
  • resolution deleted.

It seems that OpenSuse? 10.3 rpm and Fedora 7 rpm are not compatible. The patches changeset:159 and changeset:163 basically undo the fix from this ticket... we need to investigate this...

05/15/08 17:43:45 changed by victor

One thing to consider is that Fedora 7 is (almost) EOL. So if Fedora 8 and 9 do work with our spec file we can just close this ticket.

05/17/08 12:48:53 changed by victor

  • status changed from reopened to closed.
  • resolution set to fixed.

I've chosen to 'fix' it by just adding a separate spec file for Fedora that contains Tiger!P's fix. Closed by changeset:165.