LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-28-2019, 07:14 PM   #1
adrianomorselli
LQ Newbie
 
Registered: Feb 2019
Location: Mantova Italy
Distribution: Uplos
Posts: 15

Rep: Reputation: Disabled
How app developers does deb or rpm packages?


A question, how developers does their packages as installable like .deb or rpm. For example if I want to install Libreoffice I can download from Libreoffice dominion their ready-made rpm and install on my rpm based distro with rpm -ivh *.rpm and if I have all dependencies application is here and working.
 
Old 03-28-2019, 07:23 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,018
Blog Entries: 5

Rep: Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870
An introduction to Debian packaging:

https://wiki.debian.org/Packaging/In...ebianPackaging
 
1 members found this post helpful.
Old 03-28-2019, 07:28 PM   #3
adrianomorselli
LQ Newbie
 
Registered: Feb 2019
Location: Mantova Italy
Distribution: Uplos
Posts: 15

Original Poster
Rep: Reputation: Disabled
Thanks, I known how to build a package from source on debian and on mandriva derivate, but my question is..how libreoffice developers does their rpm (or deb) packages? Which distro do they use?
 
Old 03-28-2019, 07:36 PM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,018
Blog Entries: 5

Rep: Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870
Quote:
Originally Posted by adrianomorselli View Post
Thanks, I known how to build a package from source on debian and on mandriva derivate, but my question is..how libreoffice developers does their rpm (or deb) packages? Which distro do they use?
You will probably need to contact the LibreOffice developers and ask them. Is there a specific reason for you wanting to know, or is it just out of interest?
 
1 members found this post helpful.
Old 03-29-2019, 03:30 AM   #5
adrianomorselli
LQ Newbie
 
Registered: Feb 2019
Location: Mantova Italy
Distribution: Uplos
Posts: 15

Original Poster
Rep: Reputation: Disabled
Ah yes, my build fails and I have no idea why. Error is '/usr/include/c++/7.2.1/cstdlib:75:15: fatal error : stdlib.h : No such file or directory #include_next <stdlib.h>'
But stdlib.h is in /usr/include
 
Old 03-29-2019, 08:14 AM   #6
tyler2016
Member
 
Registered: Sep 2018
Distribution: Debian, CentOS, FreeBSD
Posts: 250

Rep: Reputation: Disabled
I'm not as familiar with .deb packages, but RPMS have what is called a spec file where you specify build instructions, dependencies, install locations etc. It sounds like in the Debian equivalent your build process isn't quite right. A quick look at the Debian docs shows you create a control file with all of the dependencies and a rules file specifying the build process. It sounds like you may need to edit one of these.

Here is what I would do if I were in your shoes. To save time learning, I would create a hello world package that uses one non standard library and package it up in order to learn how to use these files. I recommend using the libcurl simple.c:

https://curl.haxx.se/libcurl/c/simple.html

Here is a good reference for creating rules files:

https://www.debian.org/doc/manuals/m....en.html#rules
 
Old 03-29-2019, 08:59 AM   #7
adrianomorselli
LQ Newbie
 
Registered: Feb 2019
Location: Mantova Italy
Distribution: Uplos
Posts: 15

Original Poster
Rep: Reputation: Disabled
Hello tyler2016, I used two different spec, yes I use an rpm based, every time I have same error. My friends told me to controll every step, first compile and then check inside CmakeCache.txt,if I have right buildrequires, requires,right path and if I have all right libs in my system according to path. I hope it will be no a problem with our cmake
 
Old 03-29-2019, 09:06 AM   #8
tyler2016
Member
 
Registered: Sep 2018
Distribution: Debian, CentOS, FreeBSD
Posts: 250

Rep: Reputation: Disabled
Does the application build outside of the packaging system? I.e. will it build if you do a cmake then make? It sounds like you might need to check your include paths.
 
1 members found this post helpful.
Old 03-29-2019, 09:19 AM   #9
adrianomorselli
LQ Newbie
 
Registered: Feb 2019
Location: Mantova Italy
Distribution: Uplos
Posts: 15

Original Poster
Rep: Reputation: Disabled
Perhaps you are right, I will check
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot download any packages through terminal on LinuxMint Cinnamon 13 Maya. .deb packages only. daree361 Linux - Software 10 02-08-2017 02:48 PM
LXer: Microsoft! needs! Yahoo! developers! developers! developers! LXer Syndicated Linux News 0 02-02-2008 12:40 AM
When DEB packages need strange packages noteventime Linux - Software 0 11-29-2005 10:37 AM
Can apt4rpm use deb repositories or install .deb packages? raylpc Linux - General 0 08-18-2003 02:49 AM
creating packages (.tgz/.deb/.rpm) How from the source packages? l_9_l Linux - General 1 03-06-2002 07:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration