Re: Multi-Threaded make

2012-11-29 Thread Cameron Simpson
On 28Nov2012 21:16, JD  wrote:
| On 11/28/2012 08:21 PM, Cameron Simpson wrote:
| > On 28Nov2012 15:37, JD  wrote:
| > | While building the kernel from source RPM, I run
| > | the command ps -ef | grep make in another terminal,
| > | and I do see that 4 make processes are running, with
| > | each one building objects for a different kernel source
| > | directory.
[...]
| > Is make running with the "-j 4" (or whatever value) option?
|
| I had already said that after running rpmbuild,
| ps -ef shows 4 make processes running.
| So, it must be picking up -j4 from somewhere,
| perhaps from one of the rpmbuild macros.

I neat failure to answer my question.
They could be submakes. Make's allow to invoke itself you know...

What options _is_ make using?
-- 
Cameron Simpson 

I generally avoid temptation unless I can't resist it.  - Mae West
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: building from kernel source rpm

2012-11-29 Thread Bryn M. Reeves
On 28/11/12 18:52, Rick Stevens wrote:
> I reiterate:
> 
>   1. Install the kernel source RPM.
> 
>   2. Navigate to your ~/rpmbuild/SPECS directory.
> 
>   3. Do "rpmbuild -bp --target=x86_64 kernel.spec" or
>  "rpmbuild -bp --target=i686 kernel.spec" depending on your
>  processor.
> 
>   4. Once that's complete, navigate to your
>  ~rpmbuild/BUILD/kernel-3.6.fc17/linux-3.6.7-4.fc17.x86_64
>  directory. Read the "README" file. I say again, read the
>  README file!
> 
>   5. Run "make nconfig" or "make xconfig" or whatever
>  "make *config" floats your boat and bugger the configuration
>  as you see fit.
> 
>   6. Run "make" to build the kernel as you've specified. Follow
>  the directions in the README file's "COMPILING the kernel"
>  section.
> 
> That README file is chock full of what you need to do. This is the way
> customized kernels are built. Always has been, probably always will be.

This is fine if you want a hand-built kernel and don't mind having to
manually save the config used for a given build and keep track of them
over time.

For development work that's normally convenient but if you're doing this
regularly to simply use the builds and want to keep track of your
changes and ensure they don't get mixed up or lost (what config options
did I enable in build x.y.z-foo??) using the SRPM and rpmbuild is easier
(you could also use a VCS but since the original question related to RPM
builds that doesn't seem to be the case).

Running an rpmbuild -ba will generate a new SRPM so as long as you keep
track of release numbers and preserve the SRPMs you can always go back
to see how a given binary RPM was configured (you also get the used
config-* included in it).

Regards,
Bryn.

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: [F17 KDE] Sound cutting out

2012-11-29 Thread Rex Dieter
Lists wrote:

> So I have pithos installed (an excellent Pandora client that skips all
> that nasty flash stuff http://kevinmehall.net/p/pithos/) and Skype.
> Whenever Skype makes a sound, it cuts out all other system sounds, plays
> the sound, and then the rest of the system sounds resume.
> 
> I didn't have this problem with Fedora 16 doing the same thing with the
> same programs (though I'm using an updated Skype client)
> 
> Skype is set to use PulseAudio server (local) and there's no option to
> change to anything else.

It's possible skype is erroneously(?) using the pulseaudio corking feature 
when playing it's audio.  ie, normally you want your other audio to stop to 
take a call, for example.  see also, 
http://lists.freedesktop.org/archives/pulseaudio-discuss/2011-
June/010300.html

To disable that feature, 
edit /etc/pulse/default.pa and comment-out the line referencing
load-module module-role-cork

-- rex

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Multi-Threaded make

2012-11-29 Thread Gabriel VLASIU
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, 28 Nov 2012, JD wrote:

> Date: Wed, 28 Nov 2012 15:37:54 -0700
> From: JD 
> To: Community support for Fedora users 
> User-Agent: Mozilla/5.0 (X11; Linux i686;
> rv:15.0) Gecko/20120911 Thunderbird/15.0.1
> X-Spam-Status: No, score=-4.7 required=5.0 tests=AWL,BAYES_00,
> DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_MED,
> RP_MATCHES_RCVD,SPF_PASS,T_DKIM_INVALID autolearn=ham version=3.3.1
> Subject: Multi-Threaded make
> 
> While building the kernel from source RPM, I run
> the command ps -ef | grep make in another terminal,
> and I do see that 4 make processes are running, with
> each one building objects for a different kernel source
> directory.
> 
> However, something else seems to be single threaded
> which is causing the huge delay in finishing kernel build.
> 
> I found that when I run top to see the upper-most
> cpu consumers, I see only one cc1 process at the top.
> 
> So I ran ps again to see how many cc1 processes there
> are.
> 
> Always - just one cc1 process.
> 
> I would expect to see anywhere from 1 to 4 cc1 processes
> at a time. But that is not the case.
> 
> What is forcing only a single instance of cc1 at a time?
> 
> I hope the devs can have a look at either the compiler
> tools or the make util.

make is invoked from kernel.spec file like this:

make -s ARCH=$Arch V=1 %{?_smp_mflags} $MakeTarget %{?sparse_mflags}
make -s ARCH=$Arch V=1 %{?_smp_mflags} modules %{?sparse_mflags} || exit 1

where %{?_smp_mflags} is:
1 core : -j 1
2 cores: -j 2
4 cores: -j 4
...

You can see multiple make proccesses. But only 2 (in my case) do the real 
work:
user1  22073 12810  0 13:13 pts/000:00:00 make -f scripts/Makefile.build 
obj=fs
user1  24474 22073  0 13:15 pts/000:00:00 make -f scripts/Makefile.build 
obj=fs/cifs
user1  24530 22073  0 13:15 pts/000:00:00 make -f scripts/Makefile.build 
obj=fs/coda

Make proccess with pid 22073 only invoke two addititonal make proccesses 
which call cc1:
user1  3617  3616  0 13:21 pts/000:00:00 
/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/cc1 -quiet -nostdinc 
user1  3627  3626  0 13:21 pts/000:00:00 
/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/cc1 -quiet -nostdinc ...

One cc1 -> one core or you called make with -j 1.


Gabriel

- -- 

// Gabriel VLASIU
//
// OpenGPG-KeyID  : 44952F15
// OpenGPG-Fingerprint: 4AC5 7C26 2FE9 02DA 4906  24B2 D32B 7ED7 4495 2F15
// OpenGPG-URL: http://www.vlasiu.net/public.key


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBAgAGBQJQt0XlAAoJENMrftdElS8VipoQAJ5/rHhGqhIlR7n42EYX7Pqm
D3TjolBfLwX7fIoG/7gwr8J3bTW31sdSZiNjlyYSy1k8z7uRRZhm9vficczFE9Po
l9uuvCQOmLOettrXVRw2dA/SFqCdb463upl2dD7b3/uc6sBx46mNyAePm3H8pY94
SgtByV3z7MqVlpdcTCGOtcIIbt7fwYNkL7JOkifMECaACZOCDTzyZW/oaf3f+JdO
kp6BZSW5sw8/mWq5p+nK949GSi35Ksf++Ibmjxa7K/OhG3cfmP0y1KpM/qBAxaAh
xe0GLSi4WgdvuBSo+DPGveeTPW4LZBsfRWI4NQo3mTzXeZkEf0DgvRc5tqA3U1hO
rpC65YMLGnts80MKiWqOlkb3vSxYUdmZ6Vs2+wNK4nmHEFvOxGhK9Ts5KeYGwLmG
22b+NMdSL8VlTMXi7JUn6JmAl4921f8twC52n7nemV9XLBiJud4m6Vj5B6vNyj41
mHVGW8k5sEkDI++IFBQnSEnDsxeYsYzlF9qXE8tRTDzU45DnNjlG25MkCh/kQp2G
BjkJchkPqZ40lhIOIt29OAV41hTu/7fPyLfyRKuEEJtbzaoJV5eRnCuhZFmZ1zDg
agWRongU/wIO47v0PP54WhqVHKkhqsEircuFhodbUfDDxoU3n24sDLVXiu84XmON
Tj3VakoDyGwoDfu0064U
=gExC
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Multi-Threaded make

2012-11-29 Thread Gabriel VLASIU
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, 29 Nov 2012, Gabriel VLASIU wrote:

> You can see multiple make proccesses. But only 2 (in my case) do the real
> work:
> user1  22073 12810  0 13:13 pts/000:00:00 make -f scripts/Makefile.build 
> obj=fs
> user1  24474 22073  0 13:15 pts/000:00:00 make -f scripts/Makefile.build 
> obj=fs/cifs
> user1  24530 22073  0 13:15 pts/000:00:00 make -f scripts/Makefile.build 
> obj=fs/coda
> 
> Make proccess with pid 22073 only invoke two addititonal make proccesses
> which call cc1:
> user1  3617  3616  0 13:21 pts/000:00:00 
> /usr/libexec/gcc/x86_64-redhat-linux/4.7.2/cc1 -quiet -nostdinc 
> user1  3627  3626  0 13:21 pts/000:00:00 
> /usr/libexec/gcc/x86_64-redhat-linux/4.7.2/cc1 -quiet -nostdinc ...

Of cource, the cc1 listing should look like this (PPID):
user1  3617  24474  0 13:21 pts/000:00:00 
/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/cc1 -quiet -nostdinc 
user1  3627  24530  0 13:21 pts/000:00:00 
/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/cc1 -quiet -nostdinc ... 


Gabriel

- -- 

// Gabriel VLASIU
//
// OpenGPG-KeyID  : 44952F15
// OpenGPG-Fingerprint: 4AC5 7C26 2FE9 02DA 4906  24B2 D32B 7ED7 4495 2F15
// OpenGPG-URL: http://www.vlasiu.net/public.key


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBAgAGBQJQt0caAAoJENMrftdElS8V9GwQAK6Gz1SWYFvcHkD9iEqYm8iB
fPYN+4v/xlqXPpBb+DczQh57xfKOVdpLV6EPHSYMJRUFaz85euUIeIkDBsTd32UY
X+5HJJrWrJZI83TL91Nsm7Z/xBMY+krlvV/s/ZFZoZe5GHCyL12ut8nt/0VUTrYa
3EDzShgwZ4C2AzRi376or16fGsNodKq7DWeBRd/7cujaMWxQ1JEQ82RQfryjB/bI
Yxy85Hwtsc5mwDcFGiithxuoTV7vDE5ZSRDdodzzymxC2pb1J6lilDHoKU/q/WRq
QpeXhhzFZ1I4EBgtd05o9T5lDKNrCwLB09eHOrlTtsj6SyNFb1DwHmqsVlJ5q3/f
vw/vsxcTa7zeptFFuGR30wA7Eg2mnD/7YaS0t0JhpUrNVxkbUE2RC7/ZGtpctbz/
2/7HRikldfLZYgxpYzaXIxZ1bUUsAHxNMNJ2nr/FtWyacwTXAJ5ZGWnTpLg4qDXs
maiCjwXf0FI2Q4Q87J9hfVA9h8bQEu2/oSwvb0VieEbrBA5NESvlBI9cG8hfk0NK
52VwsDH4qjzdXDKcZ1HlrV0S2pqwgxE97KNvWDYIDn4kbdb3O81xQlWA0WxXOc+0
DFu2oZLr2q2RyMMyAvYicQfks8+ce7P8mBdrDPoLD3jHwkZz8GmIYiq9SZxg8auL
cxYyhVM9/ZIug+bybLyR
=RbYP
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


annotate pdf files - best options for use with F17?

2012-11-29 Thread Ranjan Maitra
Hi,

I am required to annotate a pdf file for proof-reading and I was
wondering what users would recommend for easy use with Fedora 17. I
looked online some and came up with xournal, PDFescape, Crocodoc: the
last two are some online resource. I tried xournal but was not
impressed.

Any suggestions?

Many thanks and best wishes,
Rannan


-- 
Important Notice: This mailbox is ignored: e-mails are set to be
deleted on receipt. For those needing to send personal or professional
e-mail, please use appropriate addresses.


Receive Notifications of Incoming Messages
Easily monitor multiple email accounts & access them with a click.
Visit http://www.inbox.com/notifier and check it out!


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: annotate pdf files - best options for use with F17?

2012-11-29 Thread Robert P. J. Day
On Thu, 29 Nov 2012, Ranjan Maitra wrote:

> Hi,
>
> I am required to annotate a pdf file for proof-reading and I was
> wondering what users would recommend for easy use with Fedora 17. I
> looked online some and came up with xournal, PDFescape, Crocodoc:
> the last two are some online resource. I tried xournal but was not
> impressed.

  you'll hate the answer to this, but pay the (at the time) $62 for
pdf studio like i did:

  http://www.qoppa.com/pdfstudio/buy/index.html

i went through *exactly* what you did -- i spend a fair bit of time
proofreading others' PDF files, and i wanted an easy way to annotate
simply with the use of yellow, sticky notes.  i wasted way too much
time looking for the OSS solution -- ran across PDF studio,
paid for it, deliriously happy with it, never looked back.

rday

-- 


Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Multi-Threaded make

2012-11-29 Thread Bruno Wolff III

On Wed, Nov 28, 2012 at 23:10:40 -0700,
  JD  wrote:


As a side note to Bruno, who wanted me to build and try this kernel:
I will reboot immediately after sending this message with this kernel
I just built.


I am not having kswapd issues any more with the version of that kernel 
from the rawhide nodebug repo. So there is a good chance it will be 
usable by you.


On LKML it looks like the proposed set of patches to this will all make it 
to Linus today. So they should be in the 3.7 release even if Linus makes it 
this weekend (which seems pretty likely).

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: 3.7 kernels and kswapd

2012-11-29 Thread Bruno Wolff III

On Thu, Nov 29, 2012 at 00:53:28 -0700,
  JD  wrote:


Hi Bruno,
Just booted kernel-3.7.0-0.rc7.git1.1 compiled under fc16.
2 issues:


While it's getting a bit late in the 3.7 cycle, reporting these as regressions 
upstream is probably a good idea. Regressions for the under development 
kernel seem to get attention.

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Multi-Threaded make

2012-11-29 Thread JD


On 11/29/2012 03:04 AM, Cameron Simpson wrote:

On 28Nov2012 21:16, JD  wrote:
| On 11/28/2012 08:21 PM, Cameron Simpson wrote:
| > On 28Nov2012 15:37, JD  wrote:
| > | While building the kernel from source RPM, I run
| > | the command ps -ef | grep make in another terminal,
| > | and I do see that 4 make processes are running, with
| > | each one building objects for a different kernel source
| > | directory.
[...]
| > Is make running with the "-j 4" (or whatever value) option?
|
| I had already said that after running rpmbuild,
| ps -ef shows 4 make processes running.
| So, it must be picking up -j4 from somewhere,
| perhaps from one of the rpmbuild macros.

I neat failure to answer my question.
They could be submakes. Make's allow to invoke itself you know...

What options _is_ make using?

Look, rpmbuild DOES  NOT invoke make with -j 4 or any other number!!!

From the saved output of running rpmbuild, these are all of the 
invocations of make;

of course they did not get invokes all at once.
During the build ps -ef would show up to 4 makes running at a time.

+ make -f /home/jd/rpmbuild/SOURCES/Makefile.config VERSION=3.7.0 configs
+ make ARCH=i386 oldnoconfig
+ make ARCH=i386 oldnoconfig
+ make -s mrproper
+ make -s ARCH=i386 oldnoconfig
+ make -s ARCH=i386 V=1 bzImage
+ make -f 
/sdb5/redhat/BUILD/kernel-3.6.fc16/linux-3.7.0-0.rc7.git1.1.fc16.i686/scripts/Makefile.modpost 
vmlinux.o
+ make -f 
/sdb5/redhat/BUILD/kernel-3.6.fc16/linux-3.7.0-0.rc7.git1.1.fc16.i686/scripts/Makefile.build 
obj=init

+ make -s ARCH=i386 V=1 modules
+ make -s ARCH=i386 
INSTALL_MOD_PATH=/home/jd/rpmbuild/BUILDROOT/kernel-3.7.0-0.rc7.git1.1.fc16.i386 
modules_install KERNELRELEASE=3.7.0-0.rc7.git1.1.fc16.i686 mod-fw=

+ make -C tools/power/cpupower CPUFREQ_BENCH=false
+ make centrino-decode powernow-k8-decode
+ make
+ make
+ make ARCH=i386 
INSTALL_HDR_PATH=/home/jd/rpmbuild/BUILDROOT/kernel-3.7.0-0.rc7.git1.1.fc16.i386/usr 
headers_install
+ make ARCH=i386 
INSTALL_HDR_PATH=/home/jd/rpmbuild/BUILDROOT/kernel-3.7.0-0.rc7.git1.1.fc16.i386/usr 
headers_check
+ make -C tools/power/cpupower 
DESTDIR=/home/jd/rpmbuild/BUILDROOT/kernel-3.7.0-0.rc7.git1.1.fc16.i386 
libdir=/usr/lib mandir=/usr/share/man CPUFREQ_BENCH=false install
+ make 
DESTDIR=/home/jd/rpmbuild/BUILDROOT/kernel-3.7.0-0.rc7.git1.1.fc16.i386 
install
+ make 
DESTDIR=/home/jd/rpmbuild/BUILDROOT/kernel-3.7.0-0.rc7.git1.1.fc16.i386 
install


--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Multi-Threaded make

2012-11-29 Thread JD


On 11/29/2012 04:24 AM, Gabriel VLASIU wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, 28 Nov 2012, JD wrote:


Date: Wed, 28 Nov 2012 15:37:54 -0700
From: JD 
To: Community support for Fedora users 
User-Agent: Mozilla/5.0 (X11; Linux i686;
 rv:15.0) Gecko/20120911 Thunderbird/15.0.1
X-Spam-Status: No, score=-4.7 required=5.0 tests=AWL,BAYES_00,
 DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_MED,
 RP_MATCHES_RCVD,SPF_PASS,T_DKIM_INVALID autolearn=ham version=3.3.1
Subject: Multi-Threaded make

While building the kernel from source RPM, I run
the command ps -ef | grep make in another terminal,
and I do see that 4 make processes are running, with
each one building objects for a different kernel source
directory.

However, something else seems to be single threaded
which is causing the huge delay in finishing kernel build.

I found that when I run top to see the upper-most
cpu consumers, I see only one cc1 process at the top.

So I ran ps again to see how many cc1 processes there
are.

Always - just one cc1 process.

I would expect to see anywhere from 1 to 4 cc1 processes
at a time. But that is not the case.

What is forcing only a single instance of cc1 at a time?

I hope the devs can have a look at either the compiler
tools or the make util.

make is invoked from kernel.spec file like this:

make -s ARCH=$Arch V=1 %{?_smp_mflags} $MakeTarget %{?sparse_mflags}
make -s ARCH=$Arch V=1 %{?_smp_mflags} modules %{?sparse_mflags} || exit 1

where %{?_smp_mflags} is:
1 core : -j 1
2 cores: -j 2
4 cores: -j 4
...

You can see multiple make proccesses. But only 2 (in my case) do the real
work:
user1  22073 12810  0 13:13 pts/000:00:00 make -f scripts/Makefile.build 
obj=fs
user1  24474 22073  0 13:15 pts/000:00:00 make -f scripts/Makefile.build 
obj=fs/cifs
user1  24530 22073  0 13:15 pts/000:00:00 make -f scripts/Makefile.build 
obj=fs/coda

Make proccess with pid 22073 only invoke two addititonal make proccesses
which call cc1:
user1  3617  3616  0 13:21 pts/000:00:00 
/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/cc1 -quiet -nostdinc 
user1  3627  3626  0 13:21 pts/000:00:00 
/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/cc1 -quiet -nostdinc ...

One cc1 -> one core or you called make with -j 1.


Gabriel


That does not make sense.
I have a unicore!! An old Athlon64 3700+,
and yet ps -ef shows up to 4 makes running at a time.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Multi-Threaded make

2012-11-29 Thread JD


On 11/29/2012 04:29 AM, Gabriel VLASIU wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, 29 Nov 2012, Gabriel VLASIU wrote:


You can see multiple make proccesses. But only 2 (in my case) do the real
work:
user1  22073 12810  0 13:13 pts/000:00:00 make -f scripts/Makefile.build 
obj=fs
user1  24474 22073  0 13:15 pts/000:00:00 make -f scripts/Makefile.build 
obj=fs/cifs
user1  24530 22073  0 13:15 pts/000:00:00 make -f scripts/Makefile.build 
obj=fs/coda

Make proccess with pid 22073 only invoke two addititonal make proccesses
which call cc1:
user1  3617  3616  0 13:21 pts/000:00:00 
/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/cc1 -quiet -nostdinc 
user1  3627  3626  0 13:21 pts/000:00:00 
/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/cc1 -quiet -nostdinc ...

Of cource, the cc1 listing should look like this (PPID):
user1  3617  24474  0 13:21 pts/000:00:00 
/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/cc1 -quiet -nostdinc 
user1  3627  24530  0 13:21 pts/000:00:00 
/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/cc1 -quiet -nostdinc ...


Gabriel


What should and what is are vastly different.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: 3.7 kernels and kswapd

2012-11-29 Thread JD


On 11/29/2012 08:51 AM, Bruno Wolff III wrote:

On Thu, Nov 29, 2012 at 00:53:28 -0700,
  JD  wrote:


Hi Bruno,
Just booted kernel-3.7.0-0.rc7.git1.1 compiled under fc16.
2 issues:


While it's getting a bit late in the 3.7 cycle, reporting these as 
regressions upstream is probably a good idea. Regressions for the 
under development kernel seem to get attention.



How do you propose I do that? What list should I join to report this to?

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: 3.7 kernels and kswapd

2012-11-29 Thread Bruno Wolff III

On Thu, Nov 29, 2012 at 09:09:09 -0700,
  JD  wrote:


On 11/29/2012 08:51 AM, Bruno Wolff III wrote:

On Thu, Nov 29, 2012 at 00:53:28 -0700,
 JD  wrote:


Hi Bruno,
Just booted kernel-3.7.0-0.rc7.git1.1 compiled under fc16.
2 issues:


While it's getting a bit late in the 3.7 cycle, reporting these as 
regressions upstream is probably a good idea. Regressions for the 
under development kernel seem to get attention.



How do you propose I do that? What list should I join to report this to?


I would suggest by starting with using bugzilla.kernel.org. There is some 
trickiness to reporting kernel bugs as some are better reported on specific 
lists. You could also try raising the issues on LKML. I'd keep the two 
separate as they may end up getting handled by different people.

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Multi-Threaded make

2012-11-29 Thread Gabriel VLASIU
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, 29 Nov 2012, JD wrote:

> That does not make sense.
:-)

> I have a unicore!! An old Athlon64 3700+,
In this case %{?_smp_mflags} is expanded to "-j1" or "" and you will have 
exactly only one "cc1".

Just run: rpmbuild -E '%{?_smp_mflags}' and see for yourself on the first 
line in terminal!

> and yet ps -ef shows up to 4 makes running at a time.
Read the previous mail again.


Gabriel

- -- 

// Gabriel VLASIU
//
// OpenGPG-KeyID  : 44952F15
// OpenGPG-Fingerprint: 4AC5 7C26 2FE9 02DA 4906  24B2 D32B 7ED7 4495 2F15
// OpenGPG-URL: http://www.vlasiu.net/public.key


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBAgAGBQJQt5dTAAoJENMrftdElS8VrskP/1TMPmSx6nVDRJf76dgpT7pW
nu6uwFfkifTAT2RcBwAuCYzYpRF0emQvPXuQdMTUukeP4cnNk5GKvSaK7ZfJbSly
nsiSwXIxChVx+un9odEQ6eUumaygW2L172hFo1VsQS6oP1wV3YRA+itXoogCJu/m
pzkfvBA7NDXjxBz/bQNtO2Zy/oAnv5PhxGaqKBPegyqUspgrUT2FtzWg8DD26+n3
D6ge+i8Oo3fgNvq9qf/itcLUFjmWCP9THqHkuTFRf6NvAsdMtoQwjN1iXZASmg2y
HDboYFNun4hyp4yg92v4JV3H56/GvIQjuH6ScexKzSQdorjcPB73JrleUUoqbO19
eRN+XggnPZ2cElzOsPLsD6e7DDIrlvRaTSEnrcJgEzskS3npKAEKO85iR9L6vjcr
JCoX5ZO7gBnq5SLctVrQY0/sDKwFCETPYCKvVx/OAc8T+Q1AIV7bVQU3Uct3lkGV
dxhDTiuSzPRnmlUxw4AQYqmrgVS+ebhRStPXnd6y4a96fZfY0mhnFv45S85x83c/
TTNOutgv1JjZmN/oQJm0tCNXZlAMPv56v/2aOqVFza86CE7fN5c3tTJ8iHeuIcHV
PT77qNolWRVdtcHQgPvWu8qCTEyZrVOHht34kYqMUC00kxazM5V2z94zzGjfPk/b
a4C+fAbZIxMp1V+ipw0w
=koAE
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: slightly OT - user-specific postscript config files?

2012-11-29 Thread Cameron Mura
Hi, problem (below) solved: blasted away my $HOME/.cups directory, 
allowing things to default to /etc/cups/lpoptions, and all is back to 
normal...


=== Cameron Mura wrote (on 11/28/2012 09:39 PM): ===

Hello,

apologies for this being slightly off-topic (I work in Fedora, so this 
list occurred to me as one place to ask the question...)


In a nutshell: I'm wondering if anyone could point me to useful 
resources that describe where user-specific Postscript 
information/customizations/etc. are stored on a standard, vanilla 
Fedora installation ?  I really do mean /user-specific/ (not global) 
preferences here, so I imagine the info/settings probably live 
somewhere in $HOME/, but my Linux/Fedora print config knowledge has 
become outdated and quite rusty... I tried some obvious things -- like 
blasting away the $HOME/.gtklp that exists if one has GtkLP installed 
(this is a GTK frontend to CUPS) -- but all this was to no avail, my 
page-scaling problem persists.  I've also searched extensively online 
for the info (queries like "linux postscript user customization 
file"), but still can't find anything.


A bit of backstory: Suddenly, any email I print from Thunderbird, by 
sending to the default print queue, ends up being scaled-down by a 
factor of ~0.8x, positioned flush-left and flush-bottom on the 
standard-sized (8.5"x11" letter) paper.  I learned the following from 
various troubleshooting efforts and tests:


   1. problem is not the printer itself -- e.g., a simplex queue on
  the same printer works fine (problem is I use duplex)
   2. problem is not Thunderbird-specific -- I initially thought I
  must have mung'd a t-bird setting in prefs.js or something like
  that, but turns out that's not the problem -- interestingly,
  this scaling problem does /not/ occur if I print a PDF file to
  the troublesome print queue, but it /does/ occur if I print a
  postscript file from any postscript-aware app (e.g. okular),
  which led me to conclude it's some generic postscript config
  problem...
   3. problem is not global, but rather is user-specific -- the
  scaling problem does not occur with another user account on the
  same machine

>From the above I deduced it's some user-specific Postscript 
weirdness, and was hoping this could be traced to something in $HOME, 
but for the life of me I can't get any further maybe I'm missing 
something obvious?!?


...any tips or pointers to online resources would be greatly appreciated!
thanks,
cam


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Disabling NetworkManager

2012-11-29 Thread Alex
Hi,

> How do I properly disable NetworkManager so applications don't think
> my wired network is offline? I'm using a network bridge for kvm, and
> it's always been easier to use the old style networking. I've run the
> following commands to disable it and enable regular network services:
>
>   systemctl stop NetworkManager.service
>   systemctl disable NetworkManager.service
>   systemctl enable network.service
>   systemctl start network.service

As a follow-up to my previous question, I've learned that if I start
Evolution with --force-online, it works properly.

There is still the little network icon in the upper-right with the X
in it, apparently indicating NetworkManager networking is disabled.
How is this controlled?

Thanks,
Alex
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Disabling NetworkManager

2012-11-29 Thread Marko Vojinovic
On Thu, 29 Nov 2012 15:07:02 -0500 Alex  wrote:
> How do I properly disable NetworkManager so applications don't think
> my wired network is offline?

First, do a

  systemctl stop NetworkManager.service
  systemctl mask NetworkManager.service

Get well informed about the mask command in "man systemctl".

Then, configure properly the wired network interface to use the old
network service (most notably, pay attention to "NM_CONTROLLED" keyword
in /etc/sysconfig/network-scripts/ifcfg-).

Finally, when everything is set up properly, do a

  systemctl enable network.service
  systemctl restart network.service

or do a "start" instead of "restart" if it is not active already.

> My network is then functional, but Evolution and sometimes Firefox
> complain the network is stopped yet still enabled. If I disable it
> with systemctl entirely, Xorg crashes with the following:

What do you mean by "entirely"? How exactly did you disable it?

> Any ideas of how to properly disable NetworkManager so applications
> don't stop working?

All apps should work, regardless of NM or network.service being active,
as long as everything is configured so that the latter two don't clash
into each other. If Xorg or other things crash, it's a separate issue.
For one thing, Xorg should be operational for an offline machine as
well as an online one (although maybe it requires the loopback
interface to be active, I'm not sure).

Make sure that NM is masked and network.service is correctly configured
and operational. After that, report separately any issues that you might
have with other apps.

HTH, :-)
Marko

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Disabling NetworkManager

2012-11-29 Thread Marko Vojinovic
On Thu, 29 Nov 2012 22:27:29 +0100 Marko Vojinovic 
wrote:
> First, do a
> 
>   systemctl stop NetworkManager.service
>   systemctl mask NetworkManager.service

Ooops, sorry, make that

   systemctl mask NetworkManager.service
   systemctl stop NetworkManager.service

First mask it, then stop it. Otherwise, some app my restart NM again
before you manage to type the mask command... ;-)

HTH, :-)
Marko

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Disabling NetworkManager

2012-11-29 Thread Alex
Hi,

>> How do I properly disable NetworkManager so applications don't think
>> my wired network is offline?
>
> First, do a
>
>   systemctl stop NetworkManager.service
>   systemctl mask NetworkManager.service
>
> Get well informed about the mask command in "man systemctl".

Awesome, that fixed it, thanks.

> Then, configure properly the wired network interface to use the old
> network service (most notably, pay attention to "NM_CONTROLLED" keyword
> in /etc/sysconfig/network-scripts/ifcfg-).

It was already set for ifcfg-p22p1, so I've added it to ifcfg-br0.

> Finally, when everything is set up properly, do a
>
>   systemctl enable network.service
>   systemctl restart network.service
>
> or do a "start" instead of "restart" if it is not active already.

Yes, this I had already done. Networking was working; it was just
applications that seem to be dependant upon NetworkManager control.

>> My network is then functional, but Evolution and sometimes Firefox
>> complain the network is stopped yet still enabled. If I disable it
>> with systemctl entirely, Xorg crashes with the following:
>
> What do you mean by "entirely"? How exactly did you disable it?

I just meant I used both "stop" and "disable".

>> Any ideas of how to properly disable NetworkManager so applications
>> don't stop working?
>
> All apps should work, regardless of NM or network.service being active,
> as long as everything is configured so that the latter two don't clash
> into each other. If Xorg or other things crash, it's a separate issue.

We'll see if it happens again with Xorg next time I restart.
Unbelievable it would seem so reliant upon NM. There are thousands of
/var/spool/abrt directories, all from the same login.

> Make sure that NM is masked and network.service is correctly configured
> and operational. After that, report separately any issues that you might
> have with other apps.

Very helpful, thanks so much. Do you know of a doc that explains the
proper way to set up NM to provide bridging for kvm and virt-manager?

How do I even access the NM network management GUI from within GNOME?
I really hate this new GNOME.

Thanks,
Alex
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Disabling NetworkManager

2012-11-29 Thread Alex
Hi,

>>   systemctl stop NetworkManager.service
>>   systemctl mask NetworkManager.service
>
> Ooops, sorry, make that
>
>systemctl mask NetworkManager.service
>systemctl stop NetworkManager.service
>
> First mask it, then stop it. Otherwise, some app my restart NM again
> before you manage to type the mask command... ;-)

