Author Topic: Error when building a package: "Must specify the vendor namespace [Solved]  (Read 664 times)

Offline Agent Smith

  • PCLinuxOS Tester
  • Sr. Member
  • *******
  • Posts: 317
    • Brazilian PCLinuxOS Community
Gentlemen,
I am trying to package some programs, and, this error is happening.
The interesting bit: With programs for the i586 and i686 arch, it builds the package well.
If the program's arch is i386, it gives me this error: "Must specify the vendor namespace for these files with --vendor... "
And doesn't finish the process.
I know this might be a minor detail, but since I'm a newbie in this packaging stuff, I'm stuck on this problem.

Any ideas ?

Thanks in advance

« Last Edit: March 14, 2012, 03:21:46 PM by Agent Smith »

Online daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3729
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Source, and specfile to see what you mean?

Thanks...

Offline Agent Smith

  • PCLinuxOS Tester
  • Sr. Member
  • *******
  • Posts: 317
    • Brazilian PCLinuxOS Community
Source, and specfile to see what you mean?

Thanks...


Dear Mr. Leiche,

I got these two packages from Mandriva repos. The first one is: http://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/devel/cooker/SRPMS/non-free/release/roadfighter-1.0.1269-1.src.rpm Road Fighter, a remake of an old video game.
The second one is: http://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/devel/cooker/SRPMS/contrib/release/fbzx-2.7.0-1.src.rpm FBZX, a ZX Spectrum emulator.
I used the spec files that came with the packages, unaltered.
I hope this information helps.
Thanks in advance


Online daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3729
  • God knows, i'm not an Angel!
    • Tipps und Tricks
ahhh, Mandriva, you must edit the specfile to get it work under PCLinuxOS.

I will look inside the specfile

Offline Agent Smith

  • PCLinuxOS Tester
  • Sr. Member
  • *******
  • Posts: 317
    • Brazilian PCLinuxOS Community
ahhh, Mandriva, you must edit the specfile to get it work under PCLinuxOS.

I will look inside the specfile

Hummm, funny, I got a bunch of srpms from Mandriva's repos, and the others worked well, the packages were created without problems.
Just with these 2 I got problems. And I guess it's because they're i386 arch... My hunch, the other ones were all i586 and built the packages well.
Well, see what you can do for me(and tell me later what I am doing wrong).

Best regards!

Online daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3729
  • God knows, i'm not an Angel!
    • Tipps und Tricks
What i do is simple, i create my own desktop file...

http://dl.dropbox.com/u/2077694/roadfighter-1.0.1269-1leiche2012.src.rpm

http://dl.dropbox.com/u/2077694/fbzx-2.7.0-1leiche2012.src.rpm

You will see in Changelog, that i have add this

Code: [Select]
* Wed Mar 14 2012 YOU <You at mail.com> 2.7.0-1you2012
- initial package

Edit it, and enter your name, and email inside...

Hope it will work for you

Regards...

ps. You don't have to call Mr. Leiche ;) only leiche is ok...

Offline Agent Smith

  • PCLinuxOS Tester
  • Sr. Member
  • *******
  • Posts: 317
    • Brazilian PCLinuxOS Community
Ok, I will try them now.

Later I'll post the results.

Thanks a lot, just Leiche...  :D :D :D :D

Edit: I just packaged the sources you sent me, and it went smoothly. I can't believe that just altering the .desktop file made them work.
Very nice Leiche! Tyvm!
Now, more 3 packages to the community! You are a hero man!!!
« Last Edit: March 14, 2012, 03:07:43 PM by Agent Smith »

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: Error when building a package: "Must specify the vendor namespace [Solved]
« Reply #7 on: September 04, 2012, 09:17:09 PM »
..just had this issue..  there is another very simple solution, so I thought I would share:


Use desktop-file-install in %install section of your spec to define an empty vendor string

Code: [Select]
desktop-file-install \
--vendor="" \
--dir=%{buildroot}%{_datadir}/applications \
%{buildroot}%{_datadir}/applications/*
« Last Edit: September 06, 2012, 11:58:37 AM by travisN000 »

Offline Agent Smith

  • PCLinuxOS Tester
  • Sr. Member
  • *******
  • Posts: 317
    • Brazilian PCLinuxOS Community
Re: Error when building a package: "Must specify the vendor namespace [Solved]
« Reply #8 on: September 05, 2012, 05:37:01 AM »
Cool, another very nice tip. Thank you very much!