Opened 6 years ago

Closed 5 years ago

#26 closed defect (fixed)

Creating rpm for vuurmuur_conf on Fedora 7 fails

Reported by: victor Owned by: 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 (6)

comment:1 Changed 6 years ago 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.

comment:2 Changed 5 years ago 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.

comment:3 Changed 5 years ago by victor

  • Resolution set to fixed
  • Status changed from new to closed

That seems to work! Thanks!

Closing as it is fixed by changeset:133.

comment:4 Changed 5 years ago by victor

  • Resolution fixed deleted
  • Status changed from closed to reopened

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...

comment:5 Changed 5 years ago 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.

comment:6 Changed 5 years ago by victor

  • Resolution set to fixed
  • Status changed from reopened to closed

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.

Note: See TracTickets for help on using tickets.