The whole "mask" thing looks like a hack to me in the first place, but
I guess I can understand, considering the 'network' method has
probably been deprecated for at least a few versions now.

Thanks again,
Alex
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Multi-Threaded make

2012-11-29 Thread Cameron Simpson
On 29Nov2012 19:11, Gabriel VLASIU  wrote:
| On Thu, 29 Nov 2012, JD wrote:
| > That does not make sense.
| :-)
| 
| > I have a unicore!! An old Athlon64 3700+,
| In this case %{?_smp_mflags} is expanded to "-j1" or "" and you will have 
| exactly only one "cc1".
| 
| Just run: rpmbuild -E '%{?_smp_mflags}' and see for yourself on the first 
| line in terminal!
| 
| > and yet ps -ef shows up to 4 makes running at a time.
| Read the previous mail again.

Maybe he should run:

  ps axf
or
  pstree

and see it that tells him anything about parallel or parent-child.
He's clearly unwilling to take lack of a "-j blah" option to be a clue.
-- 
Cameron Simpson 

The fortunate man knows how much he can safely leave to chance.
- Lady Barbara Hornblower
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: slightly OT - user-specific postscript config files?

2012-11-29 Thread Cameron Simpson
On 29Nov2012 13:51, Cameron Mura  wrote:
| Hi, problem (below) solved: blasted away my $HOME/.cups directory, 
| allowing things to default to /etc/cups/lpoptions, and all is back to 
| normal...

