LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-22-2007, 12:10 PM   #1
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586

Rep: Reputation: 38
Compiling: permissions, ownership of files ...


Using slackware 12

I've been studying how to make packages at linuxpackages .net and a few other
articles I found searching the net. I still have questions:

1. What needs to be the ownership and permissions of files in the package,
and how should I compile a program to ensure this?
For example I noticed some files in /usr/bin were owned by the group bin.

2. How do I chose the architecture when making a program; which should I use
for Slackware12?


3. I found this in "How to make packages" at linuxpackages.net:
Can someone explain this?
Quote:
Ok now that we have the package all tidy in /work/builds lets go ahead and
make it. One mistake most folks make is not ensuring the build folder is owned
by root and has the correct perms. Remember this will be the root of the file
system the package is installed on. The best thing is to type chown root.root
. and chmod 755 . from inside the /work/builds directory. Next type "makepkg
name-version-arch-build.tgz" this will create a package based on what is in
that directory.
Thanks.
 
Old 12-22-2007, 01:04 PM   #2
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564

Rep: Reputation: Disabled
1) Changing ownership of all files to root:root prior to compilation is standard.
2) Most packages are made with CFLAGS="-O2 -march=i486 -mtune=i686", although you could change march to i686, depending on your hardware.
3) The paragraph tells you to chown the entire package tree to root:root & to chmod it to 755. See Shilo's script (below) for another chmod option.
There are several resources available besides those at linuxpackages. In fact, the linuxpackages scripts are not the same as the standard scripts, so they may not be the best ones to learn from. Check out:
http://www.slackwiki.org/Writing_A_SlackBuild_Script
Slackbuilds.org/ faqs, howtos, etc.
There is also a thread here that has some good information in it.
Good luck,
Bill

Last edited by TSquaredF; 12-22-2007 at 01:13 PM.
 
  


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
Let dpkg install files with custom permissions and ownership? FnordPerfect Debian 0 12-30-2006 06:28 PM
Copy files retaining ownership/permissions stefaandk Linux - Newbie 4 09-07-2006 08:25 PM
Group Permissions and Ownership of files and folders bugeyemonster Linux - General 1 04-19-2006 01:52 AM
Apache can't write files despite permissions/ownership linuxChique Linux - Software 2 02-20-2006 10:08 AM
changing permissions and ownership on many files and folders Cinematography Linux - General 4 08-01-2005 03:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12: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
Open Source Consulting | Domain Registration