When this happens to you again, try moving the .cups directory sideays,
eg:

  cd
  mv .cups DOTcups-evil

This should let you examine it for specific evilness after the fact.
Especially by comparing it against a well behaving .cups direct when you
have a new one.

Cheers,
-- 
Cameron Simpson 

It must be public fact, because I'm not the only one who knows about it.
- Stefan A. Werner 
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Getting Pulse Audio to Recognize a Video as a Video

2012-11-29 Thread Fedora User
Pulse gets it right with youtube and plays them with the Video settings.
However, it plays VLC or SMPlayer or whatever with the music settings.
Any idea how to correct this?

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Multi-Threaded make

2012-11-29 Thread David G . Miller
Gabriel VLASIU  vlasiu.net> writes:

> 
> 
> On Thu, 29 Nov 2012, JD wrote:
> 
> > That does not make sense.
> 
> > I have a unicore!! An old Athlon64 3700+,
> In this case %{?_smp_mflags} is expanded to "-j1" or "" and you will have 
> exactly only one "cc1".
> 

> > and yet ps -ef shows up to 4 makes running at a time.
> Read the previous mail again.
> 
> Gabriel
> 
Make is much more constrained by disk I/O than by CPU load.  Setting -j to be
equal to the number of cores/CPUs is just playing it safe.  This is especially
true when building a rpm which involves not just compiles and link but also
packaging, dependency resolution and documentation tasks which are even more
disk I/O intensive than compiles.  Chances are that several of these operations
that not dependent on successfully compiling the code are fired off in parallel
rather than doing them sequentially and that old workhorse make gets the task of
managing each of these tasks.  Thus, you end up with multiple copies of make
running at the same time even on a single core/CPU system to perform these 
tasks.

Now just to totally blow your mind...  while working with the 2.5.X development
kernels prior to the release of 2.6.0 I was doing at least one kernel build for
each new point release (sometimes more if there were build issues to resolve). 
At that time my primary desktop was a dual CPU (back in the day before multiple
cores) Athlon rig.  Since I had all sorts of time and plenty of trials to
experiment with I played around with the setting of -j for kernel builds.  My
best results were with -j 12.

Cheers,
Dave



-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Disabling NetworkManager

2012-11-29 Thread Tom Horsley
On Thu, 29 Nov 2012 17:03:11 -0500
Alex wrote:

> The whole "mask" thing looks like a hack to me in the first place

The hack is that it is named "mask". It should be named "disable"
because "disable" essentially does nothing useful at all. (It
really means "don't start at boot, but anytime anyone sneezes
after boot, go ahead and start" - I don't know a good single word
command that means that though :-).
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Bash - an odd problem using sed or awk or for

2012-11-29 Thread John Horne
Hello,

I have a bash script in which a variable is set to one or more lines of
text. What I want is to remove any lines up to and including a blank
line (or alternatively to echo all the lines after the last blank line).
There may be zero or more blank lines, and the blank lines need not be
consecutive. If there is no blank line, then all the lines should be
shown. If the last line is blank, then nothing should be shown. So for
example the variable may contain:

 (the '=' are not part of the variable)
abc def

hijk
xyz


So in this case what is wanted is:


hijk
xyz


to be shown.

I tried something like:

   echo "$XX" | sed -e '/./,/^$/d'

but this didn't display anything. (Where XX is the variable.)
I also tried using a 'for' loop but again this displayed nothing:

   opt=""
   IFS=$'\n'
   for n in $XX; do test -z "$n" && opt="" || opt="$opt $n"; done

(Echoing $opt after this shows that it contains nothing.) I'm not sure
why but even using a for loop just to show it had seen a blank line
didn't work either (using something like 'test -z "$n" && echo found').
My understanding was that by setting IFS to a newline, then the 'for'
loop should see the blank line and just set '$n' to the null string. We
should then be able to test on that.

Ideally what I am looking for is a snappy one line 'sed' or 'awk'
command to handle this :-) Unfortunately at the moment I seem to be
getting nowhere though, even with the 'for' loop.



Thanks,

John.

-- 
John Horne, Plymouth University, UK
Tel: +44 (0)1752 587287Fax: +44 (0)1752 587001

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Disabling NetworkManager

2012-11-29 Thread Marko Vojinovic
On Thu, 29 Nov 2012 17:03:11 -0500 Alex  wrote:
> The whole "mask" thing looks like a hack to me in the first place, but
> I guess I can understand, considering the 'network' method has
> probably been deprecated for at least a few versions now.

There is a genuine explanation for masking, based on the way systemd
works. You can read more about it here:

  http://0pointer.de/blog/projects/three-levels-of-off.html

Best, :-)
Marko

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Multi-Threaded make

2012-11-29 Thread JD


On 11/29/2012 03:48 PM, David G. Miller wrote:

Gabriel VLASIU  vlasiu.net> writes:



On Thu, 29 Nov 2012, JD wrote:


That does not make sense.
I have a unicore!! An old Athlon64 3700+,

In this case %{?_smp_mflags} is expanded to "-j1" or "" and you will have
exactly only one "cc1".




and yet ps -ef shows up to 4 makes running at a time.

Read the previous mail again.

Gabriel


Make is much more constrained by disk I/O than by CPU load.  Setting -j to be
equal to the number of cores/CPUs is just playing it safe.  This is especially
true when building a rpm which involves not just compiles and link but also
packaging, dependency resolution and documentation tasks which are even more
disk I/O intensive than compiles.  Chances are that several of these operations
that not dependent on successfully compiling the code are fired off in parallel
rather than doing them sequentially and that old workhorse make gets the task of
managing each of these tasks.  Thus, you end up with multiple copies of make
running at the same time even on a single core/CPU system to perform these 
tasks.

Now just to totally blow your mind...  while working with the 2.5.X development
kernels prior to the release of 2.6.0 I was doing at least one kernel build for
each new point release (sometimes more if there were build issues to resolve).
At that time my primary desktop was a dual CPU (back in the day before multiple
cores) Athlon rig.  Since I had all sorts of time and plenty of trials to
experiment with I played around with the setting of -j for kernel builds.  My
best results were with -j 12.

Cheers,
Dave




For the last time:
rpmbuild has no -j anything  option!!!

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Disabling NetworkManager

2012-11-29 Thread Marko Vojinovic
On Thu, 29 Nov 2012 17:01:47 -0500 Alex  wrote:
> > Make sure that NM is masked and network.service is correctly
> > configured and operational. After that, report separately any
> > issues that you might have with other apps.
> 
> Very helpful, thanks so much. Do you know of a doc that explains the
> proper way to set up NM to provide bridging for kvm and virt-manager?

No, I don't, sorry. But that doesn't mean that such a doc doesn't
exist. You should google it up or something. I don't know about it only
because I never use Fedora's built-in virtualization software, so I
never needed to configure NM for bridging and stuff... 
 
> How do I even access the NM network management GUI from within GNOME?
> I really hate this new GNOME.

I don't use Gnome (especially not this new one), but you should have an
icon somewhere in the "system tray" (or whatever is equivalent in
Gnome3), showing the status of the network. You can left- or
right-click on it, and use available menus to access any
configuration-related GUI for NetworkManager. I have such a thing in
KDE, so I guess Gnome must have the equivalent functionality. Prior to
Gnome3, that app used to be called "nm-applet". Since Gnome3, I'm not
sure if it was changed or not.

HTH, :-)
Marko


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Multi-Threaded make

2012-11-29 Thread Gabriel VLASIU
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, 29 Nov 2012, David G. Miller wrote:

> Setting -j to be equal to the number of cores/CPUs is just playing it 
> safe.
Yes, this is the default behavior of rpmbuild:

%_smp_mflags is defined in /usr/lib/rpm/redhat/macros:

%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\
&& RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\
if [ "$RPM_BUILD_NCPUS" -gt 16 ]; then echo "-j16"; \\\
elif [ "$RPM_BUILD_NCPUS" -gt 1 ]; then echo "-j$RPM_BUILD_NCPUS"; fi)

> This is especially true when building a rpm which involves not just 
> compiles and link but also packaging, dependency resolution and 
> documentation tasks which are even more disk I/O intensive than 
> compiles.  Chances are that several of these operations that not 
> dependent on successfully compiling the code are fired off in parallel 
> rather than doing them sequentially and that old workhorse make gets the 
> task of managing each of these tasks.
I disagree with you here. You build a rpm in stages: "%prep", "%build", 
"%install", "list check for %files" and packaging (dependency 
resolution/debug-info/etc). Each stage is dependent on the previous one.
All the stages are run sequentially.
make (%build stage) and make install (%install stage) may run things in 
parallel. But this is something else (as I understand the process).

> Thus, you end up with multiple copies of make running at the same time 
> even on a single core/CPU system to perform these tasks.
Exactly. This is what I was trying to explain to JD( jd1008@).
make != cc1.
make can spawn more make processes which eventually can run cc1. 

Sorry but English is not my first language.

> My best results were with -j 12.
Wow! :-)


Gabriel

- -- 

// Gabriel VLASIU
//
// OpenGPG-KeyID  : 44952F15
// OpenGPG-Fingerprint: 4AC5 7C26 2FE9 02DA 4906  24B2 D32B 7ED7 4495 2F15
// OpenGPG-URL: http://www.vlasiu.net/public.key


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBAgAGBQJQt/nwAAoJENMrftdElS8VxKgP+wcnGdrorvYioNl8m/QSfROa
ZXU5e3rkbIfRPBTMNusnwTu5ngiIs9N03jTZKdrgvRftyYWrDAI+QB0JSGZfO7X4
waeI80sgDnr4Km4zluw67RLpP7h3UNQomMgYX9CSL0gsXlou5MpvxV5lO/sDM4HH
hLAa2+cL2TCf/sL6jKbSrvmCgxQhAquMrfLb3JigGUDDDW8LXqOz0yq5rl0Yu37a
ZnVJ003dGkgIxs3g27ZFmuEWQpV7nro6JGZDhYemuPGRMLK2psbCfJwpM/tG+KPZ
W9h7ZA1+J1XUmZ9T/Ejv5AFO2CiF9QG5GedjSYV2DTc0DMKwX/70iugoSpy3qa/l
y40v6+lP1UkLYjL1HpUvhcxZjIJJlt8qG/VlZwjby011S7xOZZpyOiRIy+52Gq9p
w3kEE8MciHc8rpEV11d+gKj38rTA3kLlNgb69PlGk3nvk7Ce9nD0Kpj7ZM7LE+5r
cmRn/8U5is28lq+FnSjihDKOEXCX0raFB85i/sh6nUnSyRzUPHUu8AJPnjlckJqB
WlUn5wxmaeERtzLrDOIzu3w3wstmpx/wb/rKShRBhftTXclYUCfkHF4BR2aUvGk/
5BGJ95/2qnQZryk1yaCoz8c8jsz/0iCHkeN1cjKK5DolXMxkCs4xEeZ7/cmHKOlr
jVUsu1Mp0Ri3nxGKcLf0
=NwWn
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Bash - an odd problem using sed or awk or for

2012-11-29 Thread Patrick O'Callaghan
On Thu, 2012-11-29 at 23:33 +, John Horne wrote:
> Hello,
> 
> I have a bash script in which a variable is set to one or more lines of
> text. What I want is to remove any lines up to and including a blank
> line (or alternatively to echo all the lines after the last blank line).
> There may be zero or more blank lines, and the blank lines need not be
> consecutive. If there is no blank line, then all the lines should be
> shown. If the last line is blank, then nothing should be shown. So for
> example the variable may contain:
> 
>  (the '=' are not part of the variable)
> abc def
> 
> hijk
> xyz
> 
> 
> So in this case what is wanted is:
> 
> 
> hijk
> xyz
> 
> 
> to be shown.
> 
> I tried something like:
> 
>echo "$XX" | sed -e '/./,/^$/d'
> 
> but this didn't display anything. (Where XX is the variable.)
> I also tried using a 'for' loop but again this displayed nothing:
> 
>opt=""
>IFS=$'\n'
>for n in $XX; do test -z "$n" && opt="" || opt="$opt $n"; done
> 
> (Echoing $opt after this shows that it contains nothing.) I'm not sure
> why but even using a for loop just to show it had seen a blank line
> didn't work either (using something like 'test -z "$n" && echo found').
> My understanding was that by setting IFS to a newline, then the 'for'
> loop should see the blank line and just set '$n' to the null string. We
> should then be able to test on that.
> 
> Ideally what I am looking for is a snappy one line 'sed' or 'awk'
> command to handle this :-) Unfortunately at the moment I seem to be
> getting nowhere though, even with the 'for' loop.

echo $FOO | grep .

poc

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Bash - an odd problem using sed or awk or for

2012-11-29 Thread inode0
On Thu, Nov 29, 2012 at 5:33 PM, John Horne  wrote:
> Hello,
>
> I have a bash script in which a variable is set to one or more lines of
> text. What I want is to remove any lines up to and including a blank
> line (or alternatively to echo all the lines after the last blank line).
> There may be zero or more blank lines, and the blank lines need not be
> consecutive. If there is no blank line, then all the lines should be
> shown. If the last line is blank, then nothing should be shown. So for
> example the variable may contain:
>
>  (the '=' are not part of the variable)
> abc def
>
> hijk
> xyz
> 
>
> So in this case what is wanted is:
>
> 
> hijk
> xyz
> 
>
> to be shown.
>
> I tried something like:
>
>echo "$XX" | sed -e '/./,/^$/d'
>
> but this didn't display anything. (Where XX is the variable.)

echo "${XX[*]/*

}"

John
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Bash - an odd problem using sed or awk or for

2012-11-29 Thread inode0
On Thu, Nov 29, 2012 at 6:48 PM, inode0  wrote:
> On Thu, Nov 29, 2012 at 5:33 PM, John Horne  wrote:
>> Hello,
>>
>> I have a bash script in which a variable is set to one or more lines of
>> text. What I want is to remove any lines up to and including a blank
>> line (or alternatively to echo all the lines after the last blank line).
>> There may be zero or more blank lines, and the blank lines need not be
>> consecutive. If there is no blank line, then all the lines should be
>> shown. If the last line is blank, then nothing should be shown. So for
>> example the variable may contain:
>>
>>  (the '=' are not part of the variable)
>> abc def
>>
>> hijk
>> xyz
>> 
>>
>> So in this case what is wanted is:
>>
>> 
>> hijk
>> xyz
>> 
>>
>> to be shown.
>>
>> I tried something like:
>>
>>echo "$XX" | sed -e '/./,/^$/d'
>>
>> but this didn't display anything. (Where XX is the variable.)
>
> echo "${XX[*]/*
>
> }"

Oh, for a simple variable this should work

echo "${XX/*

}"

John
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Bash - an odd problem using sed or awk or for

2012-11-29 Thread JD


On 11/29/2012 04:33 PM, John Horne wrote:

Hello,

I have a bash script in which a variable is set to one or more lines of
text. What I want is to remove any lines up to and including a blank
line (or alternatively to echo all the lines after the last blank line).
There may be zero or more blank lines, and the blank lines need not be
consecutive. If there is no blank line, then all the lines should be
shown. If the last line is blank, then nothing should be shown. So for
example the variable may contain:

 (the '=' are not part of the variable)
abc def

hijk
xyz


So in this case what is wanted is:


hijk
xyz


to be shown.

I tried something like:

echo "$XX" | sed -e '/./,/^$/d'

but this didn't display anything. (Where XX is the variable.)
I also tried using a 'for' loop but again this displayed nothing:

opt=""
IFS=$'\n'
for n in $XX; do test -z "$n" && opt="" || opt="$opt $n"; done

(Echoing $opt after this shows that it contains nothing.) I'm not sure
why but even using a for loop just to show it had seen a blank line
didn't work either (using something like 'test -z "$n" && echo found').
My understanding was that by setting IFS to a newline, then the 'for'
loop should see the blank line and just set '$n' to the null string. We
should then be able to test on that.

Ideally what I am looking for is a snappy one line 'sed' or 'awk'
command to handle this :-) Unfortunately at the moment I seem to be
getting nowhere though, even with the 'for' loop.



Thanks,

John.


John, this is easily accomplished, but you are not telling us
where and from what source is your variable being set.
For example, are you reading the lines in from a file
or from stdin?
If so, then I would get rid of lines containing any space(s) as follows:

while read line; do
set $line
[ $# -lt 2 ] && echo $line
done < SomeFile

If reading from stdin, then you only need
done (without the < SomeFile).

It will print only the lines that lack a space.

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: [F18] How do I set "browse" as the default open type in nautilus?

2012-11-29 Thread Thomas Cameron
On 11/28/2012 03:05 PM, Alexander Volovics wrote:
> On Wed, 28 Nov 2012 12:08:12 -0600
> Thomas Cameron  wrote:
>  
>>> Looks like Gnome is doing the same thing that Microsoft did after XP. I 
>>> can no longer set nautilus so that when I double click on a directory, 
>>> it opens up with the filesystem tree in the left pane, and the contents 
>>> of my directory in the right pane in *list* view. I used to be able to 
>>> set a checkbox for 'always open in browse mode" or something similar, 
>>> but I can't find that in F18 beta.
>>>
>>> Is that option still around? Where is it hiding
> 
> Have you really looked closely at the options in 'Preferences'
> and/or the local config.
> The only substantial change in nautilus (Fed18) with respect to
> nautilus (fed 17) is the missing 'Extra pane' option. 
> 
> If you choose 'list view' you get the folders in the left pane
> and the content in list view in the right pane, etc.
> If you want a more detailed 'tree' you can always open a second
> nautilus window instead of the 'extra pane'. 
> 
> I can't remember ever having seen something like 'always open in browse
> mode'. Do you mean 'thumbnail view' and/or 'text in icons'. Both are
> still available and you can change the size.
> 
> Alexander
> 

I'm looking for what I used to have in the screenshots at
http://www.camerontech.com/nautilus/

TC
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Multi-Threaded make

2012-11-29 Thread David G . Miller
JD  gmail.com> writes:

> For the last time:
> rpmbuild has no -j anything  option!!!
> 
JD -

Calm down.  Have a glass of wine or a beer or whatever.  Noone is saying
rpmbuild has a -j option.  Several of us are trying to explain to you that
programs like rpmbuild can do things that the end user may not realize are
happening.  If you wish to learn from our experience, we'll attempt to answer
your questions.  If not, don't expect much help.

Back to the question at hand.  Depending on the nature of the rpm being built,
rpmbuild may spawn several make processes that run in parallel.  You are seeing
this when you run ps during your build.  You probably have no control over this
although there MAY be options for invoking rpmbuild that control this.  

What I was attempting to explain is that tasks with significant I/O can
frequently run in parallel even though there are fewer CPUs than tasks.  Several
tasks can be waiting on I/O and the CPU is idle which means doing something else
MAY decrease the overall time the rpm build takes.  I used the example of
building the kernel to illustrate this; nothing more.

Cheers,
Dave


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Disabling NetworkManager

2012-11-29 Thread Tim
Allegedly, on or about 29 November 2012, Alex sent:
> How do I even access the NM network management GUI from within GNOME?

Why do people find this so hard?  It was bloody obvious from the first
time I ever saw the Gnome desktop after log-in.  And barely different
from other releases of Gnome, as far back as Fedora 9, at least.

There's an icon of two computers networked together on the taskbar, it
represents your network.  Depending on whether you left-click or
right-click on it, you get different options.  Read them.

> I really hate this new GNOME.

Likewise.

-- 
[tim@localhost ~]$ uname -rsvp
Linux 3.6.7-4.fc17.x86_64 #1 SMP Tue Nov 20 19:40:01 UTC 2012 x86_64

All mail to my mailbox is automatically deleted, there is no point
trying to privately email me, I will only read messages posted to the
public lists.



-